Change default public_html dir?
Hello guys,
I changed hosting contract to a higher level of services and gained access to cpanel and created a user in WHM portal.
After that the default html folder is not /var/www anymore but /home/newuser/public_html.
How can I change it back?
-
Hello :), cPanel is creating default document root under the path as mentioned /home/USER/public_html/ and it is default. You need to upload your site content under pubic_html directory of your user. 0 -
Hello :) You can't change the document root for a cPanel account without root access. However, even if you could, you should use the "/home/$username/public_html" directory and modify any scripts with hard-coded paths away from the older directory structure. Thank you. 0 -
Hello :), cPanel is creating default document root under the path as mentioned /home/USER/public_html/ and it is default. You need to upload your site content under pubic_html directory of your user.
Is it possible using a SSH conection or terminal to configure it the way it was? The application I have on the website somehow relates to that folder /var/www.0 -
Is it possible using a SSH conection or terminal to configure it the way it was? The application I have on the website somehow relates to that folder /var/www.
You will need to update the configuration file for the script with the correct document root. You may want to consult with the developer of the script to determine what in particular you must change. Thank you.0
Please sign in to leave a comment.
Comments
4 comments