wordpress on centos

Posted August 2, 2019 3.6k views

Your server is running PHP version 5.4.16 but WordPress 5.2.2 requires at least 5.6.20.
hello i follow exactly how to install wordpress on Centos
i always received this in the web browser and i cant find new version of php what can i do thank u

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
2 answers


May I ask if you’re using Apache or Nginx and if you’re running CentOS or Ubuntu and which version as well?

You can follow these steps to install PHP 5.6 on CentOS 7

First install the EPEL repository:

rpm -Uvh

Instal the remi repository

rpm -Uvh

Enable remi

yum --enablerepo=remi,remi-php56 install php php-common

Install PHP 5.6

yum --enablerepo=remi,remi-php56 install php-cli php-pear php-pdo php-mysql php-mysqlnd php-pgsql php-sqlite php-gd php-mbstring php-mcrypt php-xml php-simplexml php-curl php-zip

systemctl restart httpd.service

If you have any server panel you should see PHP 5.6 as available and if not you can use .htaccess file to make 5.6 default for your site.

AddHandler application/x-httpd-php56 .php 

Let me know how it goes.



You can follow the steps here on how to upgrade your PHP version on a CentOS server:

Hope that this helps!

by Brennen Bearnes
PHP 7.0 was released on December 3, 2015. It promises substantial speed improvements over previous versions of the language, along with new features like scalar type hinting. This guide explains how to quickly upgrade a PHP 5.x installation on a CentOS 7 system with Apache or Nginx, using community-provided packages.