PHP version change, like the LAMP app?
-
Hi there,
Curious... are we able to change the PHP version in the WordPress app just like we can in the LAMP app? (https://docs.cloudron.io/apps/lamp/#supported-php-versions)
If not, is it possible to perhaps add that type of functionality from the LAMP app in other PHP-based app packages?
-
This should be possible. What's the use case though? WP is not fully compatible with PHP 8 or 8.1 at this point.
-
@girish Ah interesting read. It may not be fully compatible but is still running fine for many people on PHP 8.0 from what I've been reading in various FB groups, plus it's still a supported version of PHP for WordPress whether fully compatible or not. A few of the page builders I use (namely Bricks and Oxygen) are now PHP 8.0 compatible and all the plugins I use appear to be too, so figured I may as well upgrade to 8.0 for the bit of performance improvements.
I think ideally though that's where you could use the same formula you have for the LAMP app where it's 7.9 by default and can only be 8.0 once it's configured to be so manually using that switch you added. For consistency sake, I'd think that should perhaps be added to all PHP-based apps, but that's just my two cents.
-
@d19dotca Not opposed to it. We will move to Ubuntu 22 based image in the recent future, we can have multiple PHP versions in the base image itself.
-
@girish said in PHP version change, like the LAMP app?:
This should be possible. What's the use case though? WP is not fully compatible with PHP 8 or 8.1 at this point.
However WP 6 is rolling out right now, I haven't checked yet, but I guess it should be fully compatible now... we've yet to see...
-
@girish said in PHP version change, like the LAMP app?:
@d19dotca Not opposed to it. We will move to Ubuntu 22 based image in the recent future, we can have multiple PHP versions in the base image itself.
That'd be awesome!
Thanks Girish!