Chris Devers wrote:
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 was not expecting to be using apache when I stalled Mdk 9.1 back in no later than early 2003. At that time perl was not my favored scripting language and I had no plan for becoming involved with web development. I was quite busy as a Sybase developer.
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
No not as a user:
Forbidden
You don't have permission to access /cgi-bin/cgihello.pl on this server.
------------------------------------------------------------------------ Apache/1.3.31 Server at 127.0.0.1 Port 8080
*Going to change ownership and try again. Absolutely no change! That is, still "Forbidden ... on this server".
Now trying to make executable by all users.
Getting much closer:*
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, [EMAIL PROTECTED] and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
*And here is the error:** *
*"[Sun Aug 15 14:14:29 2004] [error] [client 127.0.0.1] Premature end of script headers: /usr/local/apache/cgi-bin/cgihello.pl
Use of uninitialized value in concatenation (.) or string at /usr/local/apache/cgi-bin/cgihello.pl line 8.
Use of uninitialized value in concatenation (.) or string at /usr/local/apache/cgi-bin/cgihello.pl line 8."
*
*There was another error I corrected, but here I am hitting a wall because I do am not familar with the ENV table that apache uses. Just in case this might help, here is the "code" in the file - just a simplistic test script.
*
*Here is the entire script: *
*#!/usr/bin/perl # cgihello.pl use strict; use warnings;
print "Content-type: test/plain\n\n"; print "Hello CGI World!\n"; print "You're calling from $ENV{REMOTE_HOST}\n"; *
*Part of the problem is instead of bringing up the script and exhibiting the results I am asked to either save it to disc - I instead attempted to run it in Mozilla. The latter may not have been performed correctly. It seems my gut feel there were access rights problems previously seems to have been confirmed.
*
*So close, but confusion is setting in. Moreover, I have to run out soon, hence, I am cutting this short here because further checks will make it incomprehensible to any reader. I will follow up on your other suggestions probably tonight.
*
*Chris, sorry to be such a pain!
*
? Does that work? It seems like it should...
Well not quite.