I have an old server that runs important PHP aplication that required PHP 5.2.17. What is the newest WordPress that I can install on it?
2 Answers
I think you're looking at this the wrong way.
Having an old application that requires such a archaic PHP version is bad enough. That does not mean, your new WordPress installation needs to use that same old version though. Instead, I would suggest to keep PHP 5.2.17 for the legacy application and use the latest PHP version for WordPress.
There are various ways to do this, it all depends on how exactly your server is set up.
Check this answer from StackOverflow for an Apache way. It generally boils down to
AddHandler
andSetHandler
.This answer from ServerFault explains how to solve it via NGINX. The main idea it seems is to access other ports via
fastcgi_pass
.
-
This is most helpful. I didn't know this was possible. - Quick Q without reading into the documentation - do you happen to know offhand if this is possible on Cpanel?– mrmutNov 27, 2019 at 13:09
-
1AFAIK cpanel is only a server management tool, so the answer would be "yes, but it depends on your cpanel/server configuration". If you're not the server administrator, contact that person / your hosting provider for guidance on the specifics.– keroNov 27, 2019 at 13:18
-
Based on the PHP compatibility chart, WordPress version 5.1 is the last version to support PHP 5.2.