Help - Search - Members - Calendar
Full Version: SuSE LAP Server, no mysql with php
Neowin Forums > *nix Customization & Support > Linux Server/BSD/Unix
k0zy
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 sad.gif

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
k0zy
Ok, I found out that I had to install the php-mysql.bla.rpm

I installed but now apache won't start sad.gif

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. smile.gif

k0zy
markjensen
I'm not sure how important that file is, but I found a reference to it (with a user note with a similar problem!) here:
http://php.linux.hr/manual/en/ref.recode.php
KenLin
Maybe I'm a wimp, but I always use xampp. it's all bundled and configured out of the box: http://xampp.sourceforge.net
rezza
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 is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.