Installation d’Apache,PHP et RRDTool à partir des sources
SR octobre 25th, 2006
Apache HTTPd v 2.0.53 PHP v5.0.3 RRDTool v1.0.49 And my process is this: -------------------- #(this is pseudo-scripting, obviously) ##Apache 2.0.x: # get it, untar, cd into its directory export CFLAGS="-march=pentium4 -mfpmath=sse -msse2 -O2 -pipe -s \ -fomit-frame-pointer" make distclean ./configure --enable-so --enable-rewrite --enable-speling \ --disable-userdir --enable-http --enable-proxy --enable-proxy-http \ --enable-unique-id --enable-usertrack --enable-headers \ --enable-mime-magic --enable-mem-cache --enable-disk-cache \ --enable-cache --enable-deflate make su -c "make install"
# PHP 4.x/5.x
# get it, untar, cd into its directory
make distclean
./configure –with-apxs2=/usr/local/apache2/bin/apxs \
–with-mysql=shared,/usr –with-mysqli –with-gdbm –enable-dba \
–with-flatfile –with-gd –with-zlib-dir=/usr/lib –with-readline \
–with-snmp –enable-mbstring –with-bz2 –with-gettext –enable-bcmath
make
make install
cp php.ini-recommended /usr/local/lib/php.ini
# or get another
# one you like
# make sure the extensions directory listed in php.ini
# (/usr/local/lib/php/extensions/no-debug-non-zts-XXXXXX) is correct
# RRDTool
# get it, untar, cd into its directory
make distclean
./configure –enable-shared
make
make install
make site-perl-install
cd contrib/php4
ln -s . /usr/local/kits/source/php-x.x.x/ext/rrdtool
cd /usr/local/
ln -s rrdtool-1.0.xx rrdtoolcd /usr/local/kits/source/php-x.x.x
rm configure config.cache
./buildconf –force
./configure –with-apxs2=/usr/local/apache2/bin/apxs \
–with-mysql=shared,/usr –with-mysqli –with-gdbm –enable-dba \
–with-flatfile –with-gd –with-zlib-dir=/usr/lib \
–with-rrdtool=/usr/local/rrdtool –with-readline –with-snmp \
–enable-mbstring –with-bz2 –with-gettext –enable-bcmath
make
make install
# make sure your php.ini is correct (make install can break it,
# apparently)
Source : http://lists.ee.ethz.ch/rrd-developers/msg01387.html