Mandrake 10.1 - PHPLIB + PHP-imlib Howto
Author: Stephen Khoo
Updated: 11 March 2005
PHPLIB
We use the PHPLIB set of libraries for template and database abstraction. The latest version can be downloaded from: https://sourceforge.net/projects/phplib
PHP-imlib
Here is the set we installed using drakconf:
|
rpm -qa | grep -i imlib | sort
|
|
imlib-1.9.14-10.1.101mdk
imlib2_loaders-1.1.2-0.20040913.1mdk
libimlib1-1.9.14-10.1.101mdk
libimlib2_1-1.1.0-4mdk
libimlib2_1-filters-1.1.0-4mdk
libimlib2_1-loaders-1.1.0-4mdk
|
In addition you need the php-imlib library which you can get from:
Install this RPM using the option --nodeps, to force it to install with your current RPMs. You then need to:
- move the imlib.so file from /usr/lib/php4 to /usr/lib/php/extensions
- add a file called xx_imlib.ini (where xx is a 2 digit number)
to php in /etc/php.d to load it.
This file needs to contain one line : extension = imlib.so
|
rpm -Uvh php-imlib-4.3.8-1.mortenp.rh73.i386.rpm --nodeps
cp /usr/lib/php4/imlib.so /usr/lib/php/extensions
echo 'extension = imlib.so' > /etc/php.d/67_imlib.ini
|
php.ini
Make sure php can find these libraries. In /etc/php.ini look for:
include_path = ".:/usr/lib/php/:/usr/share/pear/:/usr/share/php/imlib:/usr/local/lib/phplib"
The full initialisation file for php can be found here: php.ini