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 22nd May 2013, 06:34
foxpro foxpro is offline
Junior Member
 
Join Date: Apr 2013
Location: Dhaka,Bangladesh
Posts: 16
Thanks: 2
Thanked 1 Time in 1 Post
Send a message via Skype™ to foxpro
Exclamation Ispconfig3 cronjobs not working

I have installed ispconfig by This Tutorial . Everything (almost) working fine . Nameserver,mailserver,ftp,all . Also i can give jailed ssh access to clients . But crontab or cronjob is not working even with admin and also client. I can set cronjob from ispconfig option but actually they don't work !!! let i want to download a file obakfahad . com/file.zip in every 10 minutes . I did that :



for a particular parent website . But after 10-15 minutes from my terminal when i search that file.zip i can't find it . that means cron is not working . I even tried wget only rather than /usr/bin/wget and i i executed command "crontab -u web5 -l" mentioning web5 is the user of that particular parent website also tried client5 as it is the client who is the owner of that web5 or website . when i tried by client5 it shows no user found , so i tried "crontab -u web5 -l" and it shows no crontab for web5 . please help me . please .(crons works from crontab -e from ssh by terminal)
Reply With Quote
The Following User Says Thank You to foxpro For This Useful Post:
alexeyttsy3922 (29th May 2013)
Sponsored Links
  #2  
Old 22nd May 2013, 08:53
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,083
Thanks: 826
Thanked 5,397 Times in 4,241 Posts
Default

The cron file is in /etc/cron.d/ and not in the user crontab of the web5 user. client5 is the name of the group were the website belongs to, its not a username.

Regarding your cronjob, ispconfig supports url crons, so the command to run a url is just:

http://......

and not with the wget in front.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 22nd May 2013, 09:10
foxpro foxpro is offline
Junior Member
 
Join Date: Apr 2013
Location: Dhaka,Bangladesh
Posts: 16
Thanks: 2
Thanked 1 Time in 1 Post
Send a message via Skype™ to foxpro
Exclamation Full/Chrooted/url options in limit

Quote:
Originally Posted by till View Post
The cron file is in /etc/cron.d/ and not in the user crontab of the web5 user. client5 is the name of the group were the website belongs to, its not a username.

Regarding your cronjob, ispconfig supports url crons, so the command to run a url is just:

http://......

and not with the wget in front.
But if i set the clients limit of cron to FULL cron ?
Reply With Quote
  #4  
Old 22nd May 2013, 09:22
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,083
Thanks: 826
Thanked 5,397 Times in 4,241 Posts
Default

Quote:
Originally Posted by foxpro View Post
But if i set the clients limit of cron to FULL cron ?
Full cron means that all types of cronjobs are allowed incl. URL Cronjobs. PLeasetry what I suggested, it should work out of the box.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #5  
Old 22nd May 2013, 09:25
foxpro foxpro is offline
Junior Member
 
Join Date: Apr 2013
Location: Dhaka,Bangladesh
Posts: 16
Thanks: 2
Thanked 1 Time in 1 Post
Send a message via Skype™ to foxpro
Question Sorry for again asking

Quote:
Originally Posted by till View Post
Full cron means that all types of cronjobs are allowed incl. URL Cronjobs. PLeasetry what I suggested, it should work out of the box.
But let i want to download a file https://dl.dropboxusercontent.com/u/.../cdn/fahad.png to download every 5 minutes .... then i will just put the https://dl.dropboxusercontent.com/u/.../cdn/fahad.png link in the command field ?
Reply With Quote
  #6  
Old 22nd May 2013, 09:27
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,083
Thanks: 826
Thanked 5,397 Times in 4,241 Posts
Default

Yes, just add the link in the command field. Thats decsribed in the manual in detail btw.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #7  
Old 22nd May 2013, 09:31
foxpro foxpro is offline
Junior Member
 
Join Date: Apr 2013
Location: Dhaka,Bangladesh
Posts: 16
Thanks: 2
Thanked 1 Time in 1 Post
Send a message via Skype™ to foxpro
Question Please .

Quote:
Originally Posted by till View Post
Yes, just add the link in the command field. Thats decsribed in the manual in detail btw.
I have no manual ! And please sir can you please tell me what cron option i should unable for my clients ? I am running a small hosting business in my city based . I need to know about crons .Please describe about chrooted cron , url(i understand it) , Full cron ... Please .
Reply With Quote
  #8  
Old 22nd May 2013, 10:17
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,083
Thanks: 826
Thanked 5,397 Times in 4,241 Posts
Default

Full cron allows to run any command as cronjob on your server as web user, in this case web5. Its the least secure option.

Jailed cron runs the cronjob in the jail of the website, with this option you can only run commands that are installed inside the jail. Thats much betters ecurity wise.

URL cron allows only to run cronjobs by URL, it is the most secure option. ispconfig handles the url cron and creates the nescessary command in the cron files for it.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
The Following User Says Thank You to till For This Useful Post:
foxpro (20th August 2013)
  #9  
Old 20th August 2013, 18:12
foxpro foxpro is offline
Junior Member
 
Join Date: Apr 2013
Location: Dhaka,Bangladesh
Posts: 16
Thanks: 2
Thanked 1 Time in 1 Post
Send a message via Skype™ to foxpro
 
Default

Quote:
Originally Posted by till View Post
Full cron allows to run any command as cronjob on your server as web user, in this case web5. Its the least secure option.

Jailed cron runs the cronjob in the jail of the website, with this option you can only run commands that are installed inside the jail. Thats much betters ecurity wise.

URL cron allows only to run cronjobs by URL, it is the most secure option. ispconfig handles the url cron and creates the nescessary command in the cron files for it.
Thanks A Lot !!!
Reply With Quote
Reply

Bookmarks

Tags
cronjob, cronjobs, ispconfig3, ispconfig3 cronjobs

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
Getting Email Working ISPConfig3 Squirrelmail and Courier etc Ian Wilson Installation/Configuration 17 19th June 2013 22:58
DNS not working in ISPconfig3 cluster archange Installation/Configuration 43 6th October 2010 13:04
amavis rejects all inbound emails aclhkaclhk Installation/Configuration 5 28th February 2010 04:24
ISPConfig3 Debian5 Postfix Courier mail not working danstinebaugh Server Operation 1 5th May 2009 19:00
ISPConfig3: FastCGI not working after upgrading to 5.2.9 Polk General 11 27th March 2009 14:00


All times are GMT +2. The time now is 23:14.


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