If you have root access to the server, you can try this.Is there way to change the DocumentRoot of an account using cPanel, either during account creation or later on?
Or is there some other way to have two cPanel accounts share a DocumentRoot?
I couldn't get this method to work though, changing the 'documentroot:' value in the /var/cpanel/userdata/user/domain.com file didn't seem to have any effect. I also tried --all-users, and doing httpd restart and named -u named afterwards, but no go. This method does seem less 'hackish' than the other method, but I couldn't get it to work.I was reading other threads, somehow the more correct way of doing it is to edit the user's file so that things get generated automatically after each apache rebuild.
1. Locate the domain you're trying to edit in /var/cpanel/userdata/user
2. Edit your file
3. Run /scripts/ensure_vhost_includes --user=USER
Assuming you did the server side updates correctly ...I then tried access subdomain.mysite.com and it is still pointing to the old path! What am I missing here?
1. Open Dos Prompt ('CMD' from Start->Run) 2. Type 'ipconfig /flushdns'
|Thread starter||Similar threads||Forum||Replies||Date|
|J||SOLVED Customers confused when changing cpanel/mysql password, website fails||Account Administration||10|
|C||Changing apache port for individual account?||Account Administration||1|
|D||Changing user password does not update mysql password||Account Administration||3|
|T||Changing DocumentRoot of all sites||Account Administration||7|
|R||Changing a Virtual Hosts DocumentRoot||Account Administration||0|