Advertisement
murdanieko

Upgrade PHP 7.2 EasyEngine

Sep 1st, 2019
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.35 KB | None | 0 0
  1. # update php7.2 EasyEngine
  2.  
  3. # install php7.2
  4. 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
  5.  
  6. # copy www.conf
  7. cp -f /etc/php/5.6/fpm/pool.d/www.conf /etc/php/7.2/fpm/pool.d/www.conf
  8.  
  9. # edit www.conf port
  10. vim /etc/php/7.2/fpm/pool.d/www.conf
  11.  
  12. # change port to 9090
  13. listen = 127.0.0.1:9090
  14.  
  15. # restart php-fpm service
  16. service php7.2-fpm restart
  17.  
  18. # add available upstream for php7.2
  19. vim /etc/nginx/conf.d/upstream.conf
  20.  
  21. # add these lines at the end of the file
  22. # php7.2-fpm
  23. upstream php72 {
  24.   server 127.0.0.1:9090;
  25. }
  26.  
  27. # copy individual confs for php72
  28. cd /etc/nginx/common/
  29. cp locations-php7.conf locations-php72.conf
  30. cp php7.conf php72.conf
  31. cp wpcommon-php7.conf wpcommon-php72.conf
  32. cp redis-php7.conf redis-php72.conf
  33.  
  34. # edit fastcgi_pass replace with
  35. #
  36. # fastcgi_pass php72;
  37. vim php72.conf
  38. vim locations-php72.conf
  39. vim wpcommon-php72.conf
  40. vim redis-php72.conf
  41.  
  42. # edit and remove cached static extensions jpg|jpeg|png|gif|ico
  43. vim locations-php72.conf
  44.  
  45. # edit domain conf
  46. # change inclusions into these values
  47. #
  48. # include common/php72.conf;
  49. # include common/locations-php72.conf;
  50. ee site edit example.com
  51.  
  52. # or if you're doing "catch all domains"
  53. # then you should edit default conf instead
  54. vim /etc/nginx/sites-available/default
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement