Hi Athos,

  I think I forgot to tell you that this mailing list is used by
  people from all over the globe, and hence messages sent to it are
  meant to be written in English.

> Hola Alvaro, estube en tu charla sobre Cherokee en la campus party,
> y la verdad, me convenciste y he empezado a usarlo. Me parece muy
> claro y eficiente, y la pagina web esta muy bien, pero me parece que
> hace falta un poco mas de documentacion, quizas en otros idiomas
> para que la gente como yo, que no sabemos mucho ingles, nos podamos
> solucinar los problemas.

  Yeah, I do agree. It would be great to have Cherokee related
  resources in other languages than English. Currently, there is a
  group of people who are working in new web site for Cherokee in
  Spanish.

  You may be interested to join them.. here is the link they sent me
  this morning:


http://pistingteam.proboards105.com/index.cgi?board=noticias&action=display&thread=1158949908

> Tengo un problema:
>
> Si corro apache SIN chroot, todo funciona correctamente, funcionan
> mis hosts virtuales, y me funciona php sin ningun problema, y además
> muy rapido.
>
> El problema lo tengo cuando hago un chroot, que no consigo que me
> funcione el php, me dice que no encuentra el interprete. he intentado
> meter /usr/bin/php4-cgi dentro del chroot, y he metido tb todas las
> librerias que me daban al hacer un ldd /usr/bin/php4-cgi, pero al
> intentar entrar en la pagina php (he probado con phpmyadmin y con un
> phpinfo.php) me da un error y se cae el servidor.

  Besides it's either a misconfiguration problem, a bug or a something
  else, I would suggest you to use the fcgi rather than the phpcgi
  one. It's way much faster and you will easily avoid the chroot-ing
  problem that you are suffering.

  The only thing you would have to do is to launch the FastCGI PHP
  daemon chroot'ed wherever you want, and make it listen a local TCP
  port. Then you'd have to say Cherokee to use that port to send the
  FastCGI requests, and.. that's it.

  The standard PHP fcgi configuration would be enough:

===================
Extension php {
  Handler fcgi {
    Server localhost:8000 {
      Env PHP_FCGI_MAX_REQUESTS  "10000"
      Env PHP_FCGI_CHILDREN      "5"
      Interpreter "/usr/lib/cgi-bin/chrooted-php 127.0.0.1:8000
/var/tmp/test"
    }
  }
}
===================

  then, you would need to do the chroot installation in /var/tmp/test,
  and put something like this in /usr/lib/cgi-bin/chrooted-php (do not
  forget to set it read and execution permission):

===================
#!/bin/bash

PHP_INTERPRETER=/usr/lib/cgi-bin/php5
HOST_PORT=$1
CHROOT_DIR=$2

/usr/sbin/chroot $CHROOT_DIR $PHP_INTERPRETER -b $HOST_PORT
===================


  Good luck! ;-)


-- 
Greetings, alo.
http://www.alobbs.com
_______________________________________________
Cherokee mailing list
Cherokee@0x50.org
http://www.0x50.org/cgi-bin/mailman/listinfo/cherokee

Reply via email to