Hello, I would like to switch from mod_fastcgi to mod_fcgid. In my current configuration I have something like:
-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%- jci...@bebif cgi-bin % pwd /usr/local/www/apache22/cgi-bin jci...@bebif cgi-bin % cat tapir-php-wrapper.fcgi #!/bin/sh PHPRC="/usr/local/etc/php.ini" export PHPRC PHP_FCGI_CHILDREN=3 export PHP_FCGI_CHILDREN PHP_FCGI_MAX_REQUESTS=10000 export PHP_FCGI_MAX_REQUESTS exec /usr/local/bin/php-cgi -b 127.0.0.1:5000 -%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-Every webapp runs under a dedicated user, so I'm using sudo -u ... to launch the PHP "wrapper", and then I'm using the FastCgiExternalServer directive of mod_fastcgi to "link" the php-cgi processes to Apache. I have something like this in my Apache configuration file:
-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-FastCgiExternalServer /usr/local/www/apache22/cgi-bin/tapir-php-wrapper.fcgi -host 127.0.0.1:5000 -idle-timeout 1800
Action php-fastcgi /cgi-bin/tapir-php-wrapper.fcgi AddHandler php-fastcgi .php -%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-The advantage of this configuration is that I can launch the process under a dedicated user without using mod_suexec (which has more constraints).
I wondered if there is a FastCgiExternalServer equivalent in mod_fcgid and also if mod_suexec is the only way in mod_fcgid to launch a PHP webapp under a dedicated user?
Thanks, Julien -- No trees were killed in the creation of this message. However, many electrons were terribly inconvenienced.
<<attachment: jcigar.vcf>>
--------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org " from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org