LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices



Reply
 
Search this Thread
Old 04-19-2008, 05:10 PM   #1
mtlhd
Member
 
Registered: Sep 2007
Location: Ohio
Distribution: Debian, CentOS, Ubuntu
Posts: 126

Rep: Reputation: 18
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
 
Old 04-19-2008, 08:41 PM   #2
frndrfoe
Member
 
Registered: Jan 2008
Distribution: RHEL, CentOS
Posts: 375

Rep: Reputation: 38
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.
 
Old 04-21-2008, 09:02 AM   #3
mtlhd
Member
 
Registered: Sep 2007
Location: Ohio
Distribution: Debian, CentOS, Ubuntu
Posts: 126

Original Poster
Rep: Reputation: 18
Quote:
Originally Posted by frndrfoe View Post
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.
 
Old 04-21-2008, 10:27 AM   #4
frndrfoe
Member
 
Registered: Jan 2008
Distribution: RHEL, CentOS
Posts: 375

Rep: Reputation: 38
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache - change document root? squall14716 Linux - Software 2 01-20-2010 11:16 AM
Apache 2: won't allow document root to be changed, plus more QtCoder Linux - Networking 1 11-06-2004 05:44 PM
Apache Qs: Moving Document Root and PHP with Apache2 larsenmtl Linux - Networking 3 09-29-2004 09:31 AM
Document Root in Apache Hal Linux - Newbie 2 10-28-2003 07:10 AM
Apache Document Root Path bowen Linux - General 8 11-29-2002 03:13 AM


All times are GMT -5. The time now is 11:45 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration