Kayako logo
E-mail Piping Issues E-mail piping issues and related configuration questions are posted here,

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  (#1) Old
hebs Offline
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"

b. to find the location of php on your machine to do this I entered the command "php -info" in the command prompt and looked for the location in the output which was: "/usr/local/bin/php" however due to the nature of 1and1 hosting sometimes the full path is actually "/kunden/usr/local/bin/php"

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
   
Reply With Quote
  (#2) Old
Jamie Edwards Offline
Operations Manager
 
Jamie Edwards's Avatar
 
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.


Jamie Edwards (jamie.edwards ]at[ kayako.com)
----------------------------------------------------------------
---
   
Reply With Quote
  (#3) Old
craigbrass Offline
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!


Craig Brass - Kayako Forum Squatter (Note: I am NOT a staff member)

Icon Headquarters - Its Elixir - Web2Messenger
   
Reply With Quote
  (#4) Old
brotherrolf Offline
New Member
 
Posts: 3
Join Date: Sep 2008
07-09-2008, 02:37 AM

In my opinion, listing with 1and1 is like strolling into the La Brea Tar Pits. Easy in, almost impossible to get out.
   
Reply With Quote
  (#5) Old
markymark Offline
New Member
 
Posts: 5
Join Date: Oct 2008
07-10-2008, 08:53 PM

thank you thank you thank you......
   
Reply With Quote
  (#6) Old
John Haugeland Offline
Developer
 
John Haugeland's Avatar
 
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.


John Haugeland (john.haugeland ]at[ kayako.com)
----------------------------------------------------------------
---
   
Reply With Quote
  (#7) Old
craigbrass Offline
Senior Member
 
Posts: 5,753
Join Date: Jun 2005
Location: Cumbria, UK
08-10-2008, 11:43 AM

Quote:
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.
Out of interest, why can't you comment on hosting providers? I see no reason why being a staff member stops you from doing this.


Craig Brass - Kayako Forum Squatter (Note: I am NOT a staff member)

Icon Headquarters - Its Elixir - Web2Messenger
   
Reply With Quote
  (#8) Old
Jamie Edwards Offline
Operations Manager
 
Jamie Edwards's Avatar
 
Posts: 5,445
Join Date: Jan 2006
Location: United Kingdom
08-10-2008, 11:44 AM

Quote:
Originally Posted by craigbrass View Post
Out of interest, why can't you comment on hosting providers? I see no reason why being a staff member stops you from doing this.
We don't want to on our own forum, it can be easily seen as bad taste.

(not debatable)


Jamie Edwards (jamie.edwards ]at[ kayako.com)
----------------------------------------------------------------
---
   
Reply With Quote
Reply

Tags
1and1 cron 1&1 crontab

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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
Trackbacks are On
Pingbacks are On
Refbacks are On

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



Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vBulletin Skin developed by: vBStyles.com


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47