Skip to main content
Welcome guest. | Register | Login | Post

MySQL, PHP, Apache On FC5

3 replies [Last post]
AndrewB's picture
Offline
Joined: 2005-12-18

Hey all, Its me again.

I am not very goot at sql or php just yet, and i have gained an error from it.
I hope somebody can help

Basically I have narrowed it down to php can not connect to mysql as it is configured with the flag --without mysql

as seen on this php info file

I have tryed to remove sql php and httpd, with yum and install them but nothing changes...
Any help?

libervisco's picture
Offline
Joined: 2006-05-04

I'm definitely not a pro with this stuff, but one thing seems obvious to me. If php was compiled without mysql support which the "--without mysql" implies then you just can't use php with mysql. You have to recompile or install a precompiled binary that has this option enabled. If such binary is not in default FC repos a RPM or alternate repo might be available elsewhere.. I'm not sure. I never used Fedora.

It is rather strange to have php compiled without mysql support considering how common it is to use it with mysql..

AndrewB's picture
Offline
Joined: 2005-12-18

I have just got it working, I remembered back.
You need to
yum install php-mysql

Itts stupid and should come with either as a dep but hey, least it works now!

Thanks Libervisco for the help!

libervisco's picture
Offline
Joined: 2006-05-04
"AndrewB" wrote:

Itts stupid and should come with either as a dep but hey, least it works now!

Indeed. I don't see a reason why there must be an sql disabled version of php package. Maybe someone can enlighten me on that.

"AndrewB" wrote:

Thanks Libervisco for the help!

Seems like you helped yourself so.. Smiling

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.