How to install PHP with GD support..
Moderator: General Moderators
How to install PHP with GD support..
Hi All..
I really need help configuring PHP with GD support. I am running Fedora 6, Apache and PHP 5.1.6, i have downloaded the gd-2.0.35 file and unpacked it under the directory /usr/lib/php/gd-2.0.35. I followed the instructions to install it which is as follows. Firstly ./configure --with-gd then make and lastly make install.. Everything installed with no errors. But now when i look at the phpinfo i still get the --without-gd. I really am lost as to how to make it --with-gd. Can someone please help me. Any help would be greatly appreciated
I really need help configuring PHP with GD support. I am running Fedora 6, Apache and PHP 5.1.6, i have downloaded the gd-2.0.35 file and unpacked it under the directory /usr/lib/php/gd-2.0.35. I followed the instructions to install it which is as follows. Firstly ./configure --with-gd then make and lastly make install.. Everything installed with no errors. But now when i look at the phpinfo i still get the --without-gd. I really am lost as to how to make it --with-gd. Can someone please help me. Any help would be greatly appreciated
- CoderGoblin
- DevNet Resident
- Posts: 1425
- Joined: Tue Mar 16, 2004 10:03 am
- Location: Aachen, Germany
-
StrangeRanger
- Forum Newbie
- Posts: 19
- Joined: Tue Jan 31, 2006 2:26 pm
Re: How to install PHP with GD support..
Dood, I'm having the exact same problem! Have you had any luck? PLEASE, for the love of all things holy post your solution if you have found one.RoyPHPDN wrote: But now when i look at the phpinfo i still get the --without-gd.
I used yum install php-gd to get gd support enabled on my sever, and it worked. I found numerous test scripts to check for gd support and they all passed w/ flying colors, but gd still is not working properly on my website. And I just know it's that little '--without-gd' line in my config file but I don't know how to fix that.
Can anyone out there please help?!
Thank you in advance,
j
Re: How to install PHP with GD support..
Loading the extenion doesn't change the config parameters line in the output of phpinfo() but still enables gd support.StrangeRanger wrote:And I just know it's that little '--without-gd' line in my config file but I don't know how to fix that.
Please post an example script that doesn work.StrangeRanger wrote:I found numerous test scripts to check for gd support and they all passed w/ flying colors, but gd still is not working properly on my website.
-
StrangeRanger
- Forum Newbie
- Posts: 19
- Joined: Tue Jan 31, 2006 2:26 pm
Re: How to install PHP with GD support..
Please post an example script that doesn work.[/quote]StrangeRanger wrote:I found numerous test scripts to check for gd support and they all passed w/ flying colors, but gd still is not working properly on my website.
I'd like to but I can't because it's part of my shopping cart package. But I know the script works because I have set up a WAMP and it works fine. And the only thing I've noticed different between the WAMP & the LAMP is that little line in my config file. The WAMP has '--with-gd' and the LAMP has '-without-gd' so that is where my assumption started.
Ideas? Thanks,
j
What doesprint?
Code: Select all
<?php
extension_loaded('gd') or die('no gd module');
echo '<pre>', var_export(gd_info(), true), "</pre>\n";-
StrangeRanger
- Forum Newbie
- Posts: 19
- Joined: Tue Jan 31, 2006 2:26 pm
Yup, did that before and got:
http://www.invertedgravity.com/volka.php
http://www.invertedgravity.com/gdtest.php
http://www.invertedgravity.com/phpinfo.php
Thanks for looking!
j
Do these help:array (
'GD Version' => 'bundled (2.0.28 compatible)',
'FreeType Support' => true,
'FreeType Linkage' => 'with freetype',
'T1Lib Support' => false,
'GIF Read Support' => true,
'GIF Create Support' => true,
'JPG Support' => true,
'PNG Support' => true,
'WBMP Support' => true,
'XPM Support' => false,
'XBM Support' => true,
'JIS-mapped Japanese Font Support' => false,
http://www.invertedgravity.com/volka.php
http://www.invertedgravity.com/gdtest.php
http://www.invertedgravity.com/phpinfo.php
Thanks for looking!
j
-
StrangeRanger
- Forum Newbie
- Posts: 19
- Joined: Tue Jan 31, 2006 2:26 pm
Sorry, probably should have explained that from the get go eh? My cart software has a feature to automatically generate thumbnail images from larger images, and that is the feature that I can not get working properly. It "tries" to work, but doesn't it. What do I mean by that, well, it generates like image placeholders. Like when an image file is missing you know how the browser simply places a placeholder w/ the file name. That's what it's doing.volka wrote:please elucidateStrangeRanger wrote:but gd still is not working properly on my website.
Thanks for helping,
j
-
StrangeRanger
- Forum Newbie
- Posts: 19
- Joined: Tue Jan 31, 2006 2:26 pm