Page 1 of 1

enabling php_gd2.so

Posted: Fri Aug 25, 2006 9:20 am
by croniccoder
I am trying to enable image support for my php installation (it's version 4.4). Does php_gd2.so or php_gd2.dll install by default with 4.4? Or does php need to be compiled to reveal this file. I can't seem to find this file on my server.

I uncommented the extension in php.ini, but I still can't get it to work. I believe that it's not seeing this file (if it is ever there).

Any suggestions?

Posted: Fri Aug 25, 2006 9:38 am
by volka
You're running php on which os (if linux: which distribution)?

Posted: Fri Aug 25, 2006 9:42 am
by croniccoder
Solaris

Posted: Fri Aug 25, 2006 9:43 am
by volka
and you installed a rpm with binaries (name,url?) or did you compile php from sources?

Posted: Fri Aug 25, 2006 9:45 am
by croniccoder
I didn't install it, so I'm not exactly sure. My guess is installed a rpm with binaries.

Posted: Fri Aug 25, 2006 9:46 am
by volka
if you're not sure, who is? Can you ask the administrator of that box?

Posted: Fri Aug 25, 2006 9:50 am
by croniccoder
I asked the administrator and they are not sure, as this installation was done before this particular admin took over. Is there a way to determine by looking at the server?

Posted: Fri Aug 25, 2006 10:03 am
by volka
Sorry, I don't even know what kind of package system is used on solaris.
Shouldn't the admin know how to check what packages have been installed?

Posted: Fri Aug 25, 2006 10:14 am
by croniccoder
I've done a search on the server for php_gd2.so and it wasn't found. Wouldn't that indicate the gd2 was not compiled into php?

Posted: Fri Aug 25, 2006 11:57 am
by volka
But it might be the extension module was compiled but put into a separate package.
Perhaps <?php phpinfo(); ?> can help.
a) it shows which php.ini file is used
b) and it shows the compile flags used to build the php binary. Do you find something like --with-gd=shared there?

It's probably not too hard to find ready-made packages for solaris (though the link on php.net is a bit outdated).
And neither is compiling php from the sources (see http://www.php.net/manual/en/install.unix.php).
But mixing two instances of php might complicate matters. So you really should figure out your current system a bit more.