I configured the following 2 cronjobs using the CyberPanel UI:
* * * * * cd /home/marinisilvio.com/rarespot/rs-core/src; php ether_handler.php >> /var/log/rscore.log * * * * * cd /home/marinisilvio.com/rarespot/rs-core/src/bitquery; php bq_collections.php >> /var/log/rscore.log
Going into /var/log/cron I can see that the trigger fires every minute as expected, like this:
Apr 21 07:30:01 rarespot CROND[36974]: (marin9572) CMD (cd /home/marinisilvio.com/rarespot/rs-core/src/bitquery; php bq_collections.php >> /var/log/rscore.log)
But nothing is printed in the log file (rscore.log) and the code does nothing (I want new rows in the database)
The weird thing is that if I run the same command using Putty, the code starts and works fine.
Any suggestions?
Direct configuration
everything is normal. It is still not possible to run cronjobs from CyberPanel, but manual configuration is required. If anyone knows how to fix CyberPanel, please post the answer :)