I have SuiteCRM 7.11.20 installed in MacBoom with MAMP. I have got the crontab configured according to the edit suggestion at the bottom of the schedulers screen.
When I look a the log of Check Inbound Mailboxes scheduled job (which is running every minute, I see no log). I have configured a group mailbox to create a case. The mail setup seem is correct based on the test connection.
I am not sure what to look in the logs as I am new to SuiteCRM in general. Any help is appreciated.
if I’m correct, you should find log entries like “user xyz is not allowed to execute cron.php”. In this case, you need to update your config.php with the proper user.
When I ran ‘php -f cron.php;’ in the terminal, I get the error about not being able to connect to database in the terminal.
Could not connect to the database. Please refer to suitecrm.log for details (0).
Fatal error: Uncaught Exception: Could not connect to the database. Please refer to suitecrm.log for details (0). in /Applications/MAMP/htdocs/crm/include/utils.php:1906
Stack trace:
#0 /Applications/MAMP/htdocs/crm/include/database/MysqliManager.php(327): sugar_die(‘Could not conne…’)
the user associated with your webserver, usually its something like “apache” or “www-data”. If the rest of the crm is working fine, you should already know which user to enter (when you ran the chown command).
Otherwise, have a look at the schedulers ListView. At the bottom of the screen you should find install instructions prepared for your environment, and the proper user is mentioned there too. After completing this step (adding the cron), just add the user (if missing) to the allowed_cron_users-array.
Besides that:
In general, it is technically okay to use the root-user directly, but from a security perspective you might want to create a designated DB-user for Suite.
Thanks. But I could not get this working at all. I will try some other measures. However, I am not seeing this behavior in Windows system. so I am moving to windows for now.