2013/12/12

Install php5-rrd module on ubuntu 12.04

Abstract

Since I am running php-5.4 on ubuntu 12.04, apt-get install php5-rrd is not work due to the problems of dependency. I need to do it via pecl alternatively.

Steps

1. Make sure your pecl is installed properly.
2. apt-get install php5-dev
3. pecl update-channels
4. pecl install rrd
5. cd /etc/php5/mods-available
6. cp {?.ini} rrd.ini 
//note that simply copy a file among this directory and modify the extension value to rrd.so
7. cd ../conf.d
8. ln -s ../mods-available/rrd.ini 20-rrd.ini

done

Check

php -v
php -m | grep rrd


沒有留言:

張貼留言