LinuxQuestions.org
Visit Jeremy's Blog.
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 12-13-2008, 12:57 PM   #1
int0x80
Member
 
Registered: Sep 2002
Posts: 310

Rep: Reputation: Disabled
Exclamation Apache critical error 403


I have a Debian server running vhosts on Apache 2.2.9. All of the web files were backed up via scp using -p to preserve times and modes. All files are identical and the vhost configs are identical as well. For some reason, though, on the new server all HTTP requests for valid files are returning 403. Tailing the logs only produces this error message:

[Sat Dec 13 13:53:55 2008] [crit] [client x.x.x.x] (13)Permission denied: /home/david/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable

All of the .htaccess files and their modes were moved over. The directory structure is identical to the old server. I have been googling for over an hour now with my site still down. Any help would really be appreciated.
 
Old 12-13-2008, 01:09 PM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Try
Code:
chmod -R 755 /home/david
and see if it works
 
Old 12-13-2008, 01:18 PM   #3
int0x80
Member
 
Registered: Sep 2002
Posts: 310

Original Poster
Rep: Reputation: Disabled
Subset

bathory: Thanks for the reply.

The way my vhosts are set up is:

/home/david/www/domain1.com
/home/david/www/domain2.com
etc.

I had tried chmod 755 /home/david/www/domain1.com/index.html and reloading apache, but that didn't do anything. I'm not sure why any modes would need to be changed since they were copied with scp -p which preserves the modes. Ownership of /home/david/www/domain1.com/index.html is the same as well.
 
Old 12-13-2008, 01:21 PM   #4
int0x80
Member
 
Registered: Sep 2002
Posts: 310

Original Poster
Rep: Reputation: Disabled
D-ohh!

I found the cause. At one point during the server set up when the user accounts were created, I had done:

chmod 700 /home/david

Changing it to 711 fixed it. Yeesh :P
 
  


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
403 error in Apache watcher69b Linux - Server 3 05-27-2008 08:13 AM
UserDir 403 error with apache mustangfanatic Slackware 2 04-14-2006 03:32 PM
Apache 403 Error?? jlsain Linux - Software 4 05-08-2004 03:45 PM
critical error in apache 1.3.29 linuxboy_inside Linux - General 2 12-07-2003 08:54 PM
apache 403 error forbidden? bulliver Linux - General 4 01-31-2003 07:47 AM

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

All times are GMT -5. The time now is 08:24 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