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. WordPress (Developer)
  3. PHP version change, like the LAMP app?

PHP version change, like the LAMP app?

Scheduled Pinned Locked Moved WordPress (Developer)
19 Posts 5 Posters 3.1k Views 5 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.
  • d19dotcaD d19dotca

    @girish was there any progress on this one? Doesn’t seem we have PHP 8 supported yet on the packaged app for WordPress Developer.

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

    @d19dotca yeah, I will switch the default for a start to PHP 8. PHP 7.4 EOL is coming up in 15 days or so.

    d19dotcaD 1 Reply Last reply
    3
    • girishG girish

      @d19dotca yeah, I will switch the default for a start to PHP 8. PHP 7.4 EOL is coming up in 15 days or so.

      d19dotcaD Offline
      d19dotcaD Offline
      d19dotca
      wrote on last edited by d19dotca
      #9

      @girish Ah okay, so in that case I guess this will be a “manual intervention required” type of update rather than automatic? And no way to switch back inside of the app itself but would have to deploy the older image if compatibility issues exist? If plugins are up to date it likely won’t be a problem but anyone relying on older rarer plugins I could assume will experience issues. Thankfully all mine are pretty current plug-ins so I’m not anticipating any issues and am actually looking forward to the performance improvements with PHP 8. 🙂

      --
      Dustin Dauncey
      www.d19.ca

      girishG 1 Reply Last reply
      0
      • d19dotcaD d19dotca

        @girish Ah okay, so in that case I guess this will be a “manual intervention required” type of update rather than automatic? And no way to switch back inside of the app itself but would have to deploy the older image if compatibility issues exist? If plugins are up to date it likely won’t be a problem but anyone relying on older rarer plugins I could assume will experience issues. Thankfully all mine are pretty current plug-ins so I’m not anticipating any issues and am actually looking forward to the performance improvements with PHP 8. 🙂

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

        @d19dotca yeah, I pushed updates for LAMP and both WP just some time back. They are major upgrades.

        1 Reply Last reply
        1
        • martinkbsM Offline
          martinkbsM Offline
          martinkbs
          wrote on last edited by
          #11

          Hi guys,

          Is there any progress on this issue?

          It would be nice to have the possibility of choosing the PHP version in the WordPress Developer application so that updates do not accumulate.

          In some complex WordPress installations, where there are plugins that the developer has not yet adapted to the PHP 8.1 version, they already accumulate 4 updates (3.0.0, 3.0.1, 3.0.2 and 3.0.3) without any possible alternative to update them.

          Is there any estimation of what version will be available?

          Thanks team!

          girishG 1 Reply Last reply
          0
          • martinkbsM martinkbs

            Hi guys,

            Is there any progress on this issue?

            It would be nice to have the possibility of choosing the PHP version in the WordPress Developer application so that updates do not accumulate.

            In some complex WordPress installations, where there are plugins that the developer has not yet adapted to the PHP 8.1 version, they already accumulate 4 updates (3.0.0, 3.0.1, 3.0.2 and 3.0.3) without any possible alternative to update them.

            Is there any estimation of what version will be available?

            Thanks team!

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

            @martinkbs Are you asking for PHP 7.4 for WordPress ? It reached EOL in Nov 2022 - https://www.php.net/eol.php .

            martinkbsM 1 Reply Last reply
            0
            • girishG girish

              @martinkbs Are you asking for PHP 7.4 for WordPress ? It reached EOL in Nov 2022 - https://www.php.net/eol.php .

              martinkbsM Offline
              martinkbsM Offline
              martinkbs
              wrote on last edited by
              #13

              Hi @girish,

              Yes, I am aware of that. But it would be nice to have the possibility of php version choice like in LAMP application.

              Even if the WordPress Developer application is installed by default on version 8.1, that somehow it can be downgraded to version 7.4 for those installations that have plugins or themes that have not yet been adapted by their developers.

              I know I can migrate WordPress installations to a LAMP application, but this way I would lose WP-CLI functionality, and that is something important to keep automations with n8n.

              girishG 1 Reply Last reply
              0
              • martinkbsM martinkbs

                Hi @girish,

                Yes, I am aware of that. But it would be nice to have the possibility of php version choice like in LAMP application.

                Even if the WordPress Developer application is installed by default on version 8.1, that somehow it can be downgraded to version 7.4 for those installations that have plugins or themes that have not yet been adapted by their developers.

                I know I can migrate WordPress installations to a LAMP application, but this way I would lose WP-CLI functionality, and that is something important to keep automations with n8n.

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

                @martinkbs mmm, have to think about the viability of this. Every passing day makes 7.4 more unsupportable. In fact, 7.4 doesn't exist in ubuntu core repos and this complicates the WP app packaging. We use this PPA. This is actually why we rushed updating all our apps to base image 4.0 which has PHP 8 and removed the ondrej repo. I think if WP itself didn't support PHP 8, this decision might have been simpler. But this is some plugin of WP...

                For wp-cli, you only need to get the phar file in https://github.com/wp-cli/wp-cli/releases/ . It's a single file you can put somewhere in /app/data and run .

                martinkbsM 1 Reply Last reply
                0
                • girishG girish

                  @martinkbs mmm, have to think about the viability of this. Every passing day makes 7.4 more unsupportable. In fact, 7.4 doesn't exist in ubuntu core repos and this complicates the WP app packaging. We use this PPA. This is actually why we rushed updating all our apps to base image 4.0 which has PHP 8 and removed the ondrej repo. I think if WP itself didn't support PHP 8, this decision might have been simpler. But this is some plugin of WP...

                  For wp-cli, you only need to get the phar file in https://github.com/wp-cli/wp-cli/releases/ . It's a single file you can put somewhere in /app/data and run .

                  martinkbsM Offline
                  martinkbsM Offline
                  martinkbs
                  wrote on last edited by
                  #15

                  @girish I am trying to install wp-cli in the LAMP application and I get the following error:

                  root@5cc74b02-ed2a-49ee-8fc8-0b1f780425e6:/app/code# cd /app/data
                  root@5cc74b02-ed2a-49ee-8fc8-0b1f780425e6:/app/data# curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
                    % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                                   Dload  Upload   Total   Spent    Left  Speed
                  100 6571k  100 6571k    0     0  19.6M      0 --:--:-- --:--:-- --:--:-- 19.6M
                  root@5cc74b02-ed2a-49ee-8fc8-0b1f780425e6:/app/data# php wp-cli.phar --info
                  OS:     Linux 5.15.0-57-generic #63-Ubuntu SMP Thu Nov 24 13:43:17 UTC 2022 x86_64
                  Shell:
                  PHP binary:     /usr/bin/php8.1
                  PHP version:    8.1.13
                  php.ini used:   /etc/php/8.1/cli/php.ini
                  MySQL binary:   /usr/bin/mysql
                  MySQL version:  mysql  Ver 8.0.31-0ubuntu0.22.04.1 for Linux on x86_64 ((Ubuntu))
                  SQL modes:
                  WP-CLI root dir:        phar://wp-cli.phar/vendor/wp-cli/wp-cli
                  WP-CLI vendor dir:      phar://wp-cli.phar/vendor
                  WP_CLI phar path:       /app/data
                  WP-CLI packages dir:
                  WP-CLI cache dir:       /root/.wp-cli/cache
                  WP-CLI global config:
                  WP-CLI project config:
                  WP-CLI version: 2.7.1
                  root@5cc74b02-ed2a-49ee-8fc8-0b1f780425e6:/app/data# chmod +x wp-cli.phar
                  root@5cc74b02-ed2a-49ee-8fc8-0b1f780425e6:/app/data# sudo mv wp-cli.phar /usr/local/bin/wp
                  mv: inter-device move failed: 'wp-cli.phar' to '/usr/local/bin/wp'; unable to remove target: Read-only file system
                  

                  I have tried moving it to the /app/data directory itself, but it doesn't work:

                  root@5cc74b02-ed2a-49ee-8fc8-0b1f780425e6:/app/data# sudo mv wp-cli.phar /app/data/wp
                  root@5cc74b02-ed2a-49ee-8fc8-0b1f780425e6:/app/data# wp --info
                  bash: wp: command not found
                  
                  girishG 1 Reply Last reply
                  0
                  • martinkbsM martinkbs

                    @girish I am trying to install wp-cli in the LAMP application and I get the following error:

                    root@5cc74b02-ed2a-49ee-8fc8-0b1f780425e6:/app/code# cd /app/data
                    root@5cc74b02-ed2a-49ee-8fc8-0b1f780425e6:/app/data# curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
                      % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                                     Dload  Upload   Total   Spent    Left  Speed
                    100 6571k  100 6571k    0     0  19.6M      0 --:--:-- --:--:-- --:--:-- 19.6M
                    root@5cc74b02-ed2a-49ee-8fc8-0b1f780425e6:/app/data# php wp-cli.phar --info
                    OS:     Linux 5.15.0-57-generic #63-Ubuntu SMP Thu Nov 24 13:43:17 UTC 2022 x86_64
                    Shell:
                    PHP binary:     /usr/bin/php8.1
                    PHP version:    8.1.13
                    php.ini used:   /etc/php/8.1/cli/php.ini
                    MySQL binary:   /usr/bin/mysql
                    MySQL version:  mysql  Ver 8.0.31-0ubuntu0.22.04.1 for Linux on x86_64 ((Ubuntu))
                    SQL modes:
                    WP-CLI root dir:        phar://wp-cli.phar/vendor/wp-cli/wp-cli
                    WP-CLI vendor dir:      phar://wp-cli.phar/vendor
                    WP_CLI phar path:       /app/data
                    WP-CLI packages dir:
                    WP-CLI cache dir:       /root/.wp-cli/cache
                    WP-CLI global config:
                    WP-CLI project config:
                    WP-CLI version: 2.7.1
                    root@5cc74b02-ed2a-49ee-8fc8-0b1f780425e6:/app/data# chmod +x wp-cli.phar
                    root@5cc74b02-ed2a-49ee-8fc8-0b1f780425e6:/app/data# sudo mv wp-cli.phar /usr/local/bin/wp
                    mv: inter-device move failed: 'wp-cli.phar' to '/usr/local/bin/wp'; unable to remove target: Read-only file system
                    

                    I have tried moving it to the /app/data directory itself, but it doesn't work:

                    root@5cc74b02-ed2a-49ee-8fc8-0b1f780425e6:/app/data# sudo mv wp-cli.phar /app/data/wp
                    root@5cc74b02-ed2a-49ee-8fc8-0b1f780425e6:/app/data# wp --info
                    bash: wp: command not found
                    
                    girishG Offline
                    girishG Offline
                    girish
                    Staff
                    wrote on last edited by
                    #16

                    @martinkbs said in PHP version change, like the LAMP app?:

                    root@5cc74b02-ed2a-49ee-8fc8-0b1f780425e6:/app/data# wp --info

                    You can make the file executable as chmod +x wp and then do ./wp (the ./ is important)

                    1 Reply Last reply
                    0
                    • benborgesB Offline
                      benborgesB Offline
                      benborges
                      wrote on last edited by
                      #17

                      I have a use case where I absolutely need to at least temporary go back to PHP 7.2 or 7.4, is it possible with the wordpress managed or unmanaged ?

                      BenB

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

                        @benborges I think for an immediate fix, just use the LAMP app and install WordPress there with the PHP version you want. Currently, we don't have version switching in the WordPress package.

                        1 Reply Last reply
                        0
                        • benborgesB Offline
                          benborgesB Offline
                          benborges
                          wrote on last edited by
                          #19

                          Allright, thanks !!

                          BenB

                          1 Reply Last reply
                          0
                          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