LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-05-2005, 07:55 PM   #1
agtlewis
Member
 
Registered: Oct 2005
Distribution: Fedora 4
Posts: 40

Rep: Reputation: 15
Question Apache 403 Forbidden Error On Every File


Hello,

I recently moved my /var/www folder to a new location on a seperate mounted partition because it was getting to large.

I have updated the apache configuration files to reflect this change.

Code:
DocumentRoot "/mnt/storage/server/www/html"

# Default Security Settings
 <Directory />
     Order Deny,Allow
     Deny from all
 </Directory>

# This should be changed to whatever you set DocumentRoot to.
<Directory "/mnt/storage/server/www/html">
    Options Indexes FollowSymLinks
    AllowOverride none
    Order Deny,Allow
    Allow from 192.168.1.4
    Allow from 192.168.1.3
</Directory>
The command to mount the hard drive is as follows.

Code:
/dev/hdb1               /mnt/storage            ext3    defaults        0 0
All of the files on this hard drive are world readable.

In my apache error log, I receive the following errors.

Code:
[Mon Dec 05 18:42:38 2005] [crit] [client 192.168.1.4] (13)Permission denied: /mnt/storage/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable
[Mon Dec 05 18:42:38 2005] [crit] [client 192.168.1.4] (13)Permission denied: /mnt/storage/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable
[Mon Dec 05 18:42:42 2005] [crit] [client 192.168.1.4] (13)Permission denied: /mnt/storage/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable
[Mon Dec 05 18:42:42 2005] [crit] [client 192.168.1.4] (13)Permission denied: /mnt/storage/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable
[Mon Dec 05 19:50:19 2005] [crit] [client 192.168.1.4] (13)Permission denied: /mnt/storage/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable
[Mon Dec 05 19:50:20 2005] [crit] [client 192.168.1.4] (13)Permission denied: /mnt/storage/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable
There are no .htaccess anywhere in the filesystem. Creating an .htaccess file doesn't fix the problem and the same error message is logged.

Any clues?
 
Old 12-05-2005, 09:05 PM   #2
agtlewis
Member
 
Registered: Oct 2005
Distribution: Fedora 4
Posts: 40

Original Poster
Rep: Reputation: 15
I changed the home directory for the apache account from /var/www to /mnt/storage/server which could possible have been the problem but the errors are still the same.
 
Old 12-05-2005, 09:19 PM   #3
vikrambhimbar
Member
 
Registered: Aug 2005
Location: India
Posts: 33

Rep: Reputation: 15
1)does df command shows u r new HDD mounted...
2)If yes Try to give full permissions to the mounted files...
3) If U r Running any application from apache edit the permission ...including owner and group (try username and group apache)
4)Try To mount u r New HDD in "/" partion or in "/var/www"
 
Old 12-05-2005, 09:59 PM   #4
agtlewis
Member
 
Registered: Oct 2005
Distribution: Fedora 4
Posts: 40

Original Poster
Rep: Reputation: 15
Yes, the hard drive is mounted and the paths are correct. Giving full read write permission had no effect. I'm not sure what you mean by 3 and I don't want the hard drive mounted anywhere but /mnt/storage because it's used for other things.

Also selinux is disabled as well. I am stumped.
 
Old 09-01-2006, 09:32 PM   #5
mgstrein047
LQ Newbie
 
Registered: Sep 2006
Posts: 3

Rep: Reputation: 0
I have been having the same problem as you. Any files on my new drive cannot seem to be read no matter what I do with permissions and what not. Let me know if you figure anything out.
 
Old 09-01-2006, 11:25 PM   #6
debiant
Member
 
Registered: Jul 2006
Distribution: Source Mage 0.9.6
Posts: 196

Rep: Reputation: 30
Try setting the uid of the fstab entry to the uid of apache (probably not the best permanent solution).

Last edited by debiant; 09-01-2006 at 11:28 PM.
 
  


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: 403 forbidden johnty01 Linux - Networking 5 04-05-2008 02:20 PM
apache related problem (HTTP Error 403 - Forbidden ) spandau Linux - Networking 29 09-01-2005 06:06 PM
Error 403 Forbidden access in Apache anoop_cn Linux - Software 1 09-21-2004 09:32 AM
apache error, 403 forbidden afrodocter Linux - Software 6 08-09-2004 08:35 PM
apache 403 error forbidden? bulliver Linux - General 4 01-31-2003 07:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:35 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration