Community Documentation

Plesk 10 configuration for cron job

Last updated June 18, 2011. Created by FlemmingLeer on June 18, 2011.
Log in to edit this page.

Plesk 10 has an undocumented 'feature' which requires the domain's FTP user have a real shell (i.e. SSH access), or else many common commands won't work in cron. To enable this:
1) Log into Plesk
2) Click on 'Domains'
3) Click on the 'control panel' link for the domain for which you wish to enable SSH for the FTP user
4) Click on 'Websites & Domains'
5) Click on 'Web Hosting Settings'
6) Select '/bin/bash' in the drop-down next to 'SSH access'
7) Click 'OK' to save your changes

Example of curl:
/usr/bin/curl http://www.domain.com/cron.php

Change domain.com to your domain name.

Also cron.php should have the appropiate server rights.
sudo chown apache:apache cron.php gives the server access to run the cron script.

Remember also to have the includes directory with the same access rights.

Page status

No known problems

Log in to edit this page

About this page

Drupal version
Drupal 6.x
Audience
Site administrators
Drupal’s online documentation is © 2000-2012 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution-ShareAlike 2.0. PHP code is distributed under the GNU General Public License. Comments on documentation pages are used to improve content and then deleted.