RE: [PHP] Cron running 'Hello world' script dies with "Could not startup."
| From: | Jef Sullivan | Date: | Tue, 08 Aug 2006 13:28:43 +0000 |
| Subject: | RE: [PHP] Cron running 'Hello world' script dies with "Could not startup." | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-240311@lists.php.net to get a copy of this message | ||
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@kegworks.com]
Sent: Tuesday, August 08, 2006 7:11 AM
To: php-general@lists.php.net
Subject: Re: [PHP] 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@dotcomholdingsofbuffalo.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php