Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Web Server
  • Search

Copy file in public_html folder when adding a domain

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
2 posts • Page 1 of 1
jonay
Posts: 1
Joined: Tue Jul 02, 2019 4:35 pm

Os: CentOS 6x
Web: nginx + php-fpm
Copy file in public_html folder when adding a domain
  • Quote

Post by jonay » Fri Jul 12, 2019 7:40 pm

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
Top

dreiggy
Posts: 154
Joined: Thu May 17, 2018 8:05 pm
Contact:
Contact dreiggy
Skype

Os: CentOS 6x
Web: apache + nginx
Re: Copy file in public_html folder when adding a domain
  • Quote

Post by dreiggy » Mon Jul 29, 2019 2:43 pm

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.
Top


Post Reply
  • Print view

2 posts • Page 1 of 1

Return to “Web Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password