Hi, i have a quick question about installing php and perl modules for
apache1.3.12. I am obiviously doing something wrong but i dont know what
, here's what im doing:
Firstly, I install mod_perl-1.24 with the following:
tar xzvf mod_perl-1.24.tar.gz
cd mod_perl-1.24
perl Makefile.PL APACHE_SRC=../apache_1.3.12/src DO_HTTPD=1 USE_APACI=1
EVERYTHING=1
make && make test && make install
cd ../apache_1.3.12
make install
And then added the following to httpd.conf:
Alias /perl/ /home/httpd/perl/
and
PerlModule Apache::Registry
<Location /perl>
SetHandler perl-script
PerlHandler Apache::Registry
Options ExecCGI
allow from all
PerlSendHeader On
</Location>
This works great and i can run my .pl's tests and 'httpd -l' lists
mod_perl.c in the output list.
Secondly, i install php4 with the following:
tar xzvf php-4.0.1pl2.tar.gz
cd apache_1.3.12
./configure --prefix=/www
cd ../php-4.0.1pl2
./configure --with-mysql --with-apache=../apache_1.3.12
--enable-track-vars
make
make install
cd ../apache_1.3.x
./configure --activate-module=src/modules/php4/libphp4.a
make
make install
cd ../php-4.0.1pl2
cp php.ini-dist /usr/local/lib/php.ini
Edited httpd.conf added:
Alias /php/ /home/httpd/php/
and
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
This also works great, and php test files also work. BUT here is where
my problem is: 'httpd -l' lists mod_php4.c in the output list of
installed modules. But now my previous installation of perl and its
traces from the httpd binary have been lost. Is there something i can do
to tell the php installation not to overwrite the perl installation ? or
what am i doing wrong ?? ie i want perl and php supported in the same
httpd binary but at the moment it only lets me do one or the other.
Sorry bout the lenght, Thanks
Regards.
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!