icon Get the most out of Surmunity, read our tips here! Need an interesting blog to read? You've got to read the Surpass Blog! | Welcome! Please register to access all of our features.

» Surpass Web Hosting Forums » Discussions » Shared Hosting » phplist cron job setup help needed

Shared Hosting Questions about your shared hosting account.

Reply
 
LinkBack Thread Tools Search this Thread
Old March 15th, 2008, 6:31 PM   #1 (permalink)
Registered User
Fresh Surpasser
 
Joined in Mar 2008
7 posts
Gave thanks: 0
Thanked 0 times
phplist cron job setup help needed

I've moved server and the cron job I had set up for phplist no longer seems to work, could someone copy and paste the command they use with phplist because I can't get anything to work.

thanks
farrukh is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old March 16th, 2008, 8:11 PM   #2 (permalink)
Registered User
Fresh Surpasser
 
Joined in Mar 2008
7 posts
Gave thanks: 0
Thanked 0 times
anyone?
farrukh is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old March 16th, 2008, 8:28 PM   #3 (permalink)
Surpass Fan
Excelling Contributor
 
cowboy's Avatar
 
Joined in Nov 2005
Lives in Colorado
Hosted on DEDI
936 posts
Gave thanks: 2
Thanked 95 times
Give a bit more information. What did you have before in your cron statement. What do you have now. Do you have the same directory structure as you had before for phplist? etc.
__________________
Where would you be if you were at the highest court in the land (US)?
cowboy is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old March 16th, 2008, 8:43 PM   #4 (permalink)
Registered User
Fresh Surpasser
 
Joined in Mar 2008
7 posts
Gave thanks: 0
Thanked 0 times
This is what my cron command is:

php -q /home/leedsis/public_html/mailinglist/admin/index.php -p processqueue -c /home/leedsis/public_html/mailinglist/config/config.php

all the files are exactly the same.

The output seems to show that the login information isn't being passed to the script, i've tried various other statements to no avail:

curl 'http://www.domain.com/mailinglist/admin/index.php?page=processqueue&login=*******&password =*********

php /home/leedsis/public_html/mailinglist/admin/index.php page=processqueue login=***** password=********
farrukh is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old March 16th, 2008, 8:44 PM   #5 (permalink)
Registered User
Fresh Surpasser
 
Joined in Mar 2008
7 posts
Gave thanks: 0
Thanked 0 times
oh, the other error i get is that when I process the queue manually, it says the following about 5 times:

Database error 2006 while doing query MySQL server has gone away

A search on the phplist site brought up the following thread but I can't make much sense of it

0008905: Database error 2006 while doing query MySQL server has gone - Mantis

Last edited by farrukh; March 16th, 2008 at 8:50 PM..
farrukh is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old March 16th, 2008, 9:19 PM   #6 (permalink)
Surpass Fan
Excelling Contributor
 
cowboy's Avatar
 
Joined in Nov 2005
Lives in Colorado
Hosted on DEDI
936 posts
Gave thanks: 2
Thanked 95 times
Off hand it appears you are not connecting to your database. In your config file do you have the correct database name and user name as you set up in cPanel. Have you for sure added the username to the database.

Depending on how the index.php file looks at the arguments you are passing it looks like one of the curl / php commands you are testing are wrong. The curl is passing one argument and the php is passing 2.

I don't have a copy of the index file to take a look.
__________________
Where would you be if you were at the highest court in the land (US)?
cowboy is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old March 21st, 2008, 1:08 PM   #7 (permalink)
Registered User
Fresh Surpasser
 
Joined in Mar 2008
7 posts
Gave thanks: 0
Thanked 0 times
The curl command seems to be working ok now, the only problem I have is sending the messages. I used to have a delay of 1 minute between each email (to avoid overloading the server and getting my mails marked as spam) but it no longer seems to stay active so it sends one email per batch and then stops until the next cron command is activated.
farrukh is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old March 29th, 2008, 7:44 AM   #8 (permalink)
Registered User
Fresh Surpasser
 
Joined in Mar 2008
7 posts
Gave thanks: 0
Thanked 0 times
Anyone know how to stop the cron job emailing me each time it runs, i've put the following at the end of the curl command but it still emails me:

> /dev/null
farrukh is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old April 1st, 2008, 6:04 PM   #9 (permalink)
Marketing Maven
Surpass Staff
 
Kayla's Avatar
 
Joined in May 2003
Lives in Orlando
24,749 posts
Gave thanks: 946
Thanked 806 times
You may want to ask support about it now, https://desk.surpasshosting.com

Thank you!
__________________
Follow Surpass on Twitter and Facebook
Check out the Surpass Blog



Kayla is online now  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may 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