Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # update php7.2 EasyEngine
- # install php7.2
- apt update && apt install php7.2-fpm php7.2-xml php7.2-bz2 php7.2-zip php7.2-mysql php7.2-intl php7.2-gd php7.2-curl php7.2-soap php7.2-mbstring -y
- # copy www.conf
- cp -f /etc/php/5.6/fpm/pool.d/www.conf /etc/php/7.2/fpm/pool.d/www.conf
- # edit www.conf port
- vim /etc/php/7.2/fpm/pool.d/www.conf
- # change port to 9090
- listen = 127.0.0.1:9090
- # restart php-fpm service
- service php7.2-fpm restart
- # add available upstream for php7.2
- vim /etc/nginx/conf.d/upstream.conf
- # add these lines at the end of the file
- # php7.2-fpm
- upstream php72 {
- server 127.0.0.1:9090;
- }
- # copy individual confs for php72
- cd /etc/nginx/common/
- cp locations-php7.conf locations-php72.conf
- cp php7.conf php72.conf
- cp wpcommon-php7.conf wpcommon-php72.conf
- cp redis-php7.conf redis-php72.conf
- # edit fastcgi_pass replace with
- #
- # fastcgi_pass php72;
- vim php72.conf
- vim locations-php72.conf
- vim wpcommon-php72.conf
- vim redis-php72.conf
- # edit and remove cached static extensions jpg|jpeg|png|gif|ico
- vim locations-php72.conf
- # edit domain conf
- # change inclusions into these values
- #
- # include common/php72.conf;
- # include common/locations-php72.conf;
- ee site edit example.com
- # or if you're doing "catch all domains"
- # then you should edit default conf instead
- vim /etc/nginx/sites-available/default
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement