Fatal error: Uncaught exception 'Exception' with message 'Could not connect

Read 1019 times
This error is driving me nuts! i can't figure it out for the life of me (5 hours and counting) I'm trying to set up my server on Ubuntu, but i can't get passed the register screen i get this error... any help would be much appreciated thanks!

Fatal error: Uncaught exception 'Exception' with message 'Could not connect to database: Permission denied' in /usr/local/centovacast/system/class_CCSQL.php:40 Stack trace: #0 /usr/local/centovacast/system/class_CCSQL.php(53): CCSQL->__construct('xxxxxx', 'localhost', 'xxxx', '', false) #1 /usr/local/centovacast/web/install.php(108): CCSQL::singleton('xxxxxx', 'localhost', 'xxxx, '') #2 /usr/local/centovacast/web/install.php(436): install_database(Array) #3 {main} thrown in /usr/local/centovacast/system/class_CCSQL.php on line 40