Jack Barber / Website Design

How Can I Run a Cron Job in Plesk?

Cron Jobs (if you didn't know) automate the running of specified scripts on a server - making them a great way for automatically sending emails, or running maintenance scripts during the night etc.

Plesk makes it really easy to set up (and this is more for my future reference than anything else).  All you need to do is go into 'Tools and Utilities' > 'Scheduled Tasks' then select 'root' as the user.  Click 'Add New Task' then fill in the form.

The 'Command' should follow this pattern:

php -q /var/www/vhosts/MYURL.co.uk/httpdocs/SCRIPT.php