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


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    Update to PHP8

    LAMP
    6
    9
    544
    Loading More Posts
    • 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.
    • argovaerts
      argovaerts last edited by

      PHP8 has been stable for some time now.

      What is the timeframe to update the app to PHP8?

      (Or is there a quick fix possible?)

      1 Reply Last reply Reply Quote 0
      • nebulon
        nebulon Staff last edited by

        Given that the LAMP app is kind of for special case php apps, we will likely release a new version with php8 which will not update from the php7 one to stay backwards compatible. There is currently no timeframe though when this will happen.

        If you want to experiment on your own, you can clone the repo at https://git.cloudron.io/cloudron/lamp7.4-app and adjust the Dockerfile to use php8

        robi 1 Reply Last reply Reply Quote 2
        • robi
          robi @nebulon last edited by

          @nebulon Can multiple PHP versions be included in the same image?

          Then the apps choose what to run.

          Life of Advanced Technology

          murgero 1 Reply Last reply Reply Quote 0
          • murgero
            murgero App Dev @robi last edited by

            @robi yes. PHP supports multi-install.

            --
            https://urgero.org
            ~ Professional Nerd. Freelance Programmer. ~
            Matrix: @murgero:urgero.org

            robi 1 Reply Last reply Reply Quote 0
            • robi
              robi @murgero last edited by

              @murgero Then we only need one LAMP app with a few PHP versions for all.

              Life of Advanced Technology

              girish 1 Reply Last reply Reply Quote 0
              • girish
                girish Staff @robi last edited by

                @robi @murgero Indeed. That sounds like a good idea. When we started out, I didn't expect any demand for specific PHP versions. Let me see if I can enhance the current app package to have PHP8 as well.

                darkben 1 Reply Last reply Reply Quote 4
                • darkben
                  darkben @girish last edited by

                  @girish hi, it will be amazing if we could have multiple php version on a LAMP app and switch between them. We could upgrade without having to reinstall our work on a new LAMP. Big +1

                  1 Reply Last reply Reply Quote 0
                  • girish
                    girish Staff last edited by

                    OK, I have pushed the changes for this at https://git.cloudron.io/cloudron/lamp7.4-app. I have to fix up the tests and will publish it tomorrow. Essentially, there is a file that you have to edit to change the version and restart the app.

                    1 Reply Last reply Reply Quote 1
                    • girish
                      girish Staff last edited by

                      @argovaerts @darkben The latest package supports PHP 8. See https://docs.cloudron.io/apps/lamp/#supported-php-versions on how to switch.

                      1 Reply Last reply Reply Quote 1
                      • First post
                        Last post
                      Powered by NodeBB