Perl script error 403: Forbidden Error

Discussion about the creation of websites in general, HTML, PHP, Java.

Perl script error 403: Forbidden Error

Postby al_tyranny on Fri May 27, 2005 1:53 am

I'm having problems with the Perl scripts I'm writing (like I said before, I don't know any Perl, and these are really simple ones from a book) -- it seems that I can't actually run them because there is an access error. When I type the URL, it says:

Code: Select all
You don't have permission to access /~al_tyranny/cgi-bin/test_output.pl on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.


Why is this happening? I did "chmod 0755" on everything (even the "cgi-bin" directory, which should probably be set to "0711" >_<), and nothing seems to work! It's also strange about the 404 error -- I just checked and the file definately in the cgi-bin directory.

The URL is http://fusion.phoenix-hosting.org/~al_t ... _output.pl
mm_freak wrote:Slackware users are dreamers. Sorry to say.
al_tyranny
Phoenix Veteran
Phoenix Veteran
 
Posts: 294
Joined: Tue May 17, 2005 3:18 am
Location: Greater Boston Area

Postby De Kus on Fri May 27, 2005 7:41 am

the 404 error comes from misconfigured web server, probably an apache. the httpd.conf should contain a full path to the error documents (like: Alias /error/ "C:/Programme/Apache/Apache2/error/"). So just blame Krod Wink.
For the 403 error, check all superior directors, they ALL need to have set +x for others.

1 more note: cgi-bin is BAD dir for custom pearls, because there is a special alias (in apache?!), that usually redirects all cgi-bin access to a single directory (look for 'ScriptAlias /cgi-bin/' in httpd.conf). But that shouldnt be the problem, since you get a 403 and not a 404 error Smile.
Image
User avatar
De Kus
Phoenix Veteran
Phoenix Veteran
 
Posts: 305
Joined: Mon Mar 14, 2005 2:15 pm
Location: Germany

Postby krod on Fri May 27, 2005 10:50 am

chmod 755 /yourhomedir/ && chmod 755 /yourhomedir/public_html && chmod 755 /yourhomedir/public_html/cgi-bin/
:D
I went to the woods because I wished to live deliberately, to front only the essential facts of life, and see if I could not learn what it had to teach, and not, when I came to die, discover that I had not lived.-Thoreau
User avatar
krod
Phoenix Veteran
Phoenix Veteran
 
Posts: 616
Joined: Thu Mar 10, 2005 4:03 am
Location: USA/Georgia


Return to General Webmastering

Who is online

Users browsing this forum: No registered users and 1 guest

cron