DB Optimization Cron Job Permission Problems After Upgrade

Your phpBB Version: 2.0.22
phpBB Type: phpBB / IMPortal
MODs: No
Your knowledge: Basic Knowledge
Board URL: http://homeworld.homelinux.com/portal/
PHP Version:
MySQL Version:
What was done before the problem appeared?
I upgraded from the 141 release to 141d.
What was done to try to solve the problem?
Checked file ownership.
De.scription and Message
I had an operational site running IM141 and then applied the 141d update to get all of the CTracker fixes at once. After copying all of the files over my old site, I now get the following error whenever the DB Optimization cron job runs. It appears that the cron job is now trying to run with the permissions of the web server instead of the permissions of the portal database.
How do I get the cron job to run under the proper database user account?
phpBB Type: phpBB / IMPortal
MODs: No
Your knowledge: Basic Knowledge
Board URL: http://homeworld.homelinux.com/portal/
PHP Version:
MySQL Version:
What was done before the problem appeared?
I upgraded from the 141 release to 141d.
What was done to try to solve the problem?
Checked file ownership.
De.scription and Message
I had an operational site running IM141 and then applied the 141d update to get all of the CTracker fixes at once. After copying all of the files over my old site, I now get the following error whenever the DB Optimization cron job runs. It appears that the cron job is now trying to run with the permissions of the web server instead of the permissions of the portal database.
- Code: Select all
Warning]: Access denied for user 'www-data'@'localhost' (using password: NO) in /var/www/portal/includes/optimize_database_cron.php on line 65 Warning: mysql_list_tables() [function.mysql-list-tables]: A link to the server could not be established in /var/www/portal/includes/optimize_database_cron.php on line 65 Warning: mysqli_fetch_array() expects parameter 1 to be mysqli_result, boolean given in /var/www/portal/db/mysqli.php on line 354 Warning: Cannot modify header information - headers already sent by (output started at /var/www/portal/includes/optimize_database_cron.php:65) in /var/www/portal/includes/sessions.php on line 421 Warning: Cannot modify header information - headers already sent by (output started at /var/www/portal/includes/optimize_database_cron.php:65) in /var/www/portal/includes/sessions.php on line 422 Warning: Cannot modify header information - headers already sent by (output started at /var/www/portal/includes/optimize_database_cron.php:65) in /var/www/portal/includes/page_header.php on line 1156 Warning: Cannot modify header information - headers already sent by (output started at /var/www/portal/includes/optimize_database_cron.php:65) in /var/www/portal/includes/page_header.php on line 1158 Warning: Cannot modify header information - headers already sent by (output started at /var/www/portal/includes/optimize_database_cron.php:65) in /var/www/portal/includes/page_header.php on line 1159
How do I get the cron job to run under the proper database user account?