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
  • Brite
  • 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 - Status | Demo | Docs | Install
  1. Cloudron Forum
  2. LAMP
  3. CLI points to php8.1 although PHP8.2 is set

CLI points to php8.1 although PHP8.2 is set

Scheduled Pinned Locked Moved Solved LAMP
5 Posts 2 Posters 1.4k Views 2 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.
  • W Offline
    W Offline
    warg
    wrote on last edited by warg
    #1

    Hello,

    when you change PHP version to 8.2, PHP is executing PHP scripts with 8.2 but the CLI returns via "php -v" version 8.1. I think both should return v8.2 then.

    Best Regards,

    1 Reply Last reply
    0
    • girishG Offline
      girishG Offline
      girish
      Staff
      wrote on last edited by
      #2

      Yes, it's documented here - https://docs.cloudron.io/apps/lamp/#supported-php-versions . Bit unfortunate... It's like that because the filesystem is readonly and the symlink cannot be adjusted (easily) at runtime.

      1 Reply Last reply
      0
      • W Offline
        W Offline
        warg
        wrote on last edited by warg
        #3

        I'm not sure if we mean the same. I don't expect the CLI to be up2date during runtime. For changing the PHP version I have to reboot the app anyway. Shouldn't it be possible to have the CLI path/version to be based on a variable which is taken from the PHP version file you edit in the file manager?

        EDIT: Just saw that you refer to the warning box I've missed.

        1 Reply Last reply
        1
        • girishG Offline
          girishG Offline
          girish
          Staff
          wrote on last edited by
          #4

          We mean the same. I understand what you said . We can fix it but in ubuntu (the docker base image) the symlinks are static and don't switch at run time based on selected version.

          1 Reply Last reply
          0
          • W Offline
            W Offline
            warg
            wrote on last edited by
            #5

            I see. Thank you for the explanation. I wasn't aware of the Ubuntu-specifica.

            1 Reply Last reply
            0
            • W warg marked this topic as a question on
            • W warg has marked this topic as solved on

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            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