RE: Cron running 'Hello world' script dies with "Could not startup."

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Here is the cron command that we use. I've modified the path to the file for 
security purposes.

*/5 * * 1-6 lynx -dump http://fully.qualified.path/cron_test.php 
-auth=usr:pwd 




Jef
-----Original Message-----
From: John Nichel [mailto:john@xxxxxxxxxxxx] 
Sent: Tuesday, August 08, 2006 7:11 AM
To: php-general@xxxxxxxxxxxxx
Subject: Re:  Cron running 'Hello world' script dies with "Could not startup."

Ivo F.A.C. Fokkema wrote:
> Hi guys,
> 
> I'm really stuck with this error and since my backup scripts are no
> longer running automatically through cron, I really need to get this
> fixed soon :)
> 
> Suddenly my backup scripts die with the error "Could not startup.". Only
> through the cron, it runs fine through the console. I've tried all kinds
> of tests with other PHP scripts, tried a different PC, asked my
> distribution mailing list, tried Google and searching this list,
> nothing...
> 
> Script:
> <?php
> echo "Hello\n";
> ?>
> 
> This is the crontab line:
> * * * * * /usr/bin/php -f /home/ifokkema/test.php
> 
> - Running the exact same command from the command line works perfectly.
> - Cron output is nothing more than "Could not startup.".
> - Have not changed the PHP installation or a cron related package.
> - Distribution: Ubuntu Dapper, problems started July 31st. Possibly
> after an upgrade, can't remember.
> - Tried on different Ubuntu Dapper install, same result.
> - PHP version: 4.4.2-1build1
> - Yes, I've verified that I'm using the PHP-cli executable.
> 
> Thanks for any input!
> 
> Ivo
> 

Does the user running the cron have permission to execute the php binary?

-- 
John C. Nichel IV
Programmer/System Admin (ÜberGeek)
Dot Com Holdings of Buffalo
716.856.9675
jnichel@xxxxxxxxxxxxxxxxxxxxxxxxxxx

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux