# MAJ 15/03/2012 # MAJ 20/07/2013 : Ajout PHP 5.5 # MAJ 31/12/2015 : Ajout PHP 5.6 + Default PHP 5.4 # MAJ 07/06/2016 : Ajout PHP 7.0 + Default PHP 5.5 # MAJ 15/04/2020 : Ajout PHP 7.1 7.2 7.3 # MAJ 15/11/2021 : Ajout PHP 7.4 8.0 # MAJ 13/12 2021 : Ajout PHP 8.1 PHP_FCGI_CHILDREN=5 export PHP_FCGI_CHILDREN PHP_FCGI_MAX_REQUESTS=200000 export PHP_FCGI_MAX_REQUESTS default_ver=80 # PHP5.6 ou inférieur if [ -f /php52.enabled ] || [ -f /php53.enabled ] || [ -f /php54.enabled ] || [ -f /php55.enabled ] || [ -f /php56.enabled ]; then if [ -d /php5 ]; then export PHPRC="/php5/" exec /opt/php56/bin/php-cgi else export PHPRC="/opt/php56/conf/" exec /opt/php56/bin/php-cgi fi # PHP7.0 elif [ -f /php70.enabled ]; then if [ -d /php5 ]; then export PHPRC="/php5/" exec /opt/php70/bin/php-cgi else export PHPRC="/opt/php70/conf/" exec /opt/php70/bin/php-cgi fi # PHP7.1 elif [ -f /php71.enabled ]; then if [ -d /php5 ]; then export PHPRC="/php5/" exec /opt/php71/bin/php-cgi else export PHPRC="/opt/php71/conf/" exec /opt/php71/bin/php-cgi fi # PHP7.2 elif [ -f /php72.enabled ]; then if [ -d /php5 ]; then export PHPRC="/php5/" exec /opt/php72/bin/php-cgi else export PHPRC="/opt/php72/conf/" exec /opt/php72/bin/php-cgi fi # PHP7.3 elif [ -f /php73.enabled ]; then if [ -d /php5 ]; then export PHPRC="/php5/" exec /opt/php73/bin/php-cgi else export PHPRC="/opt/php73/conf/" exec /opt/php73/bin/php-cgi fi # PHP7.4 elif [ -f /php74.enabled ]; then if [ -d /php5 ]; then export PHPRC="/php5/" exec /opt/php74/bin/php-cgi else export PHPRC="/opt/php74/conf/" exec /opt/php74/bin/php-cgi fi # PHP8.0 elif [ -f /php80.enabled ]; then if [ -d /php5 ]; then export PHPRC="/php5/" exec /opt/php80/bin/php-cgi else export PHPRC="/opt/php80/conf/" exec /opt/php80/bin/php-cgi fi # PHP8.1 elif [ -f /php81.enabled ]; then if [ -d /php5 ]; then export PHPRC="/php5/" exec /opt/php81/bin/php-cgi else export PHPRC="/opt/php80/conf/" exec /opt/php81/bin/php-cgi fi # Autre ou php??.enabled absent, php par défaut else if [ -d /php5 ]; then export PHPRC="/php5/" else export PHPRC="/opt/php${default_ver}/conf/" fi exec /opt/php${default_ver}/bin/php-cgi fi