Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm having some serious problems here and I need it fixed ASAP.
I have a dedicated server running Fedora Core 3 that had PHP 4 installed. I ran 'yum update' which upgraded php4 to php5. I realized that php5 does not support mysql: --without-mysql is in the configure command when I put phpinfo() in a file.
I have wordpress domains that all say: Your PHP installation appears to be missing the MySQL which is required for WordPress.
I'm trying to figure out how to get mysql working with php5 or downgrade to php4. I tried removing php5, but yum wants to remove about 50 packages and the packages are very important and I cannot remove them.
I'm stuck here and I can't find any way to resolve this. Any help would be greatly appreciated.
How are your repositories setup?
The standard yum repositories in FC3 should not have PHP5.
So you may wish to contact your support provider to fix this.
Anyways, assuming your yum repository is fairly typical, I think the missing peice is probably the 'php-mysql' package.
From what I can tell, the problem is that the PHP binary that was installed does not have mysql support. I've been trying various packages and compiling from source for the past several hours with no luck.
It runs for about a minute and here are the last couple lines of the output:
checking for MySQL support... yes, shared
checking for specified location of the MySQL UNIX socket... no
checking for MySQL UNIX socket location... no
checking for mysql_close in -lmysqlclient... no
checking for mysql_error in -lmysqlclient... no
configure: error: mysql configure failed. Please check config.log for more information.
error: Bad exit status from /var/tmp/rpm-tmp.12690 (%build)
RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.12690 (%build)
yum install mysql-devel
Setting up Install Process
Setting up Repos
psa-7.5 100% |=========================| 951 B 00:00
base 100% |=========================| 1.1 kB 00:00
atomic 100% |=========================| 951 B 00:00
updates-released 100% |=========================| 951 B 00:00
Reading repository metadata in from local files
psa-7.5 : ################################################## 116/116
base : ################################################## 2622/2622
atomic : ################################################## 284/284
updates-re: ################################################## 910/910
Parsing package install arguments
Nothing to do
It seems like it can't find the location of the mysql socket. Do I need MySQL5 or should it work with MySQL 4.1? I know MySQL is working fine independent of PHP.
It doesn't seem like it's going to be possible to fix this problem, so it looks like I'll have to have the dedicated server wiped and re-installed so I can re-configure everything from scratch. I guess I won't update with yum again.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.