Hello,

I have been trying to get mod_perl running on my Mandrake Linux 7 system that
was supposed to have mod_perl installed along with Apache when I originally
installed the OS.  I have the following on my system:

Apache, Version 1.3.12
perl, version 5.005_03 built for i386-linux
gcc version 2.95.2 19991024 (release)
mod_perl/1.21

>From what I can tell, my /etc/httpd/conf/httpd.conf file addresses mod_perl with
one of last lines of the file stating the following:

Include conf/addon-modules/mod_perl.conf

My mod_perl.conf file is located in /etc/httpd/conf/addon-modules.  The contents
of this file are as follows:

MOD_PERL.CONF FILE

LoadModule perl_module    /usr/lib/apache/libperl.so
AddModule mod_perl.c

Alias /mod-perl/ /home/httpd/mod-perl/
<Location /mod-perl>
SetHandler perl-script
PerlHandler Apache::Registry
PerlSendHeader On
Options +ExecCGI
</Location>

I have placed a mod_perl script into my mod_perl script directory
(/home/httpd/mod-perl) called modperl.pl and tried to run it from the Netscape
command line:

http:/./192.168.0.2/mod-perl/modperl.pl    but I only get the following error
eventhough the file exists and is not empty:

The document contained no data.  Try again later, or contact the server's
administrator.  <OK>

I can run CGI scripts from the /home/httpd/cgi-bin directory however.  What am I
doing wrong???  Can someone help me out?  Thanks a lot!

Rich









Rich Lemanski wrote:

> Hello everyone,
>
> I am not sure what to do next.  I have Mandrake Linux 7.0 that was
> supposed to have Apache and mod_perl installed when I first built it but
> every search that I have used to find mod_perl has turned up nothing.  I
> was going to compile mod_perl into Apache that came with Linux but it
> does not have a src directory because it was not built from source.  So
> I scrapped that idea and decided to install Apache from source but that
> has failed because it could not find the make utility.  I ran a find on
> the system and it turned up nothing - # find / -name 'make'.  I was
> under the impression that 'make' is part of the C compiler.  I do have a
> GCC compiler installed along with Perl and Apache.  Attached is some
> useful information that I pulled from my system.  I do find it
> interesting that the output of apachectl status gave the following
> line:  Server/Linux-Mandrake) PHP/3.0.13 mod_perl/1.21.  This seems to
> indicate to me that it is installed!  Any help would be greatly
> appreciated.
>
>   ------------------------------------------------------------------------
> # pwd
> /opt/installs/apache_1.3.12
>
> # ls -la
> total 232
> drwxr-xr-x   8 1078     1078         1024 Jul 14 00:19 ./
> drwxr-xr-x   5 root     root         1024 Jul 13 21:28 ../
> -rw-r--r--   1 1078     1078        12957 Mar 31  1999 ABOUT_APACHE
> -rw-r--r--   1 1078     1078         2922 Feb 23 16:51 Announcement
> -rw-r--r--   1 1078     1078        27964 Dec 21  1999 INSTALL
> -rw-r--r--   1 1078     1078        35773 Aug 20  1999 KEYS
> -rw-r--r--   1 1078     1078         2848 Jan  1  1999 LICENSE
> -rw-r--r--   1 root     root        26833 Jul 13 23:05 Makefile
> -rw-r--r--   1 1078     1078        26758 Jan 11  2000 Makefile.tmpl
> -rw-r--r--   1 1078     1078         2046 Apr  1  1998 README
> -rw-r--r--   1 1078     1078         3132 Mar 19  1999 README.NT
> -rw-r--r--   1 1078     1078        11176 Dec 20  1999 README.configure
> -rw-r--r--   1 1078     1078          331 Sep 21  1998 WARNING-NT.TXT
> drwxr-xr-x   2 1078     1078         1024 Feb 23 17:07 cgi-bin/
> drwxr-xr-x   2 1078     1078         1024 Feb 23 17:10 conf/
> -rw-r--r--   1 1078     1078         5909 Dec 28  1999 config.layout
> -rwxr-xr-x   1 root     root          307 Jul 13 23:05 config.status*
> -rwxr-xr-x   1 1078     1078        56062 Feb  5 08:28 configure*
> -rw-r--r--   1 root     root           28 Jul 14 00:19 help1.txt
> drwxr-xr-x   3 1078     1078         1024 Feb 23 17:07 htdocs/
> drwxr-xr-x   3 1078     1078         2048 Feb 23 17:07 icons/
> drwxr-xr-x   2 1078     1078         1024 Feb 23 17:10 logs/
> drwxr-xr-x  11 1078     1078         1024 Jul 13 23:05 src/
>
> # ./configure --prefix=/usr/local/apache
> Configuring for Apache, Version 1.3.12
>  + using installation path layout: Apache (config.layout)
> Creating Makefile
> Creating Configuration.apaci in src
> ./helpers/TestCompile: make: command not found
> Creating Makefile in src
>  + configured for Linux platform
>  + setting C compiler to gcc
>  + setting C pre-processor to NOT-AVAILABLE
>  + checking for system header files
>  + adding selected modules
>  + checking sizeof various data types
>  + doing sanity check on compiler and options
> ** A test compilation with your Makefile configuration
> ** failed.  The below error output from the compilation
> ** test will give you an idea what is failing. Note that
> ** Apache requires an ANSI C Compiler, such as gcc.
>
> ======== Error Output for sanity check ========
> ============= End of Error Report =============
>
> Aborting!
>
> # perl -v
> This is perl, version 5.005_03 built for i386-linux
>
> Copyright 1987-1999, Larry Wall
>
> Perl may be copied only under the terms of either the Artistic License or the
> GNU General Public License, which may be found in the Perl 5.0 source kit.
>
> Complete documentation for Perl, including FAQ lists, should be found on
> this system using `man perl' or `perldoc perl'.  If you have access to the
> Internet, point your browser at http://www.perl.com/, the Perl Home Page.
>
> # gcc -v or cc -v
> Reading specs from /usr/lib/gcc-lib/i586-mandrake-linux/2.95.2/specs
> gcc version 2.95.2 19991024 (release)
>
> # apachectl status
>
>                   Apache Server Status for LaZaRus.ubfQd.net
>
>    Server Version: Apache/1.3.9 (NetRevolution Advanced Extranet
>    Server/Linux-Mandrake) PHP/3.0.13 mod_perl/1.21
>    Server Built: Jan 5 2000 05:09:42
>      _________________________________________________________________
>
>    Current Time: Friday, 14-Jul-2000 00:31:32 CDT
>    Restart Time: Friday, 14-Jul-2000 00:25:19 CDT
>    Parent Server Generation: 0
>    Server uptime: 6 minutes 13 seconds
>    1 requests currently being processed, 9 idle servers
> W_________......................................................
> ................................................................
> ................................................................
> ................................................................
>
>    Scoreboard Key:
>    "_" Waiting for Connection, "S" Starting up, "R" Reading Request,
>    "W" Sending Reply, "K" Keepalive (read), "D" DNS Lookup,
>    "L" Logging, "G" Gracefully finishing, "." Open slot with no current
>    process



Reply via email to