Wednesday, May 26, 2010
Monday, April 19, 2010
I recently try to install apache on fedora 12. I need to change the root directory to ease me editing file and avoiding permission. It is quite different when I was configuring on ubuntu. After read through several forums I come to this post. So, I won't be crazy for the next time.. haha
The default root directory is at /var/www/html. In my case, I want to change it to /home/user1/web.
Step 1: Edit apache configuration file (as root)
# gedit /etc/httpd/conf/httpd.conf
Find these two lines
# This should be changed to whatever you set DocumentRoot to.