berVi wrote:
> Is it possible to use Cherokee + PHP with Chroot? Cherokee is
> chrooted into /var/www, but now I can't run php files, I tried
> symbolic links, doesn't work, I get a 200 OK msg.
>
> I also tried to copy the php interpreter to /var/www/usr/local/bin,
> coz it's original path is /usr/local/bin, but then I get a 500
> Internal Server Error msg.
I would suggest you to run the PHP interpreter inside a jail (using
the FastCGI interface and listening to some port).
Then, configure Cherokee to be chroot'ed as well and set it up to
use PHP through the FastCGI port you opened before. It should work.
> It's with phpcgi, I still can't use the fcgi handler.
Okay. If you want to use phpcgi what you have to do is specify the
path to the interpreter, for example:
=======
Chroot /var/www
DirectoryRoot /
Directory / {
Handler common
}
Extension php {
Handler phpcgi {
Interpreter /cgi/php
}
}
=======
so, you will need to copy the php interpreter to /var/www/cgi/php. I
haven't tested it, but it should work.
Good luck! :-)
--
Greetings, alo.
_______________________________________________
Cherokee mailing list
[email protected]
http://www.0x50.org/cgi-bin/mailman/listinfo/cherokee