PHP Version for WordPress Developer
-
wrote on Feb 9, 2025, 10:31 PM last edited by
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?
-
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?
wrote on Feb 10, 2025, 9:42 AM last edited by@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 )
-
wrote on Feb 10, 2025, 12:27 PM last edited by
@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?
wrote on Feb 10, 2025, 4:07 PM last edited by@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