#!/bin/sh # Wrapper for PHP-fcgi # Define the path to php.ini. This defaults to /etc/phpX/cgi. #export PHPRC=/u/drkp/txcache-deploy-local/fcgi-wrapper/php.ini # Define the number of PHP child processes that will be launched. # This is low to control memory usage on a server that might launch # these processes for lots of domains. # Leave undefined to let PHP decide. export PHP_FCGI_CHILDREN=0 # Maximum requests before a process is stopped and a new one is launched export PHP_FCGI_MAX_REQUESTS=5000 ulimit -c unlimited # Launch the PHP CGI binary # This can be any other version of PHP which is compiled with FCGI support. time -a -o /tmp/phptimes /usr/bin/php5-cgi #(time) 2>/tmp/phptimes