Error for cron jobs


I am trying to setup a cron job for dolibarr and get some odd error. I have few dev installs with working crone.

For a production, I have set a cron in CPanel to execute cron_run_jobs.php every 5 minutes. Filepath is correct, but no jobs get executet. This is what I have in cron_run_jobs.php.log:

Warning: mysqli::__construct(): (HY000/2002): No such file or directory in /path_to_folder/htdocs/core/db/mysqli.class.php on line 201
> ErrorInternalErrorDetected:
> DatabaseTypeManager:
> RequestLastAccessInError:
> ReturnCodeLastAccessInError:
> InformationLastAccessInError:
> Message:
host=localhost, port=3306, user=/username/, databasename=/dbname/, No such file or directory

1 Like


Try to change localhost by in conf.php

One more thing … tha main directory is renamed from ‘htdocs’ to another value. Can this also be an issue?
As the dolibarr itself is working OK.

Changed ‘localhost’ to ‘’ in conf.php and jobs got executed.

It could but the error that your reported is from MYSQL connection.

Perfect !