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-17-2012, 05:27 PM   #1
said76
Member
 
Registered: Aug 2011
Posts: 113

Rep: Reputation: Disabled
403 forbidden


Hi,

I have been encountering with the following error while navigating through my emails via Roundcube webmail on my Ubuntu Server 12.04

403 forbidden
You don't have permission to access / on this server.

This error does not come up all the time but at random time which can be very hard for me to figure out what's causing the error. It can be very annoying too because if you keep on clicking "next" button or open an email to read while you see this error, the next thing you will get is "You don't have permission to access / on this server". Eventually, you'll get locked out if you try to do something else.

I have checked all my permission /usr/local/apache2/htdocs and they are all set with "apache:nogroup" permission.

Both .htaccess file under /usr/local/apache2/htdocs and /usr/local/apache2/roundcube are given 755 permission.

In my httpd.conf, I have the following

<Directory />
Options -Indexes FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
</Directory>

<Directory "/usr/local/apache2/htdocs">
Options +Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>

<IfModule dir_module>
DirectoryIndex index.php index.html
</IfModule>

I have also checked in the error_log to see if I can find some clue there in respect of 403 error but did not find anything like that in there.

Any help would be greatly appreciated.

Thank you
 
Old 12-17-2012, 08:52 PM   #2
Adickel
LQ Newbie
 
Registered: Jul 2009
Posts: 14

Rep: Reputation: 0
Are you sure there aren't any other locations that your server is using to publish files from? Any temp directories or anything like that that you may not know of. Heres what i would do:

1. Get a nice session going on your Front end connection and try to get a couple of the errors.
2. Try to find all the most recently modified files and see what the permissions are on those directories and parent directories.
3. See if you can 755 those out and try to troubleshoot from there.


Good luck, nothing fun about sporadic hard to replicate errors, but all the easy ones have already been solved
 
  


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
Forbidden 403 cov Linux - Server 9 03-04-2010 01:21 PM
403 Forbidden martin1234 Linux - General 1 06-22-2009 01:27 PM
403 Forbidden farooqhussain Linux - Server 2 09-22-2008 01:47 PM
403 Forbidden 1veedo Linux - Newbie 2 11-27-2005 05:46 PM
403 Forbidden??? morbo Linux - Networking 11 07-04-2002 10:17 AM

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

All times are GMT -5. The time now is 08:37 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
Open Source Consulting | Domain Registration