StoneyCreeker

Well-Known Member
Oct 17, 2006
53
3
158
Upper-East TN
cPanel Access Level
Root Administrator
I just set up coppermine gallery in the public_html/cm directory on a new account and set it up. How can I direct my domain visitors to that directory instead of public_html? There are no files in the public_html dir.
I am only using coppermine on this domain. I would rather not have to uninstall it and re-install it to public_html and re-do all my changes. :( I should have installed it right in the first place. :rolleyes:
WHM 11.48.4 build 4.
 

max_payne

Active Member
Feb 1, 2013
33
1
6
cPanel Access Level
Root Administrator
You need to either change the document root of the account or simply move the files up one directory. To change the document root from /home/<cpaneluser>/public_html to /home/<cpaneluser>/public_html/cm, follow these steps:

https://www.servint.net/university/article/the-tech-bench-changing-a-document-root-in-cpanel/

To move the files up one folder, run the following command from public_html:

mv -f cm/* .

Contact your hosting provider to help make these changes if you can not do it.
 

StoneyCreeker

Well-Known Member
Oct 17, 2006
53
3
158
Upper-East TN
cPanel Access Level
Root Administrator
You need to either change the document root of the account or simply move the files up one directory. To change the document root from /home/<cpaneluser>/public_html to /home/<cpaneluser>/public_html/cm, follow these steps:

https://www.servint.net/university/article/the-tech-bench-changing-a-document-root-in-cpanel/

To move the files up one folder, run the following command from public_html:

mv -f cm/* .

Contact your hosting provider to help make these changes if you can not do it.
Thank you very much for the quick reply max_payne!
I made the change as described in the link and it worked perfectly.