I'm having trouble configuring cron jobs for a client's website. The person working on it previously setup these cron jobs (MAGENTO v2.1.8 CE) :

/usr/local/php70/bin/php-cli /home/XYZ/public_html/update/cron.php >> /home/XYZ/public_html/var/log/update.cron.log`

/usr/local/php70/bin/php-cli /home/XYZ/public_html/bin/magento setup:cron:run >> /home/XYZ/public_html/var/log/setup.cron.log`

/usr/local/php70/bin/php-cli /home/XYZ/public_html/bin/magento cron:run | grep -v "Ran jobs by schedule" /home/XYZ/public_html/var/log/magento.cron.log

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

The server error log returns the message below and the cron job doesn't work. I tried altering the cron jobs to match the Magento developer guide but those did not work either. I'd appreciate it if someone could point me in the right direction.

[Tue Feb 12 00:07:08.212266 2019] [access_compat:error] [pid 22260] [client] AH01797: client denied by server configuration: /home/XYZ/public_html/app/etc/config.php

  • 1
    This seems to be server permission issue. Try to contact with hosting provider they will be able to help you out – Dexter Feb 12 at 6:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.