dibaliklayar

Thursday, May 19, 2005

php cli and cgi is different beast.. WAAACCKKK

This is for fedora, not sure if works for other..
when I install new server with fedora core 3 I found out that php that come with the package is a modoule to apache, which is cgi. After foundling for so long then I found out that I have to install cli seperately, maybe there is a better way. but I have no time to think about this. Development is waiting.... ARRRGGGHHHHHHH.

I need CLI to run php from cron (another nice beast)...

read this:
http://us2.php.net/features.commandline

and here you go how to install a cli version

download PHP from below, get the newest recommended one
http://us2.php.net/downloads.php

change to the directory where you downloaded the file

execute the following to extract the file

gzip -d -c php-4.3.11.tar.gz | tar xvf -

or
tar -xvzf php-4.3.11.tar.gz

then change directory

cd php-4.3.11

then configure

./configure --prefix=/usr/local/php-cli --disable-cgi

then build

make

then install

ls

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

******************************************

Thats all folks,

hope this help,

Pujo

0 Comments:

Post a Comment

<< Home