I'm trying to set up web.py under mod_fcgid (and Apache, on CentOS 6). If I follow the instructions at http://webpy.org/cookbook/fastcgi-apache, it just works.
But, I want to go a step further, and have this run under
suexec. To make that one step more complicated, my DocumentRoot is under
/srv/, and of course
suexec is hard-coded to require scripts to be under
I have this working with PHP, with the following configuration:
<VirtualHost *:80> ServerName mysite.example.org DocumentRoot /srv/mysite SuexecUserGroup safeuser safegroup AddType application/x-httpd-php .php <Directory "/srv/mysite/"> DirectoryIndex index.php AllowOverride Options AddHandler fcgid-script .php FCGIWrapper /var/www/fcgi/mysite/php-fcgi .php Options ExecCGI FollowSymLinks </Directory> </VirtualHost>
#!/bin/bash export PHP_FCGI_CHILDREN=0 export PHP_FCGI_MAX_REQUESTS=4000 exec /usr/bin/php-cgi $@
And that works beautifully. But, I can't seem to translate the requirements for web.py to work with FCGIWrapper.