spetz Posted June 11, 2008 Share Posted June 11, 2008 (edited) 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: 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. Edited June 12, 2008 by spetz Link to comment Share on other sites More sharing options...
zeroday Posted June 11, 2008 Share Posted June 11, 2008 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. Link to comment Share on other sites More sharing options...
kjordan2001 Posted June 11, 2008 Share Posted June 11, 2008 Looks like there's a "php5-mysql" package: http://packages.debian.org/etch/php5-mysql Link to comment Share on other sites More sharing options...
Recommended Posts