Installation of php-gd and php-mysql

Support/Development for PHP
gavacho
Forum User
Forum User
Posts: 10
Joined: Sun Sep 23, 2007 6:15 am

Installation of php-gd and php-mysql

Unread post 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?
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Unread post 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
gavacho
Forum User
Forum User
Posts: 10
Joined: Sun Sep 23, 2007 6:15 am

Unread post by gavacho »

I added these two lines to the new php.ini

extension=mysql.so
extension=gd.so

This fixed the problem.
Thanks Scott
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Unread post by scott »

5.2.5 is going up into atomic-testing right now if you want to try that out.
breun
Long Time Forum Regular
Long Time Forum Regular
Posts: 2813
Joined: Sat Aug 20, 2005 9:30 am
Location: The Netherlands

Unread post 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.
Lemonbit Internet Dedicated Server Management
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Unread post by scott »

I was gonna say that, but you know... Like people ever listen to me :P
Post Reply