Im trying to use fastcgi with peruser so that i can offer multiple
versions of php to each vhost

Everything works well with Chrooting disabled, but when i enable
chroot I start getting 404 errors for all php files - html files do
not get affected and are served correctly.

My config:

<VirtualHost *:80>
    ServerName test1
    ServerAdmin [email protected]
    DocumentRoot /var/www/vhosts/test1/html
    ErrorLog /var/www/vhosts/test1/logs/error_log
    CustomLog /var/www/vhosts/test1/logs/access_log combined

    <Directory "/var/www/vhosts/test1/html">
        Options -Indexes -FollowSymLinks
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>
    ProxyRequests Off

  <IfModule peruser.c>
    <Processor test1>
      User apache
      Group apache
      #Chroot /var/www/vhosts/test1
    </Processor>
    ServerEnvironment test1
  </IfModule>


AddHandler fastcgi-script .fcgi
AddType application/x-httpd-php .php
Addtype application/x-httpd-php3 .php3

ScriptAlias /fastcgi/ /opt/cgi-bin/

<Directory "/opt/cgi-bin">
 Options ExecCGI
 SetHandler fastcgi-script
 Order allow,deny
 Allow from all
</Directory>

<Location />
     Action application/x-httpd-php /fastcgi/php5213.fcgi
     Action application/x-httpd-php3 /fastcgi/php532.fcgi
</Location>

</VirtualHost>

/opt does exist inside the chroot, along with all required libraries
needed to run the fastcgi scripts, i have tested this using a bash
chroot();

Any ideas?
_______________________________________________
Peruser mailing list
[email protected]
http://www.telana.com/mailman/listinfo/peruser

Reply via email to