Saturday, July 18, 2009

Installing LAMP Server

When I tried running PHPinfo, I got a Fatal error: Call to undefined function mysql_connect() error. I found some instructions here which appeared to address this problem, but they seemed to generic to be a quick answer to my problem.

So following the instructions , I installed the LAMP stack all in one hit with the following command:
sudo tasksel install lamp-server
I was still getting the following error, but at least I was getting some progress.
Warning: mysql_connect() function.mysql-connect: Access denied for user 'root'@'localhost' (using password: NO) in /var/www/phpinfo.php on line 3
Sorry unable to connect to my sql
This was easily fixed by adding the new password to the test script.

No comments: