Forum Moderators: coopster & phranque

Message Too Old, No Replies

405 Error.. UGGHH

         

Acternaweb

12:43 pm on Jun 25, 2001 (gmt 0)

10+ Year Member



I am running a script that is supposed to work as a newsletter. My visitor can opt in/out to receive email from me. When I execute the script, I get a 405 error. I tried changing the chmod to 700 (from 755) and it still is not working.

Any Ideas? Should I ask my ISP about it?

Thanks,

Paul

sugarkane

12:52 pm on Jun 25, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



How are you calling the script? If you're using <form method="GET"> it might be worth switching it to method="POST" or vice versa.

If that doesn't work, it sounds like there's a problem with your cgi-bin configuration.

Acternaweb

2:04 pm on Jun 25, 2001 (gmt 0)

10+ Year Member



HI, I tried switching "post" to "get" now I am prompted to download the file.

I am running other scripts from the cgi-bin and it works.
The only difference is I have this script in a new folder under that directory.

Should I try making it a cgi script instead of a pl?

sugarkane

2:08 pm on Jun 25, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



> Should I try making it a cgi script instead of a pl?

Aha! Yes, that should work. It looks like the server isn't set up to run .pl files as a cgi...

Acternaweb

8:39 pm on Jun 25, 2001 (gmt 0)

10+ Year Member



Is it a bad idea to mix pl and cgi scripts?

Should I make all the files cgi? Is there a way to check to see if the sever is set up for pl?

I changed the script to cgi and it seemed to work athlough the script did not work properly.

sugarkane

9:07 pm on Jun 25, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



It doesn't really matter whether you use .pl or .cgi in itself, but if your server isn't set up to treat .pl files as CGI scripts, then you'll have to rename to .cgi or you'll get the 405 error every time...

Acternaweb

3:20 pm on Jun 26, 2001 (gmt 0)

10+ Year Member



I changed the pl to cgi, but now get a 500 error.

I am running a feedback form, guestbook and email a friend script, at all are working.

What I am trying to do is create an opt-in newsletter, do you know where I can find another script to do this?

sugarkane

8:26 am on Jun 27, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



No specific script springs to mind, but you could take a look through the old stand-by hotscripts [hotscripts.com] to see if they have anything.

Before giving up on the script you have, have you tried all the standard troubleshooting tips here [webmasterworld.com]?