Hello guys.
I have a little problem, I changed the files:
/var/cpanel/templates/apache2_4/vhost.local in line
DocumentRoot = [% DocumentRoot%]/public
By changing this part and make the following commands:
/Usr/local/cpanel/bin/apache_conf_distiller -update
/Usr/local/cpanel/bin/build_apache_conf
service httpd restart
The server time to time update the files normally:
/var/cpanel/userdata/$username/$domain.com
My problem is that from time to time he takes the documentoroot and concatenate with the public, making a folder loop:
[% DocumentRoot%]/public/public/public .......
How do I change whenever you create a new account the DocumentRoot it is always public_html to public_html/public?
I use various PHP frameworks that need to be in those folders.
I have a little problem, I changed the files:
/var/cpanel/templates/apache2_4/vhost.local in line
DocumentRoot = [% DocumentRoot%]/public
By changing this part and make the following commands:
/Usr/local/cpanel/bin/apache_conf_distiller -update
/Usr/local/cpanel/bin/build_apache_conf
service httpd restart
The server time to time update the files normally:
/var/cpanel/userdata/$username/$domain.com
My problem is that from time to time he takes the documentoroot and concatenate with the public, making a folder loop:
[% DocumentRoot%]/public/public/public .......
How do I change whenever you create a new account the DocumentRoot it is always public_html to public_html/public?
I use various PHP frameworks that need to be in those folders.