[BlueOnyx:01107] Re: Problem with PHP not using GD

Chuck Tetlow chuck at tetlow.net
Wed Apr 22 22:33:10 -05 2009


Michael,

I get the following in the "Configure Command":
'--with-config-file-scan-dir=/etc/php.d' 
'--enable-gd-native-ttf' 
'--without-gd'

I could include the entire output - but I believe those are the important parts.

In the "additional .ini files parsed section - I get:
/etc/php.d/gd.ini

And I knew that file existed - it contains:

[root at server50 php.d]# cat gd.ini
; Enable gd extension module
extension=gd.so
[root at server50 php.d]#

But it doesn't seem to be doing anything.  When you ldd to check for the libraries that PHP is using, that GD library isn't among them.  And this test seems to indicate that PHP was specifically compiled without GD support.

Any suggestions?  And thanks for your help.

Chuck

ODD - I also see "'--without-mysql'" in the "Configure Command" output.  Could this affect its MySQL usage?  I've been having some PHP/MySQL problems too!!

 

---------- Original Message -----------
From: Michael Stauber <mstauber at blueonyx.it> 
To: BlueOnyx General Mailing List <blueonyx at blueonyx.it> 
Sent: Thu, 23 Apr 2009 03:07:56 +0200 
Subject: [BlueOnyx:01106] Re: Problem with PHP not using GD

> Hi Chuck, 
> 
> > >From my research, the problem is that PHP isn't compiled to use GD 
> > > graphics library.   When my customer's script calls GD functions - I get 
> > > these errors in /var/log/httpd/error_log: 
> > 
> > [Thu Apr 16 20:41:26 2009] [error] [client xxx] PHP Fatal error:  Call to 
> > undefined function imagecolorallocate() in 
> > /home/.sites/143/site2/web/securimage/securimage.php on line 479, referer: 
> > http://www.xxx.com/request_quote.php [Thu Apr 16 20:28:46 2009] [error] 
> > [client xxx] PHP Fatal error:  Call to undefined function 
> > imagecreatetruecolor() in 
> > /home/.sites/143/site2/web/securimage/securimage.php on line 478, referer: 
> > http://www.xxx.com/request_quote.php 
> 
> Create a test page with this code in it: 
> 
> <? phpinfo(); ?> 
> 
> Then look at that page and you'll see that the PHP-5.1.6 on BlueOnyx is 
> compiled with the bundled GD (2.0.28 compatible). 
> 
> There are two ways of building a GD aware PHP: Native GD or bundled GD. 
> 
> Native means: PHP uses the GD that's installed on the server. 
> 
> Bundled means: PHP brings its own version of GD, which is independent from a 
> GD that may or may not be present on the server. 
> 
> Bundled is usually preferred, as it means lot less hassles during builds and 
> upgrades - hence RedHat and CentOS chose that way. 
> 
> It could be that the PHP security settings for that site (or the server in 
> general) are interfering with your script. But the PHP-5.1.6 you have should - 
> by itself - allow you to use that function in general. 
> 
> -- 
> With best regards 
> 
> Michael Stauber 
> 
> _______________________________________________ 
> Blueonyx mailing list 
> Blueonyx at blueonyx.it 
> http://www.blueonyx.it/mailman/listinfo/blueonyx 
------- End of Original Message -------
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.blueonyx.it/pipermail/blueonyx/attachments/20090422/81770b92/attachment.html>


More information about the Blueonyx mailing list