Created
May 30, 2014 20:18
-
-
Save lucasff/1a87e2dd5f09090d38ed to your computer and use it in GitHub Desktop.
Virtualmin PHP5 CGI script wrapper
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
PHPRC=$PWD/../etc/php5 | |
export PHPRC | |
umask 022 | |
export PHP_FCGI_CHILDREN | |
PHP_FCGI_MAX_REQUESTS=99999 | |
export PHP_FCGI_MAX_REQUESTS | |
SCRIPT_FILENAME=$PATH_TRANSLATED | |
export SCRIPT_FILENAME | |
exec /usr/bin/php5-cgi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment