-
G girish moved this topic from Support on
-
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
phpinfo()
-
@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:
php
andphp8.0
. The latter is php 8.0. What thePHP_VERSION
does 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 atest.php
like 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>
-
@ghodgeon that is expected. There are two separate binaries:
php
andphp8.0
. The latter is php 8.0. What thePHP_VERSION
does 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 atest.php
like 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>
-
@girish set 8.0 in the file with nano. Restarted the app and checked in the CLI which version was running. Says 7.4…
@girish said in LAMP PHP Set to 8.0. Doesn't update:
@ghodgeon that is expected.
Oh?
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
Problem 1
- pimcore/pimcore[v10.0.0-BETA1, ..., 10.x-dev] require php ^8.0 -> your php version (7.4.23) does not satisfy that requirement.
-
@girish said in LAMP PHP Set to 8.0. Doesn't update:
@ghodgeon that is expected.
Oh?
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
Problem 1
- pimcore/pimcore[v10.0.0-BETA1, ..., 10.x-dev] require php ^8.0 -> your php version (7.4.23) does not satisfy that requirement.