Hi
problems with cgi and lots of questions for a newbie....
I've installed ht://dig to make it quick to search html on this box.
When a word is searched with default search page the browser returns
'the file /cgi-bin/htsearch/ cannot be found. Please check location and
try again'

htdig built the database and htsearch runs from the command line.
eg  /usr/lib/cgi-bin/htsearch words=linux > /tmp/result.html produces a
web page.
However, when its viewed in in the browser (moz), it will not build the
next page.

Apache is running and the ScriptAlias directive in
/etc/apache/httpd.conf is set to the local location of htsearch ie
'ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/'

There are errors on 'apache start'
/var/log/apache/error.log:

[Mon Apr 12 16:10:09 2004] [error] (2)No such file or directory:
mod_mime_magic: can't read magic file /etc/apache/share/magic
[Mon Apr 12 16:10:09 2004] [alert] apache: Could not determine the
server's fully qualified domain name, using 127.0.0.1 for ServerName
[Mon Apr 12 16:10:09 2004] [crit] (98)Address already in use: make_sock:
could not bind to port 80

How to correct this?
This is only a standalone workstation box and not wanted to serve pages
to the internet, though connects daily to get email and do www.
maybe this is to do with firewall?
or the 'domain name' ? - which apache can't find and I don't formally have.
what should I check next?
is it necessary to have apache to serve cgi scripts?
or is there something simpler?

TIA
Russell



--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to