Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

inherited code

Status
Not open for further replies.

Sarky78

Programmer
Oct 19, 2000
878
GB
Let me start by saying that i have no idea about CGI/Perl, I have inherited some code from a website tht has moved to our server. On this site there is a booking form that sends an email out. This is not working on our server (Win2k) is there anything that i need to do, to make this code work, like register it with a component? at the moment when the page is sumbitted i get a Error 405:

"The method specified in the Request Line is not allowed for the resource identified by the request. Please ensure that you have the proper MIME type set up for the resource you are requesting."

any ideas ?
 
(1) Have you configured your server to handle this request using CGI? For example, with Apache:

ScriptAlias /cgi/ "/path/to/your/cgi/"

(2) Make sure your scripts have execute permission
(3) If the CGI scripts are in Perl, and they use the first line in the script to identify where Perl is, make sure this is correct.

Hope some of this helps...
Neil
 
Just another thought on WIN2K and IIS server. You may need to manually associate the cgi extension with the PERL interpreter. IIS uses the registry to identify filetypes just he same way the win2k platform does. Check your file associations.

The next thing to look at is the mail program that the server is using. MOST cgi mail programs pipe information to the mail program. This probably is not in the same location as on the other server. Check to make you have a mail program and the path is availible to the script in some fashion.

Does the script have a config file?
Is the configeration right at the top of the main executed file?
Lastly, and hopefully not, the path to the mail program hardcoded in the script. This means you might have to look for it. A clue would be to open the cgi file in wordpad and search for 'MAIL'. This may help you locate the MAIL subroutine or config area.

hope this helps
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top