Install PHP 7.3 in CentOS 8

CentOS 8 comes with PHP 7.2. To install PHP 7.3, you need to enable remi repo. You can download remi-release rpm file from

http://rpms.remirepo.net

Download and install remi-release rpm

if you have older php version and don’t want to keep it, uninstall it with

Install PHP 7.3

Set it as default PHP version

Install PHP modules

Install php-fpm package

set php-fpm to start on boot

Start php-fpm

Restart Apache

PHP 7.3 php.ini located at

Module directory for PHP 7.3 at

Related Posts

CentOS 8

PHP

CentOS 8 software selection

Install CentOS 8 from Net boot ISO

CentOS 8 provide 2 type of ISO. One that ends with boot.iso, this is 534 MB. This only include essential files to get you started with installation. This installation method require internet connection as files needed to be downloaded from internet. Other ISO file is full install media, that is 6.6 GB in size. To install from boot.iso, download it from

http://isoredirect.centos.org/centos/8/isos/x86_64/

This page will list morrors near to you.

CentOS download mirror

Click on any of the morror from link, on next page, you will see ISO files. Download CentOS-8-x86_64-xxxx-boot.iso

CentOS 8 download ISO

Write this ISO file into a USB drive or DVD, then boot your computer with it. You will see following screen.

CentOS 8 install

Select first or second option. 2nd option test install media for any errors. If you use USB drive, you can just select option 1 as there is less chance of media corruption compared to DVD drives.

centos 8 language

Select language, click continue.

CentOS 8 installation

On this screen, you need to make several choices.

Installation Destination

Select the hard disk where you need CentOS 8 installed.

CentOS 8 disk

If you have an empty disk, all you need to do is click “Done”.

If your disk have existing partitions, you may need to delete it before insalling CentOS 8. If you have any data on this hard disk, always take a backup before you installing new OS.

Network & Host Name

You need to configure your network. Most of the time all you need to do is click on ON/OFF toggle on right side of the network interface.

CentOS 8 Network

If you have DHCP on your network, you will see IP address assigned to your computer. If not, you need to manually configure networking. It is important as you will need internet to do CentOS 8 install using boot ISO file. Click Done to go back to previous screen.

Installation Source

On this page, you need to enter a CentOS mirror. You can use following URL

CentOS 8 installation source

It is better to use a CentOS mirror near to you. This will make file downloads faster. In my case, i used

There is option to select mirror near you on this screen. But for some reason, this option did not work for me.

Software Slection

On this screen, you need to select software to install.

CentOS 8 software selection

You can select if you need to install GUI or just minimal CentOS install. I selected minimal install as everything else can be installed later as needed.

Click “Done”, will take you to previous screen. Now you will see “Begin Installation” button enabled. Click on it to continue installation.

On next screen, you get option to set password. Set password for user root. You can also create a new user if required.

Installation take 15 to 30 minutes depending on your download speed. Once installation completed, you will be asked to reboot.

CentOS 8 use Kernel 4.18

You can use both yum and dnf for installing software.