What does “HTTP Error 405 - Method Not Allowed” mean?


Answer: A 405 - Method Not Allowed error means that your permissions are not set correctly for your CGI-BIN folder.

This has to do with the web server software that your ISP (host) is running. Most web server software, is set up to allow Perl scripts with a .pl extension, but only within the servers cgi-bin directory.

If however, your host does not want you to have access to that cgi-bin directory, but would rather you create your own within your own directory, then the web server software has to be configured to allow .cgi extensions. .cgi extensions are exactly the same as .pl extensions (in your case anyway).

If this has been done, then you should be able to rename the script to have a .cgi extension instead of a .pl extension, and the script should work flawlessly (providing you don't have any other problems). Be sure to also change all of your paths that contain scriptname.pl to scriptname.cgi.

If you have already renamed the script to include a .cgi extension, and you get the SAME error message, check with your ISP. They may not allow scripts. (especially the free web space providers). If they do not allow scripts, you're out of luck, and need to find an ISP that does allow them. A simple way to see if your web hosting ISP allows perl scripts (UNIX Servers ONLY) is to ask them with this simple form letter. On an NT server you probably just need to ask your web hosting ISP to allow execute permissions for everyone on the file RSCMail.exe in your cgi-bin folder.


How do you rate this answer?
Your email:
select a response: Great answer
Good answer
Need more info
Out of date answer
Wrong answer
Enter your comments: (optional)

Copyright © 1998-2004, RealCart.com®
This page last modified on