LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (http://www.linuxquestions.org/questions/linux-server-73/)
-   -   Moving Document Root in Fedora8/Apache (http://www.linuxquestions.org/questions/linux-server-73/moving-document-root-in-fedora8-apache-636488/)

mtlhd 04-19-2008 04:10 PM

Moving Document Root in Fedora8/Apache
 
I moved my document root folder and in the .conf file changed to location to everything...

using Fedora8 with latest version of Apache

but when you go to the page via the web (currently off)


I get a 403 forbidden saying you don't have access to "/"


I never wanted that there, so I put it in /home/username/www/html instead of /var/www/html and told apache it was there.


Anybody run into this before?

Thanks In advance Linux Community.

-the noob

frndrfoe 04-19-2008 07:41 PM

Did you setup a corresponding <Directory “/home/username/www/html"> section?

If running SELinux you also have to setup the directory context to allow apache to access that directory structure.

mtlhd 04-21-2008 08:02 AM

Quote:

Originally Posted by frndrfoe (Post 3126583)
Did you setup a corresponding <Directory /home/username/www/html"> section?

If running SELinux you also have to setup the directory context to allow apache to access that directory structure.


I set up the <Directory> too, but not sure if I am running SELinux or not, is there a way I can check?

sorry that is horrible I dont know that but I am new to all this.

Thanks for patience.

frndrfoe 04-21-2008 09:27 AM

check /etc/selinux/config for the line SELINUX=[enforcing|permissive| disabled]

also check permissions on your files and directories. Apache must be able to execute all parent directories. 'chmod o+x' on all directories to the root.


All times are GMT -5. The time now is 02:11 PM.