Page 1 of 1

Installation of php-gd and php-mysql

Posted: Mon Nov 19, 2007 9:35 pm
by gavacho
I finally got php 5.2.3 installed from the ART archive, unfortunately it did not install with GD or mysql. I then installed mysql and gd from the ART archive using

yum install php-gd
yum install php-mysql

The mysql installation seems to work perfectly in that I can create databases and access it with the phpmyadmin in Plesk 8.2 on Centos 4.2, but php scripts are unable to access either mysql or GD. How do I get the new php 5.2.3 installation to access GD and mysql? Is there some step that I am missing or did I do something wrong?

Posted: Tue Nov 20, 2007 9:54 am
by scott
take a look at the wiki page here:

http://www.atomicorp.com/wiki/index.php/PHP

my first guess would be that you didnt merge in the new php.ini

Posted: Tue Nov 20, 2007 7:16 pm
by gavacho
I added these two lines to the new php.ini

extension=mysql.so
extension=gd.so

This fixed the problem.
Thanks Scott

Posted: Wed Nov 21, 2007 9:42 am
by scott
5.2.5 is going up into atomic-testing right now if you want to try that out.

Posted: Wed Nov 21, 2007 7:23 pm
by breun
gavacho wrote:I added these two lines to the new php.ini

extension=mysql.so
extension=gd.so

This fixed the problem.
Thanks Scott
You shouldn't have to add those lines. They should be loaded by the .ini files the php-mysql and php-gd rpms come with.

Posted: Wed Nov 21, 2007 7:52 pm
by scott
I was gonna say that, but you know... Like people ever listen to me :P