We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on v1 candidate and expect to engage more with the community over the coming months. We are committed to open source, and we encourage contributors to help us build the future of Vesta.
Copy file in public_html folder when adding a domain
Copy file in public_html folder when adding a domain
Hello,
Let's say I have a file.php in the /home/file.php directory and I want this file to be copied to /home/user/domain/public_html/ every time I add a domain to vestacp.
How could I do that?
I want it to install my script without having to upload the file to the directory every time I add a new domain.
Thank you
Let's say I have a file.php in the /home/file.php directory and I want this file to be copied to /home/user/domain/public_html/ every time I add a domain to vestacp.
How could I do that?
I want it to install my script without having to upload the file to the directory every time I add a new domain.
Thank you
Re: Copy file in public_html folder when adding a domain
Hi,
you can copy your script to webroot skeleton: /usr/local/vesta/data/templates/web/skel/public_html
Then when you will create a new domain, your file should be copied to domain webroot folder.
you can copy your script to webroot skeleton: /usr/local/vesta/data/templates/web/skel/public_html
Then when you will create a new domain, your file should be copied to domain webroot folder.