ez.no / ezpublish / documentation / incoming / setup php for comandline usage (php-cli).
These documentation pages are no longer maintained. Please visit the new documentation site.
read the article at
http://au2.php.net/features.commandline
download PHP
http://au2.php.net/get/php-4.3.8.tar.gz/from/a/mirror
change to the directory where you downloaded the file
execute the following to extract the file
gzip -d -c php-4.3.8.tar.gz | tar xvf -
then switch to the sources
cd php-4.3.8
then configure
./configure --prefix=/usr/local/php-cli --disable-cgi
then build
make
then install
make install-cli
then switch to path where eZ is installed (e.g. cd /var/www/html/ez)
cd /path/to/ez
then run
/usr/local/php-cli/bin/php runcronjobs.php
Comments
kracker beat me to it...
Jonathan Dillon-Hayes
Friday 18 February 2005 1:30:25 am
pre compiled php-cli linux binary (available)
kracker
Wednesday 25 August 2004 6:35:48 am
Björn,
Thank you for the feedback!
Many people have very restrictive hosting providers (shared host style) that barely run eZ publish 3 as it is, most of these kinds of providers refuse to customize the hosting server in any way for the client, some may not even provide ssh access.
For those who have ssh access to their server but don't have rights or hosting support to install php cli (required to compile and install php cli), eZ Pub has packaged up a pre-compiled php-cli linux binary that they should be able to unpack and use to run the eZ publish update scripts.
http://ezpub.co.uk/files/fixes
http://ezpub.co.uk/content/download/502/2347/file/php-cli.tar.gz
http://ezpub.co.uk/faqs/developme...hosts_without_the_php_cli_interphase
I tested this and it worked for me, ymmv --kracker
Happy Hacking,
--kracker
everlast : the white boy is back
pre compiled php-cli
Björn Dieding@xrow.de
Tuesday 24 August 2004 11:33:13 pm
I see no reason why this shouldn't work. I can't remember though, if under linux php uses dynamic linked libraries for some modules or not. If everything is build static, it should work.
Great Addition!
kracker
Tuesday 24 August 2004 7:45:24 pm
This is an excellent addition that has been a much needed missing to the documentation.
I know people have been looking for directions on just how to install php-cli for some time.
This is great resource for people who have their own server, root access or a supportive hosting provider.
Question:
Couldn't a user manually copy a pre compiled php-cli binary application from another server onto a restrictive shared host in order to run the updated scripts that require php-cli?
//kracker
Eminem : Nuttin' Ta Do