Linux.com

Author Message
Joined: Apr 17, 2008
Posts: 1
Other Topics
Posted Apr 17, 2008 at 10:29:32 PM
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
Back to top Profile Email Website
Shashank Sharma
Joined Jan 01, 1970
Posts: 1657
Location:New Delhi, India

Other Topics
Posted: Apr 22, 2008 2:18:01 PM
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.

Coauthor of Beginning Fedora: From Novice to Professional published by Apress.

Please follow the Forum Guidelines

Back to top Profile Email Website Yahoo!
AR

Joined May 06, 2008
Posts: 22

Other Topics
Posted: May 06, 2008 4:11:32 PM
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.
Back to top Profile Email Website
Peter
Joined May 16, 2008
Posts: 43
Location:Mexico

Other Topics
Posted: May 16, 2008 2:02:37 PM
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
Back to top Profile Email Website
intelliware
Joined May 06, 2009
Posts: 3

Other Topics
Posted: May 06, 2009 12:30:00 PM
Subject: 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]
Back to top Profile Email Website
Tableless layout Validate XHTML 1.0 Strict Validate CSS Powered by Xaraya