|
This is my configuration: /etc/cherokee/cherokee.conf Chroot /home/webs ls -l /etc/cherokee/sites-available/ -rw-r--r-- 1 root root 238 2006-07-12 00:05 example.com -rw-r--r-- 1 root root 293 2006-12-09 17:23 foro.veroos.es /etc/cherokee/sites-available/foro.veroos.es Server foro.veroos.es { DocumentRoot /home/webs/foro Directory / { Handler common } Include /etc/cherokee/sites-enabled/common.conf } ls -l /etc/cherokee/sites-enabled/ -rw-r--r-- 1 root root 335 2006-12-09 17:08 common.conf lrwxrwxrwx 1 root root 33 2006-12-09 16:35 foro.veroos.es -> ../sites-available/foro.veroos.es /etc/cherokee/sites-enable/common.conf DirectoryIndex index.html, index.php, index.htm Directory / { Handler common } Extension php { Handler fcgi { Server 127.0.0.1:8002 { Env PHP_FCGI_MAX_REQUESTS "10000" Env PHP_FCGI_CHILDREN "5" Interpreter "/usr/lib/cgi-bin/chrooted-php -b 127.0.0.1:8002 /home/webs" } } } ls -l /usr/lib/cgi-bin/ -rwxrwxrwx 1 root root 139 2006-12-09 15:35 chrooted-php lrwxrwxrwx 1 root root 29 2006-12-09 17:19 php -> /etc/alternatives/php-cgi-bin -rwxr-xr-x 1 root root 3064088 2006-11-03 22:56 php4 /usr/lib/cgi-bin/chrooted-php #!/bin/bash PHP_INTERPRETER=/usr/lib/cgi-bin/php4 HOST_PORT=$1 CHROOT_DIR=$2 /usr/sbin/chroot $CHROOT_DIR $PHP_INTERPRETER -b $HOST_PORT ls -l /home/webs/usr/lib/cgi-bin/ -rwxrwxrwx 1 root root 139 2006-12-09 16:32 chrooted-php lrwxrwxrwx 1 root root 21 2006-12-09 16:51 php4 -> /usr/lib/cgi-bin/php4 /home/webs/usr/lib/cgi-bin/chrooted-php #!/bin/bash PHP_INTERPRETER=/usr/lib/cgi-bin/php4 HOST_PORT=$1 CHROOT_DIR=$2 /usr/sbin/chroot $CHROOT_DIR $PHP_INTERPRETER -b $HOST_PORT netstat -nl tcp 0 0 127.0.0.1:8002 0.0.0.0:* LISTEN I think all is right, but, when I try to enter in the web, I can't. Web server tellme that can't find page (for example index.php), but if y rename index.php by index.html it can find the page. Any idea? |
_______________________________________________ Cherokee mailing list [email protected] http://cherokee-project.com/cgi-bin/mailman/listinfo/cherokee
