RHEL5/PHP/MySQL problem
Author Message
Posted : Thu, 17 April 2008 22:29:32
Subject : RHEL5/PHP/MySQL problem
Hi I've just upgraded a server to RHEL5 which I'm trying to configure as a LAMP. My problem is that php is not working with mysql (phpinfo is reporting '--without-mysql' ). does anyone know how I can get these two talking? I'm quite new to the dev side but have had it working fine on FC5 and RH7 Any suggestions would be greatly appreciated
Shashank Sharma
Posted : Tue, 22 April 2008 14:18:01
Subject : RHEL5/PHP/MySQL problem
How did you install php and mysql? And what version of each are you running? Did you install mysql-server? Install mysql-server and start mysqld.
AR
Posted : Tue, 06 May 2008 16:11:32
Subject : RHEL5/PHP/MySQL problem
The package you need to install is most likely called "php-mysql" You will also need "MySQL-client" In any case, "yum search php mysql" should get you the relevant packages.
Peter
Posted : Fri, 16 May 2008 14:02:37
Subject : RHEL5/PHP/MySQL problem
[quote]search php mysql" should get you the relevant packages.[/quote] ...or, for faster results, he could take the easy and lazy way: "yum install mysql*" ~ R
intelliware
Posted : Wed, 06 May 2009 12:30:00
Subject : Re: Re: RHEL5/PHP/MySQL problem
You need to uninstall your existing php and to install the newest php packages including the one called php-mysql. you can find them at the on centos 5 mirrors in updates section. This mentioned file php-mysql, makes the bridgelike between the mysql server and php. If you need assistance, just ask. If you have installed the repos for rhel5 (there are quite a few), you can do a yum update php. [Modified by: intelliware on May 06, 2009 12:30 PM]