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! It just says I changed the config file, which is true. I really think I need to remove this installation entirely and do a better installation removing some of the strangeness I unintentionally inflicited on this server. I only became su for the make install step. Moreover, I began the installation in my home directory and knew nothing of the PREFIX directory, which apache defaulted to.




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



* 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.


# "Includes", "FollowSymLinks", "ExecCGI", or "MultiViews".
# also affects SERVER_NAME and SERVER_PORT in CGI scripts.
# mod_status and mod_info output etc., but not CGI generated documents).
# EBCDICConvertByType On=InOut application/postscript model/vrml
# ScriptAlias: This controls which directories contain server scripts.
# ScriptAliases are essentially the same as Aliases, except that
# The same rules about trailing "/" apply to ScriptAlias directives as to
ScriptAlias /cgi-bin/ "/usr/local/apache/cgi-bin/"
# "/usr/local/apache/cgi-bin" should be changed to whatever your ScriptAliased
# CGI directory exists, if you have that configured.
<Directory "/usr/local/apache/cgi-bin">
AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
# AddDescription allows you to place a short description after a file in
# Format: AddDescription "description" filename
#AddDescription "GZIP compressed document" .gz
#AddDescription "tar archive" .tar
#AddDescription "GZIP compressed tar archive" .tgz
# avoid the ambiguity with the common suffix for perl scripts.
# If you want to use server side includes, or CGI outside
# ScriptAliased directories, uncomment the following lines.
# To use CGI scripts:
#AddHandler cgi-script .cgi
# Action lets you define media types that will execute a script whenever
# pathnames for oft-used CGI file processors.
# Format: Action media/type /cgi-script/location
# Format: Action handler-name /cgi-script/location
#ErrorDocument 404 /cgi-bin/missing_handler.pl
# N.B.: You can redirect to a script or a document using server-side-includes.
#ErrorDocument 402 http://www.example.com/subscription_info.html
# request will *not* be available to such a script.
# which has a broken HTTP/1.1 implementation and does not properly
# days. This bug involved a CGI script distributed as a part of Apache.
# script on phf.apache.org. Or, you can record them yourself, using the script
# support/phf_abuse_log.cgi.
#<Location /cgi-bin/phf*>
# ErrorDocument 403 http://phf.apache.org/phf_abuse_log.cgi


Nearly everything is commented out and there seems to be no direct reference to perl at all that is active. I did a screwed up default installation. Moreover, I do not like the last line though it too seems inactive.

I think I should just wipe out this installation by going to my home directory ~/apache_1.3.31 where I did the ./configure and make as a user and the make install as su.

Is the correct command to remove this installation: make uninstall or just uninstall?

I think it would be better to do this right by installing as su completely in the /usr/local/apache directory and also activating the connection to perl (and later to php).

I think I am going to need something like both:
--activate-module=perl \ # problem here my perl was installed by the Mandrake installation and I do not see a source file.
--enable-module=/usr/bin/perl


would that work as part of the ./configure command?

I hope this is clear enough, and does not just further reflect my confusion. In any case, I think removal of the present installation of apache is called warrented.


-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to