PDA

View Full Version : No way to load libgd.so in php



ludeens
09-10-2004, 12:52 PM
Hi all!

I'm trying to use some GD functions on a CD booted web server. Making php_info() i see that:

--with-gd=shared,/usr

But GD library is not installed on the system. So I dediced to download it, compile and install it in my usb stick.

Then i edited the php.ini this way:

extension_dir=/mnt/sda1/gd/lib
extension=libgd.so.2.0.0

I move this php.ini from my usb stick to /etc/php/apache/php.ini everytime i boot the machine, then i restart apache, but gd_info(); throws:

Fatal error: Call to undefined function: gd_info() in /mnt/sda1/www/index.php on line 2

The idea is to store httpd.conf (apache), my.cnf (mysql), php.ini (php), web files (*.php), mysql db_files, etc... into a usb_stick to turn any computer a full web server just with default knoppix CD and the usb stick.

The only thing i cant do and i need is to load gd library to use it in my php pages :(

Any idea or sugestion? Thanks to all


ludeens

P.D. Sorry about my english writting, im from spain ;)