Buhuhahaha. victory
Code:
locate fcgi-starter | grep ^/var/www > fcgi-starter-list-for-sed
tar --files-from=fcgi-starter-list-for-sed -zcvf ~supaplex/fcgi-templates-pre-sed.tar.gz
cat fcgi-starter-list-for-sed | xargs sed -r -i -e 's/^(PHP_|export PHP_)/# \1/' -e 's#(export PHPRC)#\1'"\n"'\# See http://www.isp-control.net/forum/thread-1028-page-6.html#'
And check your work after. =)
Now we have:
Code:
#!/bin/sh
umask 022
PHPRC="/var/www/fcgi/example.com/php5/"
export PHPRC
# See http://www.isp-control.net/forum/thread-1028-page-6.html
# PHP_FCGI_CHILDREN=2
# export PHP_FCGI_CHILDREN
# PHP_FCGI_MAX_REQUESTS=500
# export PHP_FCGI_MAX_REQUESTS
exec /usr/bin/php5-cgi
Personally, I think this would be easier to source the defaults from /etc/ispcp/fcgi-php5-defaults
then they could be changed in one place, and affect all the others. Individual (one off) sites could comment out the 'source' line.