wordpress on centos

August 2, 2019 192 views
Applications 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

2 Answers

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

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.

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

Have another answer? Share your knowledge.