Forum Moderators: coopster & phranque

Message Too Old, No Replies

CGI-BIN Problems [403 Errror]

No perl scripts work...

         

madcat

10:24 pm on Jun 18, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi:

This calendar I'm using has very easy installation instructions. I feel confident I've set everything up correctly (permissions, path to perl and relative link to install file).

My host does have Perl installed (v.5.8) and the CGI-BIN is where I need to put these scripts. The host can use .pl as the extension- current Apache version too.

When I direct my browser to the script, I get a 404 error message. When I direct it to the cgi-bin, I get a 403 message.

Is the 403 message telling me something should be fixed here before I try running the script? Or could I run the script even if the bin had the 403 message?

Do I have to set something up in my .htaccess file? Maybe there is something I'm missing but all steps seem very straight forward in getting this to work.

Thanks for any help.

M

Romeo

11:02 pm on Jun 18, 2005 (gmt 0)

10+ Year Member



It is common practice to deny directory listings of the cgi-bin, hence a 403 may be OK when you try to see the /cgi-bin/.
If you get a 404 on /cgi-bin/myscript.pl, check, if you have really uploaded "myscript.pl" right into your /cgi-bin/.

Regards,
R.

madcat

3:06 am on Jun 19, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



How do you mean make sure it's actually in the cgi-bin?

It may be a virtual path that I don't necessarily see?

Romeo

2:19 pm on Jun 19, 2005 (gmt 0)

10+ Year Member



It may be a virtual path that I don't necessarily see?

If you can't see it, it is not there.
Your myscript.pl file needs to be exactly where your hoster told you cgi-scripts should be.

Example:
If in your ftp-session you see a /www/ or a / (whatever your setup may be) where you put your index.html, and a /www/cgi-bin/ or a /cgi-bin/, then all your perl scripts have go into /www/cgi-bin/ or /cgi-bin/. It won't work otherwise.

If you exactly did this, and you would still get a 404 when pointing your browser to /cgi-bin/myscript.pl, then you perhaps should contact your hoster, if he had screwed up the cgi-bin spript-alias definition in the webserver's config file.

Regards,
R.