Current time: 11-27-2024, 06:10 AM Hello There, Guest! (LoginRegister)


Post Reply 
How many domains are you running?
Author Message
supaplex Offline
Junior Member
*

Posts: 22
Joined: Jan 2009
Reputation: 0
Post: #53
RE: How many domains are you running?
Buhuhahaha. victory Smile

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.
(This post was last modified: 05-03-2009 06:05 AM by supaplex.)
05-03-2009 06:05 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
How many domains are you running? - hendry - 07-23-2007, 08:39 PM
RE: How many domains are you running? - supaplex - 05-03-2009 06:05 AM

Forum Jump:


User(s) browsing this thread: 3 Guest(s)