To get Magento 2 cron jobs working with InMotion Hosting and PHP 7, you’ll need to login to your cPanel and go to Cron jobs.

  1. Change your cron settings to once per minute (*****).
  2. Then copy and paste the first line below into the command field.
  3. Change the username to your username and the domain name to your domain name.
  4. Click on the blue “add new cron job” button.
  5. Repeat the above steps for line 2 and 3 below.
  • command 1: /opt/php70/bin/php -q /home/(username)/public_html/( cron:run | grep -v Ran jobs by schedule >> /home/(username)/public_html/(
  • command 2: /opt/php70/bin/php -q /home/(username)/public_html/( >> /home/(username)/public_html/(
  • command 3: /opt/php70/bin/php -q /home/(username)/public_html/( setup:cron:run >> /home/(username)/public_html/(

This was something I stumbled upon online as a support answer on InMotion Hosting. It was my last resort trying to get cron jobs to work. It was as simple as copy and paste and next thing I know it was working.

Make sure to log into putty and change directory to your Magento installation. Then run: bin/magento cron:run –group index
Change mode in index management to “Update by Schedule”.

Elyssa McGregor

Hi! I'm Elyssa McGregor. I love helping people succeed online and promoting businesses with our wide range of promotional products. I have a love for search engine optimization (SEO) and getting companies out there on the world wide web. How can I help you?

View all posts

Add comment

Your email address will not be published. Required fields are marked *