Having to set up a server from scratch and install PHP & MySQL, running into an issue getting PHP to connect to MySQL. I can successfully connect to the database via command line, but when I try to do it through PHP I get this error:
#2002 - The server is not responding (or the local MySQL server's socket is not correctly configured)
The mysql server is running and can be connected to via command line. The .sock file is in the correct path and is chmod 777 so it can be connected to by any user.
Running PHP Version 5.2.14. MySQL Client API version 5.0.90, MySQL version 5.1.50
Using phpMyAdmin to connect, and have tried tcp and socket type connections. All give the same error.