Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > General

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 13th September 2011, 10:39
asn asn is offline
Junior Member
 
Join Date: Jun 2011
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default Cron Job not working

Sir, my cron job is not working.

When I check in ISPConfig monitor tab
Under monitor tab - ISPConfig Cron - Log, I see following output

mkdir: cannot create directory `/var/www/clients/client1/web1/var': File exists
mkdir: cannot create directory `/var/www/clients/client1/web1/var/run': File exists
mkdir: cannot create directory `/var/www/clients/client1/web1/var/run/mysqld': File exists
ln: creating hard link `/var/www/clients/client1/web1/var/run/mysqld/mysqld.sock': File exists
invalid shell, /var/www/clients/client1/web1/bin/bash does not exist
usermod: no changes

Why this problem comes. Please help me.

Thanks & Regards
ASN
Reply With Quote
Sponsored Links
  #2  
Old 13th September 2011, 11:43
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 34,586
Thanks: 792
Thanked 4,983 Times in 3,903 Posts
Default

Please post the settings of your cronjob and the command that you execute.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 13th September 2011, 11:52
asn asn is offline
Junior Member
 
Join Date: Jun 2011
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default Cron Job Command

Thank you for replay

In site cron job settings

Minute - *
Hours - *
Days of month - *
Months - *
Days of week - *
Command to run - /usr/bin/php -f /var/www/clients/client1/web1/web/admin/cron/cron.php

Thanks & Regards
ASN
Reply With Quote
  #4  
Old 13th September 2011, 11:59
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 34,586
Thanks: 792
Thanked 4,983 Times in 3,903 Posts
Default

According to the above errors, you created a jailed cronjob. But the php binary is not in the jail, so the cronjob can not work.

As the cronjob is a php script, you should use a url cronjob instead. Enter as command the url to the php script, e.g.:

http://www.yourdomain.tld/admin/cron/cron.php
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #5  
Old 13th September 2011, 12:54
asn asn is offline
Junior Member
 
Join Date: Jun 2011
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default Cron Job working

Thank you very much for your reply.

My cron job working.

Thanks & Regards
ASN
Reply With Quote
Reply

Bookmarks

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
Cron job runs on both master and mirror server, why? snowfly Installation/Configuration 7 15th May 2013 21:37
Cron Job delgado2061 Installation/Configuration 0 1st January 2011 03:09
Problem getting cron job to run and in need of help :) MrCompTech General 7 27th July 2010 09:50
Cron job fails kushan Server Operation 2 9th April 2010 02:52
Cron job question autogun General 2 22nd December 2009 11:54


All times are GMT +2. The time now is 01:46.


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