PHP directory for version 7.0

This commit is contained in:
Michael RICOIS 2016-10-06 10:35:52 +02:00
parent eb77031f94
commit fed653fc4a

View File

@ -71,7 +71,7 @@ then
sudo a2enconf phpfcgi
# --- Configuration PHP / CLI
if [ -f /etc/php5/cli/php.ini ]
if [ -f /etc/php/7.0/cli/php.ini ]
then
sudo sed -i -e 's/short_open_tag = Off/short_open_tag = On/g' /etc/php7.0/cli/php.ini
sudo sed -i -e 's/;mbstring.internal_encoding = UTF-8/mbstring.internal_encoding = UTF-8/g' /etc/php7.0/cli/php.ini
@ -79,21 +79,21 @@ then
fi
# --- Configuration PHP FPM
if [ -f /etc/php5/fpm/php.ini ]
if [ -f /etc/php/7.0/fpm/php.ini ]
then
sudo sed -i -e 's/max_execution_time = 30/max_execution_time = 300/g' /etc/php7.0/fpm/php.ini
sudo sed -i -e 's/max_execution_time = 30/max_execution_time = 300/g' /etc/php/7.0/fpm/php.ini
sudo sed -i -e 's/short_open_tag = Off/short_open_tag = On/g' /etc/php7.0/fpm/php.ini
sudo sed -i -e 's/;mbstring.internal_encoding = UTF-8/mbstring.internal_encoding = UTF-8/g' /etc/php7.0/fpm/php.ini
sudo sed -i -e 's/;date.timezone =/date.timezone = Europe\/Paris/g' /etc/php7.0/fpm/php.ini
sudo sed -i -e 's/post_max_size = 8M/post_max_size = 50M/g' /etc/php7.0/fpm/php.ini
sudo sed -i -e 's/upload_max_filesize = 2M/upload_max_filesize = 50M/g' /etc/php7.0/fpm/php.ini
sudo sed -i -e 's/session.gc_maxlifetime = 1440/session.gc_maxlifetime = 86400/g' /etc/php7.0/fpm/php.ini
sudo sed -i -e 's/;opcache.enable=0/opcache.enable=1/g' /etc/php7.0/fpm/php.ini
sudo cp -f $DIRDATA/PHP/xdebug.ini /etc/php7.0/mods-available/xdebug.ini
sudo sed -i -e 's/;date.timezone =/date.timezone = Europe\/Paris/g' /etc/php:7.0/fpm/php.ini
sudo sed -i -e 's/post_max_size = 8M/post_max_size = 50M/g' /etc/php:7.0/fpm/php.ini
sudo sed -i -e 's/upload_max_filesize = 2M/upload_max_filesize = 50M/g' /etc/php:7.0/fpm/php.ini
sudo sed -i -e 's/session.gc_maxlifetime = 1440/session.gc_maxlifetime = 86400/g' /etc/php/7.0/fpm/php.ini
sudo sed -i -e 's/;opcache.enable=0/opcache.enable=1/g' /etc/php:7.0/fpm/php.ini
sudo cp -f $DIRDATA/PHP/xdebug.ini /etc/php/7.0/mods-available/xdebug.ini
# --- Browscap
sudo cp -f $DIRDATA/PHP/php_browscap.ini /etc/php7.0/fpm/
sudo sed -i -e 's/;browscap = extra\/browscap.ini/browscap = \/etc\/php5\/fpm\/php_browscap.ini/g' /etc/php7.0/fpm/php.ini
sudo cp -f $DIRDATA/PHP/php_browscap.ini /etc/php/7.0/fpm/
sudo sed -i -e 's/;browscap = extra\/browscap.ini/browscap = \/etc\/php5\/fpm\/php_browscap.ini/g' /etc/php/7.0/fpm/php.ini
fi
# --- ChartDirector