DocumentRoot and Virtual Host Issues
-
So I’m root on my webserver using name-based virtual hosts, I’m not an expert but I know my way around various Linux distros.
Using latest Centos/WP/PHP/MYSQL
My site was all up and running solid but I wanted to move over some more sites I facked some stuff up. In the dashboard I changed the directory (edits the mysql db) from http://www.mywebsite.com/wordpress to http://www.mywebsite.com
Lost communication here with the site, as expected but I thought all I had to do was move the folder and edit httpd.conf to reflect the move.
To try to fix it I moved /var/www/html/mywebsite to /var/www/ then changed document root to /var/www/mywebsite
This all didn’t work and looks like the DB isn’t communicating correctly as the CSS is all screwed up.
So that’s that, I’m restoring from a backup and should be back to a working site in a second. Thought I would give that history though as I’m obviously doing something wrong.
I want to have multiple sites using name-based virtualhosts under /var/www/websiteA /var/www/websiteB etc.. (or under /var/www/html/websiteA I don’t know the difference)
What kind of symlink or documentroot settings do I need to do here?
The topic ‘DocumentRoot and Virtual Host Issues’ is closed to new replies.