#11  
Old 19th July 2013, 10:15
keshwarsingh keshwarsingh is offline
Member
 
Join Date: Apr 2013
Posts: 31
Thanks: 2
Thanked 1 Time in 1 Post
Default

Quote:
Originally Posted by till View Post
Did you change the php path like I explained above?

Yes i did!

ISPConfig is automatically adding the users' home path before the command to be executed.

For e.g if you want to run /usr/bin/php -f blah blah blah in classic mode each 5 mins (installing through crontab -e), it works just fine.

If you login wether as admin or the client & install the same cron job, it automatically adds the users home directory before the command /usr/bin/php -f..
Sponsored Links
  #12  
Old 19th July 2013, 10:16
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,034
Thanks: 826
Thanked 5,383 Times in 4,230 Posts
Default

Quote:
Originally Posted by keshwarsingh View Post
Ok i just tried the following as command..

/usr/bin/php -f .....

The cron job is created, but when i login via ssh & sniff the content of /etc/cron.d/ , the content is as follows...

*/5 * * * * web4 /var/www/clients/client1/web4/usr/bin/php -f .....

Why is it putting the home path before the command /usr/bin/php -f ? seems to be chrooted ..
Works fine here in ISPConfig 3.0.5.2, just verified it. I logged in as client (the client has set max allowed cronjob typs to fullcron) and added a cronjob with the following input in the command field:

Code:
/usr/bin/php -f /tmp/hallo.php
and the resulting cronjob is:


Code:
MAILTO=''
SHELL='/bin/sh'

10      10      *       *       *       web17   /usr/bin/php -f /tmp/hallo.php #rs1c11.de
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
  #13  
Old 19th July 2013, 10:27
keshwarsingh keshwarsingh is offline
Member
 
Join Date: Apr 2013
Posts: 31
Thanks: 2
Thanked 1 Time in 1 Post
 
Default

It now works.

For some unknown reasons, the cron was still in the "Show Jobqueue"
Closed Thread

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
Problem access ispconfig url wearth General 1 30th May 2013 13:50
No dns zone files created? sjau Installation/Configuration 7 13th March 2012 13:15
Loads of mysql connections to dbispconfig StrikerNL General 2 5th March 2009 14:31
ISPConfig installation into multiple OpenVZ containers letezo Installation/Configuration 11 3rd March 2009 22:47
Cron jobs from within ISPConfig - Dont want emails robit Installation/Configuration 5 21st July 2008 17:53


All times are GMT +2. The time now is 06:02.


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