MYSQL not working with PHP


Recommended Posts

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 by spetz
Link to comment
Share on other sites

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

    • No registered users viewing this page.