View Single Post
  #2  
Old 23rd January 2013, 15:27
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,011
Thanks: 826
Thanked 5,378 Times in 4,225 Posts
Default

First, a cronjob (does not matter if you use ispconfig) has always to contain full paths, so it always have to start with "/usr/bin/php", so you have to enter in ISPConfig:

/usr/bin/php /var/www/clients/client3/web24/web/cron.php

To use the php binary (which is outside of the web root), you have to ensure that you create it as full cron and not jailed cron.

But my recommendation is something else, as the cron.php file is in the web directory, the easiest and secure way to set this up is a url cron. For a url cron, you just put the url to this script in the cron command line in ispconfig. e.g.:

http://www.yourdomomain.tld/cron.php

and ispconfig will create a cronjon that calls this url.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote