From fed653fc4adc2e4c54486105265a6e6b7e83fa94 Mon Sep 17 00:00:00 2001 From: Michael RICOIS Date: Thu, 6 Oct 2016 10:35:52 +0200 Subject: [PATCH] PHP directory for version 7.0 --- lamp-xenial64-fpm/bootstrap.sh | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/lamp-xenial64-fpm/bootstrap.sh b/lamp-xenial64-fpm/bootstrap.sh index 23827a1..b1de09f 100644 --- a/lamp-xenial64-fpm/bootstrap.sh +++ b/lamp-xenial64-fpm/bootstrap.sh @@ -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