[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] Help: Cannont get Perl script to run



on 2/29/00 2:32 PM, Jeff S. Lucido at JSLucido@xxxxxxxxxxx wrote:

> I am sure a majority of you are sick of these types of posts, however I
> have tried a lot of different things (including looking through the
> archives Fathi!) and I cannot get a simple Perl script to run.
> 
> I moved a site onto my RaQ3 this morning which contains Matt's formmail.pl
> script. I placed the file in a cgi-bin directory I placed in the web
> directory of the virtual site. CHMOD'd to 755 for execution permissions.
> Made sure the reference to /usr/bin/perl was correct and then tried to
> execute the script. No dice! IE gives me "Error 405 : Resource not allowed."
> 
> Past this I tried to CHOWN the file to a few different groups, but no luck.
> The file is setup the same way it was on a different UNIX machine (which
> ran the script with no errors). I am lost at this point.
> 
> Any and all thoughts would be greatly appreciated! Thanks in advance.

I would try an ultra simple perl script like:

#!/usr/bin/perl
print "Content-type: text/html";
print "Hello world";

and see if it works.  Just to chekc and make sure perl cgi stuff is working.

Beyond that, the Raq's come with cgiwrappers for security reasons.  One of
the scripts that have a known problem is the formmail.pl.  I don't think
this problem was resolved with the Raq3.  I don't remember what I took to
get it to work, but I *think* if you search for 'wrap' or 'formmail' in the
knowledgebase (kb.cobaltnet.com), you may find something.

-k