First of all, please no recommendations to try rpms. I know rpms are generally easier and apt-get is great yadda yadda, but firewalls are blocking ftp so apt-get and perl CPAN aren't options. I'm installing from source. Here's what I did.
Code:
cd httpd-2.0.49
./configure --prefix=/usr/local/apache2/ \
--enable-info --enable-headers --enable-so \
--enable-speling --enable-ssl --enable-shared=perl
make
make install
I added the --enable-shared=perl because nothing else was working, but that also didn't work. This compiled error-free
then
Code:
cd ../mod_perl-1.99_13/
perl Makefile.PL MP_APXS=/usr/local/apache2/bin/apxs
make && make test && make install
also compiled error-free
then I added these lines to the httpd.conf
Code:
LoadModule perl_module modules/mod_perl.so
<IfModule mod_perl.c>
Alias /perl/ /home/httpd/perl/
<Location /perl>
SetHandler perl-script
PerlHandler Apache::Registry
Options +ExecCGI
</Location>
</IfModule>
everything compiles error-free and httpd starts just fine; when I check the error logs it says that mod_perl isn't started and if I do the telnet check for mod_perl it also says that mod_perl isn't running.
Code:
root@mymachine mod_perl-1.99_13# telnet mymachine 80
Trying xxx.xxx.xxx.xxx...
Connected to mymachine.
Escape character is '^]'.
HEAD HTTP / 1.1
HTTP/1.1 400 Bad Request
Date: Thu, 29 Jul 2004 15:02:11 GMT
Server: Apache
Connection: close
Content-Type: text/html; charset=iso-8859-1
Connection closed by foreign host.
Good on ya, if you can figure this out. I've been pounding on it for weeks and still nothing. Cheers, P