LAMP PHP Set to 8.0. Doesn't update
On restart and PHP -V I still get
7.4 not 8.0 despite /app/data/PHP_VERSION showing =8.0
I've tried restarting, creating a new LAMP, update checking, etc.
@ghodgeon I guess you are referring to the CLI? You have to use php8.0 explicitly for the CLI. The apache module should be using php 8.0 though. You can verify this using
@girish set 8.0 in the file with nano. Restarted the app and checked in the CLI which version was running. Says 7.4…
@ghodgeon that is expected. There are two separate binaries:
php8.0. The latter is php 8.0. What the
PHP_VERSIONdoes is to switch the apache php version (not the cli php version). What do you see in the index.php (the default one?) ? Or you can try a
test.phplike this and load the page via the browser and not the CLI:
<html> <body> <h1>Cloudron LAMP App (PHP <?php echo PHP_VERSION ?>)</h1> </body> </html>
micmc last edited by
@ghodgeon that is expected.
I was hoping to install PimCore using composer
COMPOSER_MEMORY_LIMIT=-1 composer create-project pimcore/demo my-project
Only, I get the error my PHP version is 7.4
- pimcore/pimcore[v10.0.0-BETA1, ..., 10.x-dev] require php ^8.0 -> your php version (7.4.23) does not satisfy that requirement.