Renaming public_html
Lets say that I have another folder on the same level as public_html named public_html_2 with the dev version of a site. Both sites contain php files and databases. If I want to swap dev with production site, Is it possible to simply rename public_html to public_html_old and then rename public_html_2 to public_html? Are there any precautions I should take, ie like stopping Apache?
-
Hey there! Sure, that would work out fine - just ensure the directory gets the same permissions and ownership as the old one.
0
Please sign in to leave a comment.
Comments
1 comment