#! /bin/sh # php.fcgi (Bourne shell script) -- used as a wrapper by FCGID to run PHP scripts # NOTE: When installed for a site, this file and the site's libexec subdirectory must: # a) Have the user and group specified in the site's SuexecUserGroup directory # b) Be readable by the Apache process' user # # tweak-vhost achieves this. # Set desired PHP_FCGI_* environment variables. # Example: # PHP FastCGI processes exit after 500 requests by default. export PHP_FCGI_MAX_REQUESTS=10000 umask 027 exec /usr/bin/php-cgi