Add GD & MySQL support on php5

Installing, Configuring, Troubleshooting server daemons such as Web and Mail
Post Reply
maxime
Posts: 25
Joined: 2005/11/10 08:04:38

Add GD & MySQL support on php5

Post by maxime » 2008/03/10 11:11:05

Hello,

I've php installed on my Centos4 box, but configured without GD and MySQL.
How can i add them ?
I'm looking for the configure script : ./configure, but i didn't find it :(

Thanks for help.

gerald_clark
Posts: 10642
Joined: 2005/08/05 15:19:54
Location: Northern Illinois, USA

Add GD & MySQL support on php5

Post by gerald_clark » 2008/03/10 13:18:51

man yum

maxime
Posts: 25
Joined: 2005/11/10 08:04:38

Re: Add GD & MySQL support on php5

Post by maxime » 2008/03/10 13:39:37

Of course, but something like "yum install php-gd.i386" doesn't work because it needs php4 and i use php5.
I got the same thing with MySQL.
So i may not understand something, but what ... ?

[quote]yum list installed *php*
Installed Packages
php.i386 5.1.6-3.el4s1.7 installed
php-cli.i386 5.1.6-3.el4s1.7 installed
php-common.i386 5.1.6-3.el4s1.7 installed
php-pear.noarch 1:1.4.11-1.el4s1.1 installed
[/quote]

[quote]
yum install php-mysql.i386
Setting up Install Process
Setting up repositories
Reading repository metadata in from local files
Parsing package install arguments
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Package php-mysql.i386 0:4.3.9-3.22.9 set to be updated
--> Running transaction check
--> Processing Dependency: php = 4.3.9-3.22.9 for package: php-mysql
--> Finished Dependency Resolution
Error: Missing Dependency: php = 4.3.9-3.22.9 is needed by package php-mysql

[/quote]

Thanks.

maxime
Posts: 25
Joined: 2005/11/10 08:04:38

Re: Add GD & MySQL support on php5

Post by maxime » 2008/03/12 09:57:56

No idea how i can solve this problem ?

Thanks.

michaelnel
Posts: 1478
Joined: 2006/05/29 16:50:11
Location: San Francisco, CA

Re: Add GD & MySQL support on php5

Post by michaelnel » 2008/03/12 16:25:12

The php5 stuff is in the centosplus repository, so you would need to use the "--enablerepo centosplus" switch for yum.

maxime
Posts: 25
Joined: 2005/11/10 08:04:38

Re: Add GD & MySQL support on php5

Post by maxime » 2008/03/14 08:49:59

That's great, thanks. Now GD and MySQL are installed :

[quote]
yum list installed *php*
Installed Packages
php.i386 5.1.6-3.el4s1.8 installed
php-cli.i386 5.1.6-3.el4s1.8 installed
php-common.i386 5.1.6-3.el4s1.8 installed
php-gd.i386 5.1.6-3.el4s1.8 installed
php-mysql.i386 5.1.6-3.el4s1.8 installed
php-pdo.i386 5.1.6-3.el4s1.8 installed
php-pear.noarch 1:1.4.11-1.el4s1.1 installed
[/quote]

Post Reply

Return to “CentOS 4 - Server Support”