Forum Moderators: phranque

Message Too Old, No Replies

Any help enabling GD for PHP/Apache?

Doesn't seem to work

         

tmhcorp

9:34 pm on Jun 29, 2006 (gmt 0)

10+ Year Member



I'm trying to enable the GD library (gd.so) for PHP. Here is what I've tried without success:

Running Trustix 2.1 (Yes, I know...)

php -i shows:
--with-gd=shared
but no other mention of GD

I did this:
swup --install mod_php4-gd (No problems. Installed RPM and dependant RPMs. Everything fine.)

In php.ini: extension=gd.so (cleared comment character)
service httpd restart (even tried reboot whole server)

Double checked php.ini:
enable_dl = On
extension_dir = /usr/share/php4 (gd.so is there too)

no errors in apache log.

php -i has not changed. Shows same info as beginning.

Am I missing something? I thought this was pretty straight forward, but I must have missed something...

Thanks!

Gemox

5:31 pm on Jul 3, 2006 (gmt 0)

10+ Year Member



I remember i had an issue with getting GD to work with PHP ... i realised i didn't place the GD.dll in the right directory.

So, what you should do is copy the gd dll to the apache core, outside the php directory under /www/apache2/

:: I will be able to tell you more later, i can't since i am not at my WebServer ...

- Cheers

tmhcorp

6:06 pm on Jul 3, 2006 (gmt 0)

10+ Year Member



I'm on Linux, so it might be a little different.

Actually, a few minutes ago I upgraded PHP to the last PHP 4 version and upgraded Apache as well. Now GD works fine.

This was really simple under Trustix with the swup command.

Thanks!