Le lundi 11 juillet 2011 à 22:14 +0300, Octavian Rasnita a écrit :
>
> Mmm, I like the word "simple" :-)
>
These are the notes I took about a year ago for compilation on Debian of
Perl/Apache2/Mod_perl2. If I am not mistaken, they are all you need.
Look for 'Compilation' under each title.
Perl
Download source
wget -c http://www.cpan.org/src/stable.tar.gz
Compilation
./Configure -Dcc=gcc -Dprefix=/home/perl/5.X.X
-Dextras="Bundle::LWP DBI ExtUtils::XSBuilder DBD::Pg
DBD::SQLite Date::Simple URI::Escape Apache::Session
Apache::DBI"
make && make test && make install
Installation des modules
/home/perl/5.X.X/bin/perl -MCPAN -e shell
Apache2
Guide d'installation
http://perl.apache.org/docs/2.0/user/install/install.html
Download source
wget -c http://apache.crihan.fr/dist/httpd/httpd-2.X.X.tar.gz
Compilation
mkdir /home/httpd/2.X.X
CC="gcc-4.1" ./configure --prefix=/home/httpd/2.X.X
--enable-module=shared --enable-rewrite=shared
--enable-dir=shared
make && make install
Init.d script
scp /etc/init.d/apache2 192.168.1.6:'/etc/init.d'
Populate rc?.d
update-rc.d apache2 defaults 91
Mod_perl
Download source
http://perl.apache.org/download/index.html
Compilation
/home/perl/5.X.X/bin/perl Makefile.PL
MP_AP_PREFIX=/home/httpd/2.X.X
make && make test && make install
Éditer httpd.conf
LoadModule perl_module modules/mod_perl.so
Libapreq2
Download source
wget -c
http://mirror.mkhelif.fr/apache/httpd/libapreq/libapreq2-2.08.tar.gz
Compilation
/home/perl/5.X.X/bin/perl Makefile.PL
--with-apache2-apxs=/home/httpd/2.X.X/bin/apxs
--with-expat=/home/httpd/2.X.X/
make && make test && make install
edit httpd.conf
LoadModule apreq_module /home/httpd/2.X.X/modules/mod_apreq2.so
--
Vincent Veyron
http://marica.fr/
Logiciel de gestion des sinistres et des contentieux pour le service juridique