SuSE LAP Server, no mysql with php


Recommended Posts

I have a SuSE Linux server.

Apache2 and PHP4 is installed and are running fine.

The mysql demon is running, too.

Problem is the php mysql-extension, because it's not there :(

All php extension are in /usr/lib/php/extensions, but there is no mysql.so neither libmysql.so. No file with mysql at all.

phpinfo() gives me a Configure Command containing --without-mysql.

How do I get php to work with mysql???

k0zy

Link to comment
https://www.neowin.net/forum/topic/262776-suse-lap-server-no-mysql-with-php/
Share on other sites

Ok, I found out that I had to install the php-mysql.bla.rpm

I installed but now apache won't start :(

EDIT: If I comment the line "extension=mysql.so" in php.ini apache starts...

If I uncomment the line again, apche fails to start.

EDIT2: Solved it. Was a conflict with recode.so. Commented it out. I hope it does nothing important. :)

k0zy

Edited by k0zy

Maybe its just me, but I run a LAMP setup, and the only apache extensions which are running are ssl and php, and I can still interface with mysql just fine. My apache has no idea that mysql even exists, but I tend to manually code the database hooks in a scripting language. Is there any functionality that adding a mysql extension gives you that I'm missing out on?

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.