How To Install PHP 7.3 on CentOS 8

Install PHP 7.3 On CentOS 8

In this tutorial we will show you how to install and configuration of PHP 7.3 on your CentOS 8. For those of you who didn’t know, PHP (PHP: Hypertext Preprocessor) is a server-side scripting language designed for web development but also used as a general-purpose programming language. PHP code is interpreted by a web server with a PHP processor module, which generates the resulting web page: PHP commands can be embedded directly into an HTML source document rather than calling an external file to process data.

This article assumes you have at least basic knowledge of Linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple. I will show you through the step by step installation PHP 7.3 in CentOS 8 server.

Install PHP 7.3 On CentOS 8

Step 1. First you need to enable Remi and EPEL yum repositories on your system.

Step 2. Installing PHP 7.3 in CentOS 8.

First, enable php:remi-7.3 module to install PHP 7.3 using the following command:

Now we can install PHP 7.3 and some common extensions for it. We’re also installing these extensions because you’ll find that many software like CMS (WordPress, Joomla etc) require these extensions from time to time, so it’s good to have them readily installed:

Step 3. Verify Install PHP version.

Once it is completed, you can ensure that the latest stable release of PHP 7.3 is installed on your system by using the command:

To test PHP, create a test file named info.php with he content below. Save the file, then browse to it to see if PHP is working:

Congratulation’s! You have successfully installed PHP 7. Thanks for using this tutorial for installing PHP 7.3 on your CentOS 8 system. For additional help or useful information, we recommend you to check the official PHP website.

VPS Manage Service Offer
If you don’t have time to do all of this stuff, or if this is not your area of expertise, we offer a service to do “VPS Manage Service Offer”, starting from $10 (Paypal payment). Please contact us to get a best deal!