transition from php5* packages to php-7.0*
This commit is contained in:
parent
fbdca20dee
commit
36883951e8
|
|
@ -154,7 +154,7 @@ server_address=$(hostname -I)
|
|||
|
||||
#restart services
|
||||
systemctl daemon-reload
|
||||
systemctl restart php5-fpm
|
||||
systemctl restart php7.0-fpm
|
||||
systemctl restart nginx
|
||||
systemctl restart fail2ban
|
||||
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ cd "$(dirname "$0")"
|
|||
verbose "Installing the web server"
|
||||
|
||||
#install dependencies
|
||||
apt-get install -y --force-yes nginx php5 php5-cli php5-fpm php5-pgsql php5-sqlite php5-odbc php5-curl php5-imap php5-mcrypt
|
||||
apt-get install -y nginx php php-cli php-fpm php-pgsql php-sqlite3 php-odbc php-curl php-imap php-mcrypt
|
||||
|
||||
#enable fusionpbx nginx config
|
||||
cp nginx/fusionpbx /etc/nginx/sites-available/fusionpbx
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ server{
|
|||
}
|
||||
|
||||
location ~ \.php$ {
|
||||
fastcgi_pass unix:/var/run/php5-fpm.sock;
|
||||
fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
|
||||
#fastcgi_pass 127.0.0.1:9000;
|
||||
fastcgi_index index.php;
|
||||
include fastcgi_params;
|
||||
|
|
@ -95,7 +95,7 @@ server {
|
|||
}
|
||||
|
||||
location ~ \.php$ {
|
||||
fastcgi_pass unix:/var/run/php5-fpm.sock;
|
||||
fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
|
||||
#fastcgi_pass 127.0.0.1:9000;
|
||||
fastcgi_index index.php;
|
||||
include fastcgi_params;
|
||||
|
|
@ -181,7 +181,7 @@ server {
|
|||
}
|
||||
|
||||
location ~ \.php$ {
|
||||
fastcgi_pass unix:/var/run/php5-fpm.sock;
|
||||
fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
|
||||
#fastcgi_pass 127.0.0.1:9000;
|
||||
fastcgi_index index.php;
|
||||
include fastcgi_params;
|
||||
|
|
|
|||
|
|
@ -10,12 +10,12 @@ cd "$(dirname "$0")"
|
|||
verbose "Configuring PHP"
|
||||
|
||||
#update config if source is being used
|
||||
sed 's#post_max_size = .*#post_max_size = 80M#g' -i /etc/php5/fpm/php.ini
|
||||
sed 's#upload_max_filesize = .*#upload_max_filesize = 80M#g' -i /etc/php5/fpm/php.ini
|
||||
sed 's#post_max_size = .*#post_max_size = 80M#g' -i /etc/php/7.0/fpm/php.ini
|
||||
sed 's#upload_max_filesize = .*#upload_max_filesize = 80M#g' -i /etc/php/7.0/fpm/php.ini
|
||||
|
||||
#restart php5-fpm
|
||||
#restart php-fpm
|
||||
#systemd
|
||||
/bin/systemctl restart php5-fpm
|
||||
/bin/systemctl restart php7.0-fpm
|
||||
|
||||
#init.d
|
||||
#/usr/sbin/service php5-fpm restart
|
||||
#/usr/sbin/service php7.0-fpm restart
|
||||
|
|
|
|||
Loading…
Reference in New Issue