Unable to run PHP script as a cron job via Scheduled Tasks

Created:

2016-11-16 12:55:56 UTC

Modified:

2017-08-17 09:28:33 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Unable to run PHP script as a cron job via Scheduled Tasks

 Applicable to:

  • Plesk 12.5 for Linux

Symptoms

Cron job /var/www/vhosts/example.com/httpdocs/cron.php does not work on Plesk 12.5 for example.comdomain.

Cause

Cron job is improperly configured for the domain.

Resolution

Check the cron job for example.com at Subscriptions > example.com > Scheduled Tasks and make sure that Command has a syntax as below:

CONFIG_TEXT: php /var/www/vhosts/example.com/httpdocs/cron.php

Check official documentation for more details.

Have more questions? Submit a request
Please sign in to leave a comment.