Update the PHP version on CentOS 7

Install PHP, enter the following command:

# yum install php php-mcrypt php-cli php-gd php-curl php-mysql php-ldap php-zip php-fileinfo

Check the current PHP version:
# php -v

Enabling the Remi repository:
# yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm

Installing yum-utils:
# yum install yum-utils

yum-utils includes a yum-config-manager that can be used to enable Remi as the default repository for installing various versions of PHP.

If you want to install PHP updates on CentOS 7, just enable it as shown below:

# yum-config-manager --enable remi-php71
# yum-config-manager --enable remi-php72 
# yum-config-manager --enable remi-php73
# yum-config-manager --enable remi-php74

Choose for example PHP 7.4
# yum-config-manager --enable remi-php74

Updating:
# yum update

Check the PHP version again:

# php -v

  • 0 Bu dökümanı faydalı bulan kullanıcılar:
Bu cevap yeterince yardımcı oldu mu?

İlgili diğer dökümanlar

How to get a trial period VPS / VDS?

We provide a test server for a period of up to 1 day.To receive trial period VPS / VDS you need:...

The reinstallation of the server via the VPS control panel

If you need to reinstall the operating system or change it to a different version, you can do...

Connection to the server through Remount Desktop

In order to allow the connection, you need to do the following: To get started, we connect to...

Hard disk volume check. How to Extend Drive in Windows.

To check the amount of hard disk space on the server, click the start menu, open Administrative...

Reinstallation CentOS 7 64bit

Go to the VPS Control Panel, select CentOS 7 64bit Minimal, check the box and click Reinstall....