[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Sheflug] Trying to be a standalone server but failing
> I think the subject says it all. I'm getting into Perl and CGI things and want
> my computer to be a standalone server so that I can execute Perl via Netscape.
> However, Netscape just displays the source code for any programs that I try and
> execute. I must be doing something very wrong.
>
Where are the scripts installed? In the cgi-bin directory? Or in
$HOME/public_html. If in public_html, you may need to give the CGI scripts a
".cgi" extension.
If still having problems, then check the apache config (httpd.conf or
srm.conf, depending on hold recent your apache version is). These lines
should be present or added:
For http://server/cgi-bin/script to work:
ScriptAlias /cgi-bin/ /path/to/global/cgi-bin/
eg, on my box I have:
ScriptAlias /cgi-bin/ /usr/local/htppd/cgi-bin/
For http://server/~user/script.cgi to work:
AddHandler cgi-script .cgi
You can set up multiple CGI paths...for example, I have:
ScriptAlias /cgi-bin/ /usr/local/httpd/cgi-bin/
ScriptAlias /qmail-cgi/ /home/chris/sys/qmail/vchkpw/devel/cgi/
ScriptAlias /cgi-chris/ /home/chris/www/cgi/
in my config.
Chris...
--
@}-,'-------------------------------------------------- Chris Johnson --'-{ [at]
/ "(it is) crucial that we learn the difference / sixie [at] nccnet.co.uk \
/ between Sex and Gender. Therein lies the key / \
/ to our freedom" -- LB / www.nccnet.co.uk/~sixie \
---------------------------------------------------------------------
Sheffield Linux User's Group - http://www.sheflug.co.uk
To unsubscribe from this list send mail to
- <sheflug-request [at] vuw.ac.nz> - with the word
"unsubscribe" in the body of the message.
GNU the choice of a complete generation.