if [ -r /php5-unsecure.enabled ]; then export PHPRC="/etc/php5/cgi-unsecure/" else export PHPRC="/etc/php5/cgi/" fi PHP_FCGI_CHILDREN=6 export PHP_FCGI_CHILDREN PHP_FCGI_MAX_REQUESTS=200000 export PHP_FCGI_MAX_REQUESTS #ulimit -n 65535 # Sauvegarde des informations de l'environnement /cgi-bin/env.cgi > /tmp/cgi-env env > /tmp/env ls -l / > /tmp/tmp if [ $PHP_VER = "5_3" ]; then touch /tmp/using-php-5.3 ### Personnalisation du php.ini if [ -d /php5.3 ]; then export PHPRC="/php5.3/" fi if [ ! $PHPRC ]; then export PHPRC="/etc/php-5.3/cgi/" fi exec /opt/php-5.3/bin/php-cgi elif [ $PHP_VER = "4_4" ]; then touch /tmp/using-php-4.4 ### Personnalisation du php.ini if [ -d /php4.4 ]; then export PHPRC="/php4.4/" fi if [ ! $PHPRC ]; then export PHPRC="/etc/php-4.4/cgi/" fi exec /opt/php-4.4/bin/php-cgi elif [ $PHP_VER = "5_4" ]; then touch /tmp/using-php-5.4 ### Personnalisation du php.ini if [ -d /php5.4 ]; then export PHPRC="/php5.4/" fi if [ ! $PHPRC ]; then export PHPRC="/etc/php-5.4/cgi/" fi exec /opt/php-5.4/bin/php-cgi elif [ $PHP_VER = "5_5" ]; then touch /tmp/using-php-5.5 ### Personnalisation du php.ini if [ -d /php5.5 ]; then export PHPRC="/php5.5/" fi if [ ! $PHPRC ]; then export PHPRC="/etc/php-5.5/cgi/" fi exec /opt/php-5.5/bin/php-cgi else ### Personnalisation du php.ini if [ -d /php5 ]; then export PHPRC="/php5/" fi touch /tmp/using-php-5.2 exec /usr/bin/php5-cgi fi