LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   fedora core 4 + apache + php - how install gd2 support? (https://www.linuxquestions.org/questions/fedora-35/fedora-core-4-apache-php-how-install-gd2-support-350576/)

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
Code:

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
Code:

wget http://download.fedora.redhat.com/pu...4-10.3.src.rpm
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:
Code:

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


rehtorisi 08-06-2005 08:15 PM

thansk!
 
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:

Code:

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.