Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Tips/Tricks/Mods

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 25th February 2011, 17:36
dinsdale dinsdale is offline
Junior Member
 
Join Date: Jun 2008
Posts: 18
Thanks: 2
Thanked 4 Times in 3 Posts
 
Default HOWTO: create a cronjob in ispconfig3 to start the TYPO3 scheduler service

This took me quite some head scratching until I had it running so I put together a quick checklist for future use:

Settings under tab 'Clients'

$clientname - Limits check the following options:
Allowed cron job types -> 0
Max. type of cron jobs (chrooted and full implies url) -> Full Cron

Settings under tab 'Sites'

Cron/Cron Jobs -> Add new Cron job
Command to run ->
/bin/pwd && cd /var/www/$domain/web/typo3 && php cli_dispatch.phpsh scheduler

Note: I have my TYPO3 source directory symlinked to the client folders. The cd is nescessary so the cli script can find the configuration files in typo3conf. the /bin/pwd is nescessary since ispconfig expects an absolute path as first argument. 'cd' is a buildin command and cannot be preceeded with a path, therefor we execute another dumb command just before.
The cronjob will be executed with the rights of the user/group of the client web. Make sure that the path to the script and included files are readable.

Notes about troubleshooting:

cronjobs are stored in a file by ispconfig in /etc/cron.d/
check /var/log/syslog and /var/log/ispconfig/cron.log for the execution and errors of cronjobs
You can login temporarily as the webuser and execute commands like the cronjob with the users permission if you change the shell of the user but don't forget to change it back afterwards: 'chsh -s /bin/bash web#'
Reply With Quote
The Following 2 Users Say Thank You to dinsdale For This Useful Post:
falko (26th February 2011), mccharlet (8th February 2014)
Sponsored Links
Reply

Bookmarks

Tags
cron jobs, typo3

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ISPCONFIG3 + No Email Service!!! AntennaMike Installation/Configuration 4 13th February 2013 11:24
The Perfect Server - OpenSUSE 11.2 - ISPConfig3 doesn't create anything GoremanX HOWTO-Related Questions 2 9th April 2010 16:05
Apache2 will not start after installing ISPconfig3 proonsite Installation/Configuration 1 10th May 2009 19:17
Chroot SSH + ISPConfig Norman Installation/Configuration 27 26th March 2007 03:40
Verify email setup meekish Installation/Configuration 28 27th October 2006 15:36


All times are GMT +2. The time now is 11:30.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.