Help - Search - Members - Calendar
Full Version: MYSQL not working with PHP
Neowin Forums > *nix Customization & Support > Linux Server/BSD/Unix
spetz
I cant seem to get mysql php working for me. I am running Debian Etch + Lighttpd + PHP5. Followed a couple guides to add mysql but couldnt get anything to work. Used apt-get to install php5-mysql modified my lighttpd config added:
CODE
fastcgi.server            += ( ".php" =>
                               ( "Localhost" =>
                                 (
                                   "socket" => "/var/run/lighttpd/php-fastcgi.socket",
                                   "bin-path" => "/usr/bin/php-cgi"
                                 )
                               )
                            )


With out the += it would give me errors. Also modified /etc/php5/cgi/php.ini adding cgi.fix_pathinfo = 1

When i do <?php phpinfo();?> there is no reference to mysql.

Phpmyadmin also gives me the following error: Cannot load mysql extension.

Any ideas suggestions I really need to get this to work.
zer0day
Edit: Missed the apt get part. If it's not too much trouble, just build php from the sources with the --with-mysql=/path/to/mysql command.
kjordan2001
Looks like there's a "php5-mysql" package: http://packages.debian.org/etch/php5-mysql
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-2008 Invision Power Services, Inc.