Skip to main content

Change default public_html dir?

Comments

4 comments

  • 24x7server
    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
  • cPanelMichael
    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
  • Teodor Dumitrescu
    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
  • cPanelMichael
    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.