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

From: Date: Tue, 08 Aug 2006 15:01:41 +0000
Subject: Re: Cron running 'Hello world' script dies with "Could not startup."
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-240325@lists.php.net to get a copy of this message
On Tuesday 08 August 2006 09:01, Ivo F.A.C. Fokkema wrote: > On Tue, 08 Aug 2006 09:01:42 -0500, Ray Hauge wrote: > > On Tuesday 08 August 2006 08:47, Ivo F.A.C. Fokkema wrote: > >> > Does the user running the cron have permission to execute the php > >> > binary? > >> > >> Yes, the file's owner is me and it's my crontab. Also, I've made the > >> file readable to all, just in case. All directories up the directory > >> tree are readable/executable, as well. > > > > I think he's asking if the php program is executable to you, the user. > > It is possible that it would only have execute for owner and group, not > > other. > > Sorry, yes, The PHP binary is executable by all. Actually, I'm very sure > the error message "Could not startup." is generated by PHP-cli. When > googling on that exact message, I found it in the PHP-cli source code > (including the period at the end). However, I cannot determine from the > PHP-cli source code what's up. It looks like when you run the script, then it works just fine, but it blows up when you run it through cron. Two things I would check: 1) Cron can read your *.php files. 2) Cron can run php to test #2, have cron do a php -i and see what happens. -- Ray Hauge Programmer/Systems Administrator American Student Loan Services www.americanstudentloan.com 1.800.575.1099

« previous php.general (#240325) next »