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

From: Date: Fri, 11 Aug 2006 07:21:02 +0000
Subject: Re: Cron running 'Hello world' script dies with "Could not startup."
References: 1 2 3 4 5 6 7  Groups: php.general 
Request: Send a blank email to php-general+get-240535@lists.php.net to get a copy of this message
On Thu, 10 Aug 2006 16:41:38 -0500, Richard Lynch wrote: > On Wed, August 9, 2006 3:14 am, Ivo F.A.C. Fokkema wrote: >> SO: Loading the GTK library in your /etc/php4/cli/php.ini, KILLS the >> PHP-cli functionality from cron. On Ubuntu Dapper, that is. Not sure >> about >> other distros. > > Probably because the PATH to the GTK.so file is not absolute in your > php.ini, so your can find it from your shell environment, but the cron > shell environment cannot find it. > > If you dink around with the paths in php.ini for extension_dir and the > GTK.so, and if you set permissions up, you should be able to make it > work, if you want it to. The GTK.so is in the same path all the other extensions are... Also, when logged in through X it works, when using SSH to my machine, it doesn't. I asked on the php.gtk.general list, and I was told this behaviour is expected; the module needs a X environment. It's not going to be fixed in GTK2 either. For now, I've got two php.ini files. One with the extension loaded, one without. I will just have to use the PHP-cli -c flag (specify .ini file)...

« previous php.general (#240535) next »