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

Submit an answer

This textbox defaults to using Markdown to format your answer.

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

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.


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! Regards, Bobby