Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Web Server
  • Search

How to upgrade from php 5.x to 7.x for nginx + php-fpm

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
15 posts
  • Previous
  • 1
  • 2
tegralens
Posts: 13
Joined: Fri Mar 23, 2018 3:13 pm

Os: CentOS 6x
Web: apache + nginx
Re: How to upgrade from php 5.x to 7.x for nginx + php-fpm
  • Quote

Post by tegralens » Fri Mar 23, 2018 3:14 pm

Any update on this ? I am also interested.
Top

lucasbustamante
Posts: 5
Joined: Sat Feb 04, 2017 7:35 pm

Re: How to upgrade from php 5.x to 7.x for nginx + php-fpm
  • Quote

Post by lucasbustamante » Sun Apr 15, 2018 5:10 pm

+1 on that, VestaCP is great, but it's time to update the PHP bundled with it.
Top

mehargags
Support team
Posts: 1096
Joined: Sat Sep 06, 2014 9:58 pm
Contact:
Contact mehargags
Website Skype

Os: Debian 8x
Web: apache + nginx
Re: How to upgrade from php 5.x to 7.x for nginx + php-fpm
  • Quote

Post by mehargags » Mon Apr 16, 2018 6:35 am

I'm sure someone updatded VestaCP internal PHP from 5 to 7. Can't remember exactly but I think someone did this long time back... you may want to search the forum.
Top

sly2000
Posts: 14
Joined: Mon Mar 27, 2017 11:15 am

Os: Ubuntu 15x
Web: nginx + php-fpm
Re: How to upgrade from php 5.x to 7.x for nginx + php-fpm
  • Quote

Post by sly2000 » Fri Aug 31, 2018 10:39 am

mehargags wrote: ↑
Tue Jan 09, 2018 7:54 am
First Remove PHP5

Code: Select all

apt-get remove --auto-remove php5-fpm
Presuming you are on Debian 8 and you want to install PHP 7.1 FPM

Add repo

Code: Select all

apt-get install apt-transport-https lsb-release ca-certificates
wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg
echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/php.list
apt-get update
Install PHP 7.1 FPM

Code: Select all

apt install -y php7.1-fpm
Install Supporting PHP7.1 modules

Code: Select all

apt install -y php7.1-xml php7.1-zip php7.1-mysql php7.1-curl php7.1-mbstring php7.1-json php7.1-gd php7.1-intl php7.1-mcrypt php7.1-xsl php7.1-soap php7.1-common php7.1-readline php7.1-cli php7.1-opcache php7.1-iconv php7.1-sqlite3 php7.1-imap

Code: Select all

ln -s /lib/systemd/system/php7.1-fpm.service /lib/systemd/system/php-fpm.service
It helped me! Thank you!
Мне это помогло! Спасибо!
Top

Nou4r
Posts: 35
Joined: Mon Feb 08, 2016 9:00 pm

Re: How to upgrade from php 5.x to 7.x for nginx + php-fpm
  • Quote

Post by Nou4r » Sat Nov 17, 2018 10:45 pm

mehargags wrote: ↑
Tue Jan 09, 2018 7:54 am
First Remove PHP5

Code: Select all

apt-get remove --auto-remove php5-fpm
Presuming you are on Debian 8 and you want to install PHP 7.1 FPM

Add repo

Code: Select all

apt-get install apt-transport-https lsb-release ca-certificates
wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg
echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/php.list
apt-get update
Install PHP 7.1 FPM

Code: Select all

apt install -y php7.1-fpm
Install Supporting PHP7.1 modules

Code: Select all

apt install -y php7.1-xml php7.1-zip php7.1-mysql php7.1-curl php7.1-mbstring php7.1-json php7.1-gd php7.1-intl php7.1-mcrypt php7.1-xsl php7.1-soap php7.1-common php7.1-readline php7.1-cli php7.1-opcache php7.1-iconv php7.1-sqlite3 php7.1-imap

Code: Select all

ln -s /lib/systemd/system/php7.1-fpm.service /lib/systemd/system/php-fpm.service
THis literally fucked up everything now.
Top


Post Reply
  • Print view

15 posts
  • Previous
  • 1
  • 2

Return to “Web Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

cron

Login  •  Register

I forgot my password