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.
Обновление php-fm 7.x
Обновление php-fm 7.x
Установил vestacp (ngnix+hp-fm). По умолчанию стоит php 5.6, а мне для корректной работы нужен php 7. Как обновить? ОС CentOS 7
-
- Posts: 49
- Joined: Tue Nov 08, 2016 11:33 pm
- Os: CentOS 6x
- Web: nginx + php-fpm
Re: Обновление php-fm 7.x
Upgrading PHP
We’ve wrote a much more detailed post on how to do this before, we’ll go over it quickly here too.
Make sure everything is up to date.
Now install yum-utils so that we can replace the currently installed version of PHP.
This is where Remi is used, you should have installed it with VestaCP but if not do this first then continue.
Enable the PHP 7 in Remi.
Now update Yum to apply the change.
Restart PHP.
Check the new version that you have installed.
Now disable the old versions of PHP.
We’ve wrote a much more detailed post on how to do this before, we’ll go over it quickly here too.
Make sure everything is up to date.
Code: Select all
sudo yum update
Code: Select all
sudo yum install yum-utils
Enable the PHP 7 in Remi.
Code: Select all
sudo yum-config-manager --enable remi-php70
Code: Select all
sudo yum update
Code: Select all
sudo service php-fpm restart
Code: Select all
php -v
Code: Select all
sudo yum-config-manager --disable remi-php56 && sudo yum-config-manager --disable remi-php55 && sudo yum-config-manager --disable remi-php56-debuginfo && sudo yum-config-manager --disable remi-php55-debuginfo
sudo yum clean all
sudo yum update