Requested method:POST not allowed

nike_guy_man's picture

They have: 840 posts

Joined: Sep 2000

Whenever I try to run a PERL script on my server, I get that message
What's wrong?
I uploaded in ASCII and did chmod functions, but thats all I get
either that or internal error
Help please!!

Laughing out loud

They have: 488 posts

Joined: Feb 2000

Probable cause are:

1)Corrupted cgi-perl script -- check and upload again.
2)Script path to perl not correct ---check the path at top.
3)Script chmod not correct -- ensure file chmod is correct.
4)cgi-bin folder not chmod 755 -- correct it.
5)File upload in binary -- upload again in ascii.

If all else fail, then contact your Host's support for assistance.

nike_guy_man's picture

They have: 840 posts

Joined: Sep 2000

tried all of them
I am my own host Sad
I haven't a clue what to do

They have: 21 posts

Joined: Jun 2000

The problem might not be with the CGI script itself, but with your Apache configuration (assuming you are running Apache). The Apache FAQ talks about this, and about how to change your configuration. Basically, it suggests that you might be trying to run the .cgi script outside of your cgi-bin, without , but the problem also might be that you simply need to rename the extension to match whatever you configured Apache to recognize as the cgi executable extension. Sometimes, during a default install, Apache is configured to support .pl or .cgi as the extension, but not always both, and you need to change that by editing your /etc/httpd/conf/httpd.conf file.

Of course, you probably do not want to allow every script that is dropped in the cgi-bin to be executable, so the best setup is to put something like this in your directive for each site that will be serving up cgi content.

Alias /cgi-bin/ /path/to/cgi-bin/

Options ExecCGI -Indexes
AddHandler cgi-script .pl .cgi

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.