]>
Commit | Line | Data |
---|---|---|
ed82c97e JP |
1 | #!/bin/bash |
2 | ||
3 | _FCGI_PHP_SOCK="/tmp/php-fastcgi.sock" | |
4 | _FCGI_PHP_PID="/tmp/php-fastcgi.pid" | |
5 | ||
6 | export PHP_FCGI_CHILDREN=4 | |
7 | export PHP_FCGI_MAX_REQUESTS=10000 | |
8 | ||
9 | rm -f $_FCGI_PHP_SOCK $_FCGI_PHP_PID | |
10 | pkill -9 php-cgi | |
11 | ||
12 | rm -f /var/lib/php/session/* | |
13 | chmod 770 /var/lib/php/session | |
14 | chown -R root:sql /var/lib/php/session | |
15 | ||
16 | /usr/bin/spawn-fcgi -s $_FCGI_PHP_SOCK -f /usr/bin/php-cgi -u sql -g sql -P $_FCGI_PHP_PID -C 4 | |
17 | chmod 777 $_FCGI_PHP_SOCK |