Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 10-25-2006, 11:56 AM   #1
LQ Newbie
Registered: Oct 2006
Posts: 2

Rep: Reputation: 0
Unhappy 403 Forbidden when accessing http://mydomain/cgi-bin/openwebmail/

I installed latest version of webmail 2.52 on a new CentOS4 box with perl compiled as per webmail requirements. If I run the script in the terminal mode (SSH) it runs fine and returns html code for the login page. If I run it in a browser I get the

You don't have permission to access /cgi-bin/openwebmail/ on this server.

Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.

Here is a relevant portion of my httpd.conf file:

<VirtualHost *:80>
ServerAdmin admin
DocumentRoot /var/www/
AddHandler cgi-script cgi
AddHandler cgi-script pl
<Directory "/var/www/cgi-bin/openwebmail/">
AllowOverride None
AddHandler cgi-script cgi pl
Options FollowSymLinks +ExecCGI
Order allow,deny
Allow from all

I can run other perl scripts just fine from the cgi-bin directory and if I created a new directory and I can run perl scripts just fine from that directory just not /openwebmail directory. I have read and reread FAQ for openwebmail no go!!

I have it running on a Fedora Box just fine seems like an Apache2 issue ?

Old 10-26-2006, 05:49 AM   #2
LQ Guru
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 75
Take a look here.
Old 10-27-2006, 08:11 AM   #3
LQ Newbie
Registered: Oct 2006
Posts: 2

Original Poster
Rep: Reputation: 0
Unhappy No Go

I already have I have cut an paste that config and no go. That may work for some people but it doesn't help me. It seems to be only the openwebmail folder if I create other directory's in the cgi-bin directory they all will run cgi and .pl files

If I copy a working .pl file into openwebmail folder I get the error message ?

I have searched all the search engines and read all the openwebmail files and nothing ? I have found others with the same issue and no resolution ?

Old 10-27-2006, 08:31 AM   #4
LQ Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,826

Rep: Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591
AllowOverride None
Change this to:
AllowOverride Options
since you use an Options statement.
Also check the permissions of the folder and the cgis to see if the user that runs apache has the rights to execute the scripts


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
403 Forbidden when accessing some .PNG files jhorvath Programming 2 05-07-2006 04:45 PM
apache related problem (HTTP Error 403 - Forbidden ) spandau Linux - Networking 29 09-01-2005 06:06 PM
Apache2 virtual host cgi 403 Forbidden / mossy Linux - Software 15 07-27-2005 04:56 PM
HTTP 403 (Forbidden) error lothario Fedora 6 02-08-2005 04:43 AM
403 Forbidden access to web with php and cgi scripts tonyboy Linux - Software 3 03-17-2004 07:45 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:33 AM.

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