Upgrade PHP Version

WholesaleDialup

Verified User
Joined
Sep 25, 2004
Messages
179
Location
San Antonio, TX
I keep getting this message in Wordpress sites:
You cannot update because WordPress 5.2.1 requires PHP version 5.6.20 or higher

I checked my PHP version at the command line and it shows:
PHP 5.5.38 (cli) (built: May 22 2019 21:49:29)

I followed the instructions in several post from your community forums and restarted Apache but still the version on the web and command line stays the same after following all instructions even though the procedure appears to complete without error.

I then found and followed these instructions from your knowledge-base:
https://help.directadmin.com/item.php?id=26

But still version stays the same at the command line and web version, no luck.

I have tried several other methods.

I don't need to run multiple versions of PHP, I prefer just to update everything to 5.6.20 or higher, 7.x would be fine.

I can follow general instructions to upgrade PHP but I prefer to do this in a "DirectAdmin" way using custom build 2 or some other method that won't leave my DA install a mess and break everything. I would like Apache and everything to all stay compatible with each other and not cause myself more issues.

If I have tried the method to update and build all using custom update and it didn't work, what is recommended at this point for an easy, issue free PHP upgrade?

Thanks for your assistance.
 
Hello,

Run:

Code:
cd /usr/local/directadmin/custombuild/
./build update
./build set php1_release 7.1
./build php

and show last 10-20 lines from the final command, as well as
Code:
php -v
 
Back
Top