diff options
Diffstat (limited to 'cgi/php.cgi')
-rwxr-xr-x | cgi/php.cgi | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/cgi/php.cgi b/cgi/php.cgi new file mode 100755 index 0000000..746ba82 --- /dev/null +++ b/cgi/php.cgi | |||
@@ -0,0 +1,7 @@ | |||
1 | #!/bin/bash | ||
2 | |||
3 | # Wrap PHP for web servers that can only do PHP via CGI. | ||
4 | export DOCUMENT_ROOT=$(pwd) | ||
5 | export SCRIPT_FILENAME="$PATH_TRANSLATED" | ||
6 | export SCRIPT_NAME=$(basename $PATH_TRANSLATED) | ||
7 | exec /usr/bin/php-cgi --php-ini ${DOCUMENT_ROOT}/php.ini | ||