FIX PROBLEM : Your server is running PHP version 5.1.6 but WordPress 3.2.1 requires at least 5.2.4.

Not for all it is known that in order to install or to do upgrade-to a newer version of 3.2, it is necessary that on to be installed a newer version of 5.2.4.

If a version of PHP older than 5.2.4 is installed on the server, when installing the version of WordPress 3.2.1, will appear FAILURE / mesajul:Your server is running PHP version 5.1.6 but WordPress 3.2.1 requires at least 5.2.4“.
The problem can be solved very simply, by PHP upgrade, but before doing so a few things must be considered. First of all, the upgrade of PHP is excluded on a Share Hosting. To be able to upgrade you must have access to the server (dedicated server or VPS). Secondly, before upgrade you have to document and pay attention to the new version of PHP not to give Errors to other Hostate sites on that server.

Because is the operating system most used for Web servers (Add if from / WHM) we will show you how it can be done upgrade-ul la PHP 5.2.10 pe CentOS 5.x 32-bit.

Upgrade PHP 5.1.x la 5.2.x pe CentOS 5.x 32-bit

1. We check which PHP packages / modules are installed (eg PHP-Mcrypt) besides the standard pack. If they exist, they will have to be deleted or actuated.

We check the installed packages:

rpm -qa | grep php
old_php_version

2. We add new archives for , necessary upgradeof the PhP version.

nano /etc/yum.repos.d/CentOS-Testing.repo

In the newly created file (Centos-testing.repo) will add the lines below (copy / paste):

[c5-testing] 
name=CentOS-5 Testing 
baseurl=http://dev.centos.org/centos/$releasever/testing/$basearch/ 
enabled=1 
gpgcheck=1 
gpgkey=http://dev.centos.org/centos/RPM-GPG-KEY-CentOS-testing 
includepkgs=php*

Ctrl + X to save the Centos Testing.repo file.

3. Update PHP via yum :

yum update

4. Restart / httpd :

service httpd restart

After Restart HTTPD check the version and packages installed:

new_php_version

Check if there are errors of modules / packs:

php -v

PHP Upgrade / CentOS 32-bit (i386).

Founder and editor Stealth Settings, din 2006 pana in prezent. Experienta pe sistemele de operare Linux (in special CentOS), Mac OS X , Windows XP > Windows 10 si WordPress (CMS).

Home » Your source of IT tutorials, useful tips and news. » FIX PROBLEM : Your server is running PHP version 5.1.6 but WordPress 3.2.1 requires at least 5.2.4.
Leave a Comment