Question

wordpress on centos

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

Subscribe
Share

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.

Hello,

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 http://vault.centos.org/7.0.1406/extras/x86_64/Packages/epel-release-7-5.noarch.rpm

Instal the remi repository

rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm

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.

Alex

Hello,

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

https://www.digitalocean.com/community/tutorials/how-to-upgrade-to-php-7-on-centos-7

Hope that this helps! Regards, Bobby