On Tue, Feb 19, 2002 at 02:32:34AM +0000, Matthew Harrison wrote:
> I am a newbie to perl and linux and i am having trouble with my apache server
> and cgi scripts.
> [Tue Feb 19 02:23:39 2002] [error] (2)No such file or directory: exec of
> /var/www/cgi-bin/admin.cgi failed
First thing I'd suggest you to do is
- become apache
(su - apache, you might need to give it a shell in /etc/passwd before)
- call the script from the shell
Does this one spit out hells of html code at you?
IF YES:
- Your apache needs reconfiguration. See the postings about
ScriptAlias directives in this thread.
IF NO:
There's something wrong with the script itself.
- Check if the first line of the script points to the place
where it's interpreter's sitting (e.g. #!/usr/bin/perl)
- Check the permissions: the User or Group defined in httpd.conf
should be able to r and x the script and the dirs above.
In doubt, just chmod 555 the script.
- Try it again (via shell and browser).
If it still doesn't work, please post the full shell output.
--
Johannes Franken
Professional unix/network development
mailto:[EMAIL PROTECTED]
http://www.jfranken.de/
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]