Skip to content

Instantly share code, notes, and snippets.

@lucasff
Created May 30, 2014 20:18
Show Gist options
  • Save lucasff/1a87e2dd5f09090d38ed to your computer and use it in GitHub Desktop.
Save lucasff/1a87e2dd5f09090d38ed to your computer and use it in GitHub Desktop.
Virtualmin PHP5 CGI script wrapper
#!/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