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

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

 



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

-- 
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