How Do You Change Site Root in cPanel
-
I am new to using cPanel for web hosting. I accidentally deployed a site so that you have to put /wp for it to load. How do I change the document root for a site? If I had access to the Apache or Nginx config file this would take two seconds. With cPanel, I have no idea what to do.
-
I actually just finished doing this for a colleague of mine. He started a WP site for his kids electronics club or something and made the mistake of adding a directory in his one click install.
It's actually not a simple tweak in cpanel. Theres some work that needs to be done as all of the WP files are configured to be in that sub folder.
http://www.inmotionhosting.com/support/edu/wordpress/329-move-folders
-
@scottalanmiller said:
I am new to using cPanel for web hosting. I accidentally deployed a site so that you have to put /wp for it to load. How do I change the document root for a site? If I had access to the Apache or Nginx config file this would take two seconds. With cPanel, I have no idea what to do.
Easy as I'm assuming you installed wp to /wp just select all the WP files under /wp and move the to the root (public_html) and then edit the WordPress config files (not sure the name of it off the top of my head) to reflect the new location, I don't beleieve it cares about it's relative local path in wordpress. once you login back in to WP admin you need to change the url under the settings as well or it will still redirect to the old location or you can change this directly from the database, which is what I have done before but, I don't remember where the parameter is stored in SQL so you'd need to google that one haha.
-
I found this specifically for the identical issue on ASO.