HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   General (http://www.howtoforge.com/forums/forumdisplay.php?f=25)
-   -   Ispconfig3 cronjobs not working (http://www.howtoforge.com/forums/showthread.php?t=61922)

foxpro 22nd May 2013 06:34

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 :

https://dl.dropboxusercontent.com/u/39708058/isp.PNG

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)

till 22nd May 2013 08:53

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.

foxpro 22nd May 2013 09:10

Full/Chrooted/url options in limit
 
Quote:

Originally Posted by till (Post 297555)
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 ?

till 22nd May 2013 09:22

Quote:

Originally Posted by foxpro (Post 297558)
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.

foxpro 22nd May 2013 09:25

Sorry for again asking
 
Quote:

Originally Posted by till (Post 297559)
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 ?

till 22nd May 2013 09:27

Yes, just add the link in the command field. Thats decsribed in the manual in detail btw.

foxpro 22nd May 2013 09:31

Please .
 
Quote:

Originally Posted by till (Post 297561)
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 .

till 22nd May 2013 10:17

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.

foxpro 20th August 2013 18:12

Quote:

Originally Posted by till (Post 297563)
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 !!!


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

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