List Info

Thread: Error in PHP (cheroke 0.4.29)




Error in PHP (cheroke 0.4.29)
user name
2006-01-06 19:20:30
Hi,

I install Cherokee form my package for Slackware. I create in DocumentRoot one web .php with:

<;?php

phpinfo();

?&gt;

Cherokee say: handler_phpcgi.c/158: ERROR: PHP interpreter not found ((null)). Please install it.

In the conf have:

Extension php, php3, php4 {
 &nbsp; &nbsp;   ; &nbsp; &nbsp; &nbsp; &nbsp; Handler phpcgi
}

Whet i define directive Interpreter (Interpreter /usr/bin/php) say:

rootvicious:/etc/cherokee# /etc/rc.d/rc.cherokee start
Error parsing file :397 'syntax error', symbol 'Interpreter'
Couldn't read the config file
Starting Cherokee

The PATH of PHP is:

rootvicious:/etc/cherokee# which php
/usr/bin/php

I use 0.4.29 . Thanks and excuseme for my bad english.

--
Juan A. Moreno
http://0x29.com.ve
Error in PHP (cheroke 0.4.29)
user name
2006-01-07 09:29:40
Juan A. Moreno wrote:

 > I install Cherokee form my package for Slackware. I
create in
 > DocumentRoot one web .php with:
 >
 > <?php
 >   phpinfo();
 > ?>
 >
 > Cherokee say: handler_phpcgi.c/158: ERROR: PHP
interpreter not found
 > ((null)). Please install it.
 >
 > In the conf have:
 >
 > Extension php, php3, php4 {
 >     Handler phpcgi
 > }
 >
 > Whet i define directive Interpreter (Interpreter
/usr/bin/php) say:
 >
 > rootvicious:/etc/cherokee# /etc/rc.d/rc.cherokee start
 > Error parsing file :397 'syntax error', symbol
'Interpreter'
 > Couldn't read the config file
 > Starting Cherokee

   I guess it is because you added the interpreter option in
the wrong
   place. Try this out:

========
Extension php, php3, php4 {
     Handler phpcgi {
        Interpreter /usr/bin/php
     }
}
========

   By the way, it seems to be an odd path for the php CGI
binary. You
   should ensure you are using the right version of PHP, it
must be the
   "cgi-fcgi" version:

========
$ /usr/lib/cgi-bin/php5 -v
PHP 5.0.5-3 (cgi-fcgi) (built: Oct 20 2005 17:50:42)
========


   Good luck Juan,

-- 
Greetings, alo.
http://www.alobbs.com
_______________________________________________
Cherokee mailing list
Cherokeelists.alobbs.com
http://www.alobbs.com/cgi-bin/mailman/listinfo/cherokee
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )