| ||||||||||||
![]() |
![]() |
| | LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
(#1)
|
| New Member Posts: 1 Join Date: Aug 2008 | 1and1 Cron setup 1&1 -
29-08-2008, 03:47 PM
Took me ages to figure out this because 1and1's FAQ and phone help are **** at best! I have published this thread to help others and hopefully save you time. I have the 1&1 linux business hosting package so can only confirm this example works with that. 1. Log on to your 1and1 server using SSH, the program I use for this is PuTTY. You enter the username and password for SSH access to your site (found in your 1and1 control panel-administration-web space & access-Secure Shell Access) in the PuTTY command prompt and then logon your site. The next two steps you have to go through are: a. to find the location of your current directory: enter "pwd" to find this... mine was: "/kunden/homepages/XX/dXXXXXXXX/htdocs"2. Next create your crontab file. You can find out more about the *'s from the crontab page on wikipedia. So I entered the command "crontab -e" (which means edit crontab) and entered the line: "* * * * * /usr/local/bin/php /kunden/homepages/XX/dXXXXXXXX/htdocs/support/cron/index.php > /dev/null" all on one line. This command means at every minute, every hour on every day using the program found at /usr/local/bin/php (sometimes /kunden/usr/local/bin/php) executes the file found at /kunden/homepages/XX/dXXXXXXXX/htdocs/support/cron/index.php and send the output to the location /dev/null (which means get rid of the output). Using this command I found that on 1and1 hosting my pop/imap emails were fetched between every 1 and 2 minutes. I hope this helps. Hebs www.sub-laser.com |
| | |
(#2)
|
| Operations Manager Posts: 5,445 Join Date: Jan 2006 Location: United Kingdom |
29-08-2008, 03:50 PM
Hi hebs, This is very useful; thank you for taking the time to post a guide. -------------------------------------------------------------------
|
| | |
(#3)
|
| Senior Member Posts: 5,753 Join Date: Jun 2005 Location: Cumbria, UK |
29-08-2008, 04:22 PM
Yes, thanks for sharing although I wouldn't encourage anyone to use 1and1 for anything as they manage to suck and doing things in a sane way! Icon Headquarters - Its Elixir - Web2Messenger |
| | |
(#4)
|
(#5)
|
(#6)
|
| Developer Posts: 670 Join Date: Dec 2007 Location: Idaho |
07-10-2008, 09:42 PM
Unfortunately as staff I am unable to comment on hosting providers, regardless of whatever personal history I may have with them, nor how entertaining those stories might be. What I can say is that you should probably change your cron to read only every ten minutes or so. On many ISPs, it is against policy to run crons that fast, because of the constant load it puts on the server. -------------------------------------------------------------------
|
| | |
(#7)
|
| Senior Member Posts: 5,753 Join Date: Jun 2005 Location: Cumbria, UK |
08-10-2008, 11:43 AM
Quote:
Icon Headquarters - Its Elixir - Web2Messenger | |
| | |
(#8)
|
| Operations Manager Posts: 5,445 Join Date: Jan 2006 Location: United Kingdom |
08-10-2008, 11:44 AM
Quote:
(not debatable) -------------------------------------------------------------------
| |
| | |
![]() |
| Tags |
| 1and1 cron 1&1 crontab |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| No Cron Job -> Cron Jobs Not working | Fredrik | SupportSuite, eSupport and LiveResponse | 1 | 17-08-2008 09:20 AM |
| Escalations - Cpanel Cron Setup | Siora | SupportSuite, eSupport and LiveResponse | 16 | 06-02-2008 08:01 PM |
| cron job? setup in cpanel | chrisbuk112 | SupportSuite, eSupport and LiveResponse | 0 | 08-06-2006 10:00 PM |
| cron for auto close? | sgwebb | SupportSuite, eSupport and LiveResponse | 2 | 10-04-2006 05:18 AM |
| Cron Jobs, Piping, NO Luck - Any Assitance Appreciated | breamteam | E-mail Piping Issues | 0 | 22-11-2005 05:08 PM |