I used to have this error before but I have somehow forgotten how I resolved it the last time. Hope someone can assist with this.
I have install Postfixadmin and everything seems to look fine. However, when I tried to add domain using the Postfixadmin admin page, I keep getting the following errors.
Warning: mysql_real_escape_string() [function.mysql-real-escape-string]: Access denied for user 'apache'@'localhost' (using password: NO) in /home/myGroup/domainname.co.uk/user/htdocs/postfixadmin/functions.inc.php on line 131
Warning: mysql_real_escape_string() [function.mysql-real-escape-string]: A link to the server could not be established in /home/myGroup/domainname.co.uk/user/htdocs/postfixadmin/functions.inc.php on line 131
I have already configured the file config.inc.php and everything seems to be in order. However, if you look at the error, you will notice that Postfixadmin is actually trying to connect to the MySQL server as "apache" instead of as "postfixadmin" which is what was configured in config.inc.php.
Any idea how to resolve this and why this is happening?