Hello,
If you have direct root SSH access to the machine, you can modify the documentroot line in /var/cpanel/userdata/username/domain.com location so that public_html is not the document root. The contents might look similar to the following initially for the file:
Code:
---
customlog:
-
format: combined
target: /usr/local/apache/domlogs/domain.com
-
format: "\"%{%s}t %I .\\n%{%s}t %O .\""
target: /usr/local/apache/domlogs/domain.com-bytes_log
documentroot: /home/username/public_html
group: username
hascgi: 1
homedir: /home/username
ip: IP#.IP#.IP#.IP#
options: ExecCGI Includes
owner: root
phpopenbasedirprotect: 1
port: 80
scriptalias:
-
path: /home/username/public_html/cgi-bin
url: /cgi-bin/
serveradmin: webmaster@domain.com
serveralias: www.domain.com
servername: domain.com
usecanonicalname: 'Off'
user: username
You would want to modify any paths in that file that have /home/username/public_html to the new location you want the contents to be, then save the file. After changing the contents, you would then issue the following to save the Apache configuration, rebuild Apache's configuration and restart Apache:
Code:
cp /usr/local/apache/conf/httpd.conf /usr/local/apache/conf/httpd.conf.bak110609
/scripts/rebuildhttpdconf
/scripts/restartsrv_httpd
Thanks!