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. 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 763 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
            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