PHP Version for WordPress Developer
-
I think I understood, that I can't choose the PHP version in WordPress Developer?
So whats the strategy of PHP updates here - currently its PHP8.1. Will it always be 1-2 Versions behind?
@dsp76 yeah, I think @staff really ought to make PHP version configurable for the WordPress apps, just like it is with the LAMP app (as per https://docs.cloudron.io/apps/lamp/#supported-php-versions )
-
A new base image (5.0.0) is coming which will be Ubuntu 8.3 by default and Ubuntu 24.04. This will happen in the coming month or two.
-
Just checked: php 8.3.6 to be exact.
-
@girish thanks for the update - any chance of making it configurable though? WP plugins quite often want a specific version.
-
@girish thanks for the update - any chance of making it configurable though? WP plugins quite often want a specific version.
@jdaviescoates that will complicate the packaging and testing of WP app packages. But also, I recall people wanted old version of PHP like php 5, php 8.0 etc for WP. Installing old PHP versions for corner cases will bloat the WP package and also break their installs when we remove old php (unless we keep every php forever). If we remove a PHP version, is it a major bump? If major bump, all users of WP have to manually update. It's just a lot of work for what we think is a corner case.
I think for such cases where a specific PHP version is desired, it's best if people use LAMP app, choose whichever PHP and install WP themselves .
Do we have examples of popular plugins requiring specific PHP versions in WordPress?
-
If we go by this , 8.1 is still the most used - https://stitcher.io/blog/php-version-stats-january-2024
-
@jdaviescoates that will complicate the packaging and testing of WP app packages. But also, I recall people wanted old version of PHP like php 5, php 8.0 etc for WP. Installing old PHP versions for corner cases will bloat the WP package and also break their installs when we remove old php (unless we keep every php forever). If we remove a PHP version, is it a major bump? If major bump, all users of WP have to manually update. It's just a lot of work for what we think is a corner case.
I think for such cases where a specific PHP version is desired, it's best if people use LAMP app, choose whichever PHP and install WP themselves .
Do we have examples of popular plugins requiring specific PHP versions in WordPress?
@girish said in PHP Version for WordPress Developer:
It's just a lot of work for what we think is a corner case.
I think for such cases where a specific PHP version is desired, it's best if people use LAMP app, choose whichever PHP and install WP themselves .
Do we have examples of popular plugins requiring specific PHP versions in WordPress?
Fair enough. I don't have specific examples to give, nor the current need myself, just thought it'd be nice to have and easy enough feature to add and wasn't really thinking about the consequences