Jump to content

Help with Cron job


aarman

Recommended Posts

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.
Link to comment
https://forums.phpfreaks.com/topic/10042-help-with-cron-job/
Share on other sites

[!--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) [snapback]375391[/snapback][/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.
Link to comment
https://forums.phpfreaks.com/topic/10042-help-with-cron-job/#findComment-37455
Share on other sites

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)

Link to comment
https://forums.phpfreaks.com/topic/10042-help-with-cron-job/#findComment-37787
Share on other sites

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.
Link to comment
https://forums.phpfreaks.com/topic/10042-help-with-cron-job/#findComment-38132
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.