I'm trying to install a web app on my Ubuntu 12.04 server. The app is based on PHP and MySQL and I've got LAMP already working OK on my server - infact I've already got other apps working on PHP & MySQL already installed and working OK.
The problem I'm facing is, that when I try to run this app I get the error
Error: A Database connection using "Mysql" was missing or unable to connect. The database server returned this error: SQLSTATE[HY000]  Can't connect to MySQL server on '18.104.22.168' (111)
I have double and triple checked the username and password that I've put into the database.php and have confirmed that it's the same login credentials as what I use for phpMyAdmin and I'm even referring to the correct database (which as can be seen in phpMyAdmin, has been setup correctly.
For the install, I have followed the instructions at http://sourceforge.net/p/coopos/wiki/Install/ The only place I have differed is, "Step III. Configure the Virtual Host" - reason being, I cannot move from "/var/www" to "/home/username/public_html" as I already have other apps running under "/var/www"
My installation of the app (with all the error messages) can be seen at
Would really appreciate some help on this, pls.