GalerieBlogUnity3D ExamplesKontaktSitemapFullsitemap

howto php_rrdtool in gentoo's php

This is just a short howto include php_rrd to the mod_php:

# cd /usr/portage/dev-lang/php/
# ebuild php-5.2.5-r1.ebuild unpack
# cd /var/tmp/portage/dev-lang/php-5.2.5-r1/work/php-5.2.5/ext/
# wget http://oss.oetiker.ch/rrdtool/pub/contrib/php_rrdtool.tgz
# tar zxvf php_rrdtool.tgz
# cd rrdtool/
# phpize
# cp configure configure.org
# sed "s/PHP_RRDTOOL\/lib/PHP_RRDTOOL\/lib64/g" configure.org > configure
# rm configure.org
# ./configure --with-rrdtool=/usr --with-php-config=/usr/bin/php-config --with-libdir=/usr/lib64
# make && make install
# echo "extension=rrdtool.so" >> /PATH/TO/apache2/httpd.conf

in httpd.conf add:
PHPIniDir /PATH/TO/etc/php.ini
check your phpinfo();
phpinfo(rrdtools)
 Permalink

Kommentare

Keine (weiteren) neuen Kommentare erlaubt.