The PHP is an open-source server-side scripting language that suits to web development. The PHP finally released on November 26th, 2020 with lots of improvement and optimization. Show This blog helps you to install PHP 8 on CentOS/RHEL 8/7. If you are looking for PHP installation and server management, please contact our expert team to get it done on behalf of you. you can also refer our server management plan for further assistance. Step 1: Enable EPEL repository on CentOS Enable the EPEL repository into your system. The EPEL provides the extra packages for enterprise Linux that are not available by default on CentOS/RHEL.
The Remi repository which is a third-party repository that provides wide ranges of PHP version.
Step 2: Install PHP 8 on CentOS/ RHEL
Right side at the bottom, ensure to note the Remi-8.0 PHP module. Enable the module before installing the PHP 8.0. To enable the PHP: Remi-8.0 execute the following command. Install PHP 8.0 for Apache. Run the following command to executive the 8.0 for Apache.
Installing PHP 8.0 for Nginx
Step 3: Verify php 8.0 on centOS/RHEL
Add the following PHP code to populate the version of PHP.
Add and exit and ensure to restart the Apache or Nginx web server.
Paste the URL on the browser and go to the address shown.
It displays a website that consists of information regarding the PHP that has been installed. Step 4: Install PHP 8.0 extentions in centOS/RHEL Use the following commands to verify the installed PHP extensions.
Finally, you can verify the installed extensions by following the command:
Execute, to verify specific extensions is installed.
For example:
Conclusion: This blog will help you to install the PHP 8.0 alongside various PHP extensions on Centos/RHEL. Follow the step if any error occurs you can contact our technical team support available 24/7 for any assistance. What version of PHP comes with RHEL 8?The version of PHP supplied by default in RHEL 8 / CentOS 8, from the AppStream repository is 7.2.
Is PHP 7.4 available in Red Hat Enterprise Linux 7?No translations currently exist.
What is Rhel 8 based on?RHEL 8. Red Hat Enterprise Linux 8 (Ootpa) is based on Fedora 28, upstream Linux kernel 4.18, GCC 8.2, glibc 2.28, systemd 239, GNOME 3.28, and the switch to Wayland. The first beta was announced on November 14, 2018. Red Hat Enterprise Linux 8 was officially released on May 7, 2019.
What version of PHP comes with CentOS 8?By default, PHP version 7.2 installed on CentOS 8 Linux.
|