aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/cgi/php.cgi
blob: 746ba824f3fa129b77d8d31d218f63024c582fed (plain)
1
2
3
4
5
6
7
#!/bin/bash

# Wrap PHP for web servers that can only do PHP via CGI.
export DOCUMENT_ROOT=$(pwd)
export SCRIPT_FILENAME="$PATH_TRANSLATED"
export SCRIPT_NAME=$(basename $PATH_TRANSLATED)
exec /usr/bin/php-cgi --php-ini ${DOCUMENT_ROOT}/php.ini