We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on v1 candidate and expect to engage more with the community over the coming months. We are committed to open source, and we encourage contributors to help us build the future of Vesta.
How to upgrade from php 5.x to 7.x for nginx + php-fpm
Re: How to upgrade from php 5.x to 7.x for nginx + php-fpm
Any update on this ? I am also interested.
-
- 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
+1 on that, VestaCP is great, but it's time to update the PHP bundled with it.
-
- Support team
- Posts: 1096
- Joined: Sat Sep 06, 2014 9:58 pm
- Contact:
- Os: Debian 8x
- Web: apache + nginx
Re: How to upgrade from php 5.x to 7.x for nginx + php-fpm
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.
Re: How to upgrade from php 5.x to 7.x for nginx + php-fpm
It helped me! Thank you!mehargags wrote: ↑Tue Jan 09, 2018 7:54 amFirst Remove PHP5Presuming you are on Debian 8 and you want to install PHP 7.1 FPMCode: Select all
apt-get remove --auto-remove php5-fpm
Add repoInstall PHP 7.1 FPMCode: 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 Supporting PHP7.1 modulesCode: Select all
apt install -y php7.1-fpm
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
Мне это помогло! Спасибо!
Re: How to upgrade from php 5.x to 7.x for nginx + php-fpm
THis literally fucked up everything now.mehargags wrote: ↑Tue Jan 09, 2018 7:54 amFirst Remove PHP5Presuming you are on Debian 8 and you want to install PHP 7.1 FPMCode: Select all
apt-get remove --auto-remove php5-fpm
Add repoInstall PHP 7.1 FPMCode: 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 Supporting PHP7.1 modulesCode: Select all
apt install -y php7.1-fpm
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