On Sun, 15 Aug 2004, hcohen2 wrote:
Chris Devers wrote:
You're saying that Apache is responding to requests, but you want it to respond to your CGI script. You need to configure it to do this, and you need to give it a URL that correctly translates into the location of a file that Apache knows to serve as a CGI script.
I have since looked at the page and the explaination on the apache.org site. The page displayed is from the apache site!
So what?
It is common for the default Apache start page to be some kind of welcome message either from Apache or from your OS vendor.
That isn't necessarily a big deal.
I really think I need to remove this installation entirely
Why? You're 70% of the way there with the one you have now...
You say this is a custom installed Apache? Does that imply that you didn't have a copy of Apache available from Mandrake? I'd be very surprised if any version of Linux distributed today didn't come with it, so why not use that one?
I'm not a Mandrake user (or a Red Hat user), but I seem to remember that Mandrake's installer is based on the RPM system that Red Hat uses. With that in mind, can you do something like
rpm --install apache
? I just made that line up, so please look for other documentation to get the details, but there has to be a way to get & activate the one that Mandrake provides for their users.
(I'm more familiar with Debian, where it's just `apt-get install apache` and everything is downloaded & installed for you; I know that RPM is almost as good as APT, but I don't know the details of working with it.)
Here's an idea -- please send to the list:
* the location that your script is installed at, such as /usr/local/htdocs/cgi-bin/myscript.pl (or whatever it lives)
ScriptAlias /cgi-bin/ "/usr/local/apache/cgi-bin/"
As setup in httpd.conf file. Checking, the script is there, however, I see it now belongs to root and is not executable:
-rw-r--r-- 1 root root 172 Aug 10 19:29 /usr/local/apache/cgi-bin/cgihello.pl
Ok, so what happens if you open up the URL
http://localhost:8080/cgi-bin/cgihello.pl
? Does that work? It seems like it should...
* the output from this command, edited to point to your httpd.conf: egrep -i 'cgi|script|perl' /etc/httpd/httpd.conf # (or wherever it is)
This may help narrow things down.
ScriptAlias /cgi-bin/ "/usr/local/apache/cgi-bin/" ScriptAliased <Directory "/usr/local/apache/cgi-bin"> AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
Hmm, I don't see a call for the CGI module -- maybe it's statically linked. What happens if you try commands like these?
$ httpd -h 2>&1 | grep -i module -l : list compiled-in modules $ httpd -l Compiled-in modules: http_core.c mod_so.c suexec: disabled; invalid wrapper /usr/sbin/suexec
So for my Apache at home (the one that came with Mac OS X), I don't have much here. I'm hoping that you'll have mod_cgi.c in there somewhere -- if not, but if you do have mod_so.c -- then we can add the call to the CGI module into your Apache config.
(Also, to do a less noisy version of the httpd.conf check, try this next time it comes up --
egrep -i 'cgi|script|perl' /etc/httpd/httpd.conf | grep -v '^ *#'
That should filter out all the comment lines.)
-- Chris Devers [EMAIL PROTECTED] http://devers.homeip.net:8080/blog/
np: 'White Teeth - disc 2/19' by Zadie Smith from 'White Teeth'
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>