Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. LAMP
  3. LAMP PHP Set to 8.0. Doesn't update

LAMP PHP Set to 8.0. Doesn't update

Scheduled Pinned Locked Moved LAMP
7 Posts 3 Posters 1.3k Views 3 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • ghodgeonG Offline
    ghodgeonG Offline
    ghodgeon
    wrote on last edited by
    #1

    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.

    girishG 1 Reply Last reply
    0
    • girishG girish moved this topic from Support on
    • ghodgeonG ghodgeon

      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.

      girishG Offline
      girishG Offline
      girish
      Staff
      wrote on last edited by
      #2

      @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()

      ghodgeonG 1 Reply Last reply
      0
      • girishG girish

        @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()

        ghodgeonG Offline
        ghodgeonG Offline
        ghodgeon
        wrote on last edited by
        #3

        @girish set 8.0 in the file with nano. Restarted the app and checked in the CLI which version was running. Says 7.4…

        girishG ghodgeonG 2 Replies Last reply
        0
        • ghodgeonG ghodgeon

          @girish set 8.0 in the file with nano. Restarted the app and checked in the CLI which version was running. Says 7.4…

          girishG Offline
          girishG Offline
          girish
          Staff
          wrote on last edited by girish
          #4

          @ghodgeon that is expected. There are two separate binaries: php and php8.0. The latter is php 8.0. What the PHP_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 a test.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>
          
          micmcM 1 Reply Last reply
          1
          • girishG girish

            @ghodgeon that is expected. There are two separate binaries: php and php8.0. The latter is php 8.0. What the PHP_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 a test.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>
            
            micmcM Offline
            micmcM Offline
            micmc
            wrote on last edited by
            #5

            @girish said in LAMP PHP Set to 8.0. Doesn't update:

            <?php echo PHP_VERSION ?>

            Simply the above in a whatever .php extension file will do it. 🙂

            Ignorance is not an excuse anymore!
            https://AutomateKit.com

            1 Reply Last reply
            0
            • ghodgeonG ghodgeon

              @girish set 8.0 in the file with nano. Restarted the app and checked in the CLI which version was running. Says 7.4…

              ghodgeonG Offline
              ghodgeonG Offline
              ghodgeon
              wrote on last edited by
              #6

              @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.
              girishG 1 Reply Last reply
              0
              • ghodgeonG ghodgeon

                @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.
                girishG Offline
                girishG Offline
                girish
                Staff
                wrote on last edited by
                #7

                @ghodgeon said in LAMP PHP Set to 8.0. Doesn't update:

                COMPOSER_MEMORY_LIMIT=-1 composer create-project pimcore/demo my-project

                Can you try:

                COMPOSER_MEMORY_LIMIT=-1 php8.0 /usr/bin/composer create-project pimcore/demo my-project
                
                1 Reply Last reply
                1
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Bookmarks
                • Search