LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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, 04:10 PM   #1
mtlhd
Member
 
Registered: Sep 2007
Location: Florida
Distribution: Raspbian, Debian, CentOS, Ubuntu
Posts: 131

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, 07:41 PM   #2
frndrfoe
Member
 
Registered: Jan 2008
Distribution: RHEL, CentOS, Ubuntu
Posts: 379

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, 08:02 AM   #3
mtlhd
Member
 
Registered: Sep 2007
Location: Florida
Distribution: Raspbian, Debian, CentOS, Ubuntu
Posts: 131

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, 09:27 AM   #4
frndrfoe
Member
 
Registered: Jan 2008
Distribution: RHEL, CentOS, Ubuntu
Posts: 379

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



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 10:16 AM
Apache 2: won't allow document root to be changed, plus more QtCoder Linux - Networking 1 11-06-2004 04:44 PM
Apache Qs: Moving Document Root and PHP with Apache2 larsenmtl Linux - Networking 3 09-29-2004 08:31 AM
Document Root in Apache Hal Linux - Newbie 2 10-28-2003 06:10 AM
Apache Document Root Path bowen Linux - General 8 11-29-2002 02:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 07:27 PM.

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
Open Source Consulting | Domain Registration