Jump to content


Photo

Help with Cron job


  • Please log in to reply
3 replies to this topic

#1 aarman

aarman
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 19 May 2006 - 11:44 PM

Cron Job to process phpList e-mail “Q”

I am at my wits end. I finally figured out this problem

Status: 404
Content-type: text/html
X-Powered-By: PHP/4.3.2

No input file specified.

Only to start getting this error

Content-type: text/html
X-Powered-By: PHP/4.3.2

Fatal Error: Mysql is not supported in your PHP, recompile and try again.

I know Mysql and PHP work on my site because I can process the “Q” manually.

What am I missing?

I really need some help there is a huge patch missing out of my hair as I continue to pull it.

#2 dsk3801

dsk3801
  • New Members
  • Pip
  • Newbie
  • 9 posts
  • LocationDallas, TX USA

Posted 20 May 2006 - 04:35 PM

[!--quoteo(post=375391:date=May 19 2006, 06:44 PM:name=Pulling Out Hair)--][div class=\'quotetop\']QUOTE(Pulling Out Hair @ May 19 2006, 06:44 PM) View Post[/div][div class=\'quotemain\'][!--quotec--]
Cron Job to process phpList e-mail “Q”

I am at my wits end. I finally figured out this problem

Status: 404
Content-type: text/html
X-Powered-By: PHP/4.3.2

No input file specified.

Only to start getting this error

Content-type: text/html
X-Powered-By: PHP/4.3.2

Fatal Error: Mysql is not supported in your PHP, recompile and try again.

I know Mysql and PHP work on my site because I can process the “Q” manually.

What am I missing?

I really need some help there is a huge patch missing out of my hair as I continue to pull it.
[/quote]

how are you executing the cron script? I usually do a "where php" on the command line first to find out where the php binary is located, then run it, like this:

/usr/local/bin/php -f /home/username/public_html/cron_file.php

You can also do:

/usr/local/bin/php --help

To get a list of the command line options. On some servers I've had to specify which php.ini file to use when running on the command line, which there is an option for.

Instant Access - PHP5 / MySQL5 Web Hosting Starting At $2.99 / Month - [a href="http://www.reflex-hosting.com" target="_blank"]http://www.reflex-hosting.com[/a]

#3 litebearer

litebearer
  • Members
  • PipPipPip
  • Advanced Member
  • 2,357 posts
  • Locationwhite lake michigan

Posted 21 May 2006 - 09:01 PM

Another Lite-sledge-hammer approach (for who don't know, are afraid of, do not have access to and/or are to lazy to learn (I fit this category) cron).....

simply use the task-scheduler on your pc (aren't we all using pc's? :) ) to have your browser invoke the required php script on your server at the appropriate times.

Lite... (Master of Laziness)


all the brothers were valiant!

[br][br]The truely intelligent people are not those who create the dots; rather they are they ones with the ability to connect the dots into a coherent picture

#4 aarman

aarman
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 23 May 2006 - 03:18 AM

Dave K. thanks for the response. My command is

php /home/admin/public_html/lists/index.php -p processqueue -c /home/admin/public_html/lists/config/config.php login=xxx password=xxx

I did not mention that this is a hosted account. How do I get to the command line?



Thanks for the reply litebearer.

can I use the task scheduler on my PC to schedule a task on a hosted account? aghhhhhhhhh I am so confused.

Thanks for the reply litebearer.

can I use the task scheduler on my PC to schedule a task on a hosted account? aghhhhhhhhh I am so confused.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users