Tom Schindl wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I went back to my 2.0.40 install of Apache. The 2.0.54 was not playing
nice with plesk. How do I update the @INC path and/or mod_perl for the
new perl 5.8.7? I try using CPAN with install Bundle::Apache and no go.
Any ideas?
-Jon
I not sure if there have been API changes since 2.0.40 and 2.0.54 but
compiling mod-perl-2.x with apache 2.0.54 and use it with 2.0.40 this
will certainly lead to very strange situations you.
As in the message before there's nothing wrong when running 2.0.40 if
your plesk system needs it and install your own apache-2.0.54 and run it
on a different port (e.g. 81).
As already said before als compiling Apache-2.0.x is straight forward
and nothing you could not manage without reading the bundled
INSTALL-File(s).
Default-Install-Procedure:
- ------------------8<------------------
tar xzvf stable.tar.gz
cd perl-5.8.7/
sh ./Configure -de -Dprefix=/opt/myperl
make
make test
su
make install
exit
cd ..
tar xjvf httpd-2.0.54.tar.bz2
cd httpd-2.0.54
./configure --prefix=/opt/myapache
make
make install
vi /opt/myapache/conf/httpd.conf # search for Listen and set it to 81
cd ..
cd mod_perl-2.0.1/
/opt/myperl/bin/perl Makefile.PL MP_APXS=/opt/myapache/bin/apxs
make
make test
make install
vi /opt/myapache/conf/httpd.conf # Add LoadModule perl_module
modules/mod_perl.so
/opt/myapache/bin/apachectl start
- ------------------8<------------------
I've timed it and it took my now exactly 20 Minutes to get a setup with:
- - perl 5.8.7
- - httpd-2.0.54
- - mod-perl 2.0.1
When it comes to php I have no idea but I think its also that straight
forward. As I've always said I'm not a friend of those rpm's and it
really does take that long to get a running system. At least less time
than it took you:
- - find what's going wrong with your installation
- - work with ancient software like apache-2.0.40 causing you headache
because you are runing it long standing fixed bugs
Tom
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)
Comment: Using GnuPG with Mandriva - http://enigmail.mozdev.org
iD8DBQFDBX0jkVPeOFLgZFIRAg63AJ485/bL6i5wgJxcPtbXG4Raw9VffgCgniot
hkzZ4lKj1xLzk36cKQ6xB6M=
=dINX
-----END PGP SIGNATURE-----
I am currently using these install notes. I have run into another
problem. This must have been caused by one of my first perl installs?
/opt/perl/bin/perl Makefile.PL MP_APXS=/opt/httpd/bin/apxs
Reading Makefile.PL args from @ARGV
MP_APXS = /opt/httpd/bin/apxs
no conflicting prior mod_perl version found - good.
[ error] '/opt/httpd/bin/apxs -q INCLUDEDIR' failed:
[ error] Can't locate strict.pm in @INC (@INC contains:
/usr/local/lib/perl5/5.8.7/i686-linux /usr/local/lib/perl5/5.8.7
/usr/local/lib/perl5/site_perl/5.8.7/i686-linux
/usr/local/lib/perl5/site_perl/5.8.7 /usr/local/lib/perl5/site_perl .)
at /opt/httpd/bin/apxs line 19.
BEGIN failed--compilation aborted at /opt/httpd/bin/apxs line 19.
[ error] Unable to determine server version, aborting.
[ error] Invalid MP_APXS specified?
I have installed perl and apache as described above. Include should be
/opt/perl? Any ideas? Thanks in advance.
Jon