oki, found something.

cherokee-src-dir/cherokee/handler_phpcgi.c
line 56:
#define DEFAULT_PHP_EXECUTABLE "/usr/lib/cgi-bin/php4

Question: Why php4? When you compile php the cgi-bin executable is called php. This applies to both php-4.x and php-5.x (don't know about php-3)

Modify the file, recompile cherokee

On 9/28/05, yokoy <[EMAIL PROTECTED] > wrote:


On Wednesday 28 September 2005 13:14, Catalin Nicolescu wrote:
> try adding php5 to extension, if not rename /usr/lib/cgi-bin/php5 to php4
> this won't affect the php ver. do a phpinfo(); to check
> I've looked at my conf and I have it renamed to php4 and it works. I have
> php-5.0.5 as cgi but the filename is php4 :)
> I don't remember why I did that, but as long as it works ...
> I'll look into.

I did the following changes:

add php5 in /etc/cherokee/sites-available/default
...
Extension php, php3, php4, php5 {
                Handler phpcgi
}
...

result: still the same, no wiki

the second change:
cp -a /usr/lib/cgi-bin/php5 /usr/lib/cgi-bin/php4

it works!!!!!
obscure, isn't it?

> For the /etc/init.d/cherokee restart thing I don't have a clue right now.
> I've never used it.

I tried to increase sleep from 1 to 2. Thats it, works fine.

restart)
        $0 stop
     sleep 2
     $0 start
        ;;

_______________________________________________
Cherokee mailing list
[email protected]
http://www.alobbs.com/cgi-bin/mailman/listinfo/cherokee

_______________________________________________
Cherokee mailing list
[email protected]
http://www.alobbs.com/cgi-bin/mailman/listinfo/cherokee

Reply via email to