Skip to content

Error during installation - variable $dbPort has no effect

edited June 2013 in Troubleshooting

Hello,

I have a config.php file with the following content (related to db):

$dbHost = 'myhost';
$dbUser = 'user';
$dbPass = 'password';
$dbName = 'sendy';
$dbPort = 9010;

When I access Sendy's URL (first time), I get the message:
"Can't connect to database There is a problem connecting to the database. Please try again later."

In Apache error log, I see the message:
PHP Warning: mysqli::mysqli(): [2002] Connection timed out (trying to connect via tcp://myhost:3306) in /opt/httpd/sendy/htdocs/includes/functions.php on line 6

It seems that the port I set in config.php is not being used during the installation.

How can I fix it?

Regards,

Thiago Faria

Comments

This discussion has been closed.