LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 10-25-2006, 12:56 PM   #1
mtsolutions
LQ Newbie
 
Registered: Oct 2006
Posts: 2

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


I installed latest version of webmail 2.52 on a new CentOS4 box with perl compiled as per webmail requirements. If I run the openwebmail.pl 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

Forbidden
You don't have permission to access /cgi-bin/openwebmail/openwebmail.pl 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/
ServerName ns5.mtsolutions.net
AddHandler cgi-script cgi
AddHandler cgi-script pl
<Directory "/var/www/cgi-bin/openwebmail/">
AllowOverride None
AddHandler cgi-script cgi pl
Options FollowSymLinks +ExecCGI
DirectoryIndex openwebmail.pl
Order allow,deny
Allow from all
</Directory>
</VirtualHost>

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 ?

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

Rep: Reputation: 74
Take a look here.
 
Old 10-27-2006, 09:11 AM   #3
mtsolutions
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 ?

Thanks,
 
Old 10-27-2006, 09:31 AM   #4
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,975

Rep: Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343
Quote:
AllowOverride None
Change this to:
Code:
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
 
  


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


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