-   Fedora (
-   -   fedora core 4 + apache + php - how install gd2 support? (

rehtorisi 08-06-2005 12:11 PM

fedora core 4 + apache + php - how install gd2 support?
How i install gd2 support for this system? apache and php are installed and they work fine.

hasse_bjork 08-06-2005 06:58 PM

I am running Fedoar Core 4, with gd-2.0.33-2. The easy way is to do a

yum install php-gd
This will install apache, php and php-gd version 2.

If this does not work, I recommend you to download the php-5.0.4-10.3.src.rpm and install it

rpm -i php-5.0.4-10.3.src.rpm

Edit the lines saying "--without-gd" to "--with-gd" in the file "/usr/src/redhat/SPEC/php.spec".

Recompile php and install it as root, when compiling has finished:

rpmbuild -bb /usr/src/redhat/SPEC/php.spec
cd /usr/src/redhat/RPMS/i386
rpm -Uh php-*

rehtorisi 08-06-2005 08:15 PM

Thanks for that!

but how i Recompile php?

And do i have to do some changes to php.ini? or somewhere else? to get gd2 work?

i'm newbie so.. :D

m0nkmaster 08-23-2005 12:32 PM

Thanks a million Hasse! I haven't got a clue what:


yum install php-gd
actually does but for me it worked great!

I've seen the command yum around a bit, what is it? An auto download and install app?


(btw, complete newbie, I guess it's obvious)

All times are GMT -5. The time now is 06:40 AM.