cancel
Showing results for 
Search instead for 
Did you mean: 

Cron jobs on Cpanel not working

Cron jobs on Cpanel not working

I've read everything the internet has to say on the subject and tried every permutation recommended.

/usr/bin/php -f /home/ericpratt/public_html/website/bin/magento cron:run | grep -v "Ran jobs by schedule" >> /home/ericpratt/public_html/website/var/log/magento.cron.log

Logs report that magento must be run as CLI. -cli does nothing (no log report) php7.1-cli does nothing (I'm running 7.1). All other suggestions I've found have been tried (modify bash to amend php version).

Magento tells me "One or more indexers are invalid. Make sure your Magento Cron job is running."

 

I don't know how to SSH, I just use cpanel.

Can anyone give me productive guidance?

2 REPLIES 2

Re: Cron jobs on Cpanel not working

Hello @ericvirtua3462 

Confirm the php path from hosting. Take help of hosting guys to setup the cron if you don't know php path. 

 

5 * * * * /usr/bin/php YOUR_MAGENTO2_PATH/bin/magento cron:run
5 * * * * /usr/bin/php YOUR_MAGENTO2_PATH/update/cron.php 
5 * * * * /usr/bin/php YOUR_MAGENTO2_PATH/bin/magento setup:cron:run

 

Was my answer helpful? You can accept it as a solution.
175+ Professional Extensions for M1 & M2
Need a developer?Just visit Contact Us Now

Re: Cron jobs on Cpanel not working

They told me it's /usr/local/bin/php -q

I'm still in the same boat as far as magento.cron.log not writing anything though.

On the up side, setup.cron.log is now writing:
setup-cron: Please check var/log/update.log for execution summary.
Unfortunately update.log is saying: Magento 2 requires it to be set to 756M or more. As a user with root privileges, edit your php.ini file to increase memory_limit.

So, I'm guessing I won't be able to use Magento on my server?