enabling php_gd2.so

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
croniccoder
Forum Commoner
Posts: 27
Joined: Fri Jul 07, 2006 10:45 am

enabling php_gd2.so

Post 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?
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

You're running php on which os (if linux: which distribution)?
croniccoder
Forum Commoner
Posts: 27
Joined: Fri Jul 07, 2006 10:45 am

Post by croniccoder »

Solaris
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

and you installed a rpm with binaries (name,url?) or did you compile php from sources?
croniccoder
Forum Commoner
Posts: 27
Joined: Fri Jul 07, 2006 10:45 am

Post by croniccoder »

I didn't install it, so I'm not exactly sure. My guess is installed a rpm with binaries.
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

if you're not sure, who is? Can you ask the administrator of that box?
croniccoder
Forum Commoner
Posts: 27
Joined: Fri Jul 07, 2006 10:45 am

Post 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?
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post 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?
croniccoder
Forum Commoner
Posts: 27
Joined: Fri Jul 07, 2006 10:45 am

Post 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?
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post 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.
Post Reply