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

PHP version

Scheduled Pinned Locked Moved WordPress (Developer)
14 Posts 5 Posters 2.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.
    • K Offline
      K Offline
      kris
      wrote on last edited by
      #1

      I need to run WordPress in a PHP 8.1 environment
      I see that the default is PHP 7.4
      How do I switch to PHP 8.1?

      robiR 1 Reply Last reply
      0
      • K kris

        I need to run WordPress in a PHP 8.1 environment
        I see that the default is PHP 7.4
        How do I switch to PHP 8.1?

        robiR Offline
        robiR Offline
        robi
        wrote on last edited by
        #2

        @kris use the LAMP app.

        Conscious tech

        K 1 Reply Last reply
        1
        • robiR robi

          @kris use the LAMP app.

          K Offline
          K Offline
          kris
          wrote on last edited by
          #3

          @robi I tried, but after installing WordPress, when trying to install a plugin, a theme, an update... WordPress wants you to provide FTP / FTPS account credentials.

          The problem is that LAMP gives access by SFTP so I am unable to install, remove or update anything in WordPress. WordPress as it is is useless 😞

          1 Reply Last reply
          0
          • robiR Offline
            robiR Offline
            robi
            wrote on last edited by
            #4

            @staff does the WP dev base image contain PHP 8.1? If not, can you update it?
            That would simplify the issue here.

            @kris that's odd about FTP, as all my WP installs never ask for such, and just install plugins with a click.

            Perhaps your permissions are wrong so it prompts for alternate ways?

            You can always install things manually through the Cloudron built in File Manager or the Terminal. It's in the App config section of the Cloudron UI (gear icon).

            Conscious tech

            K 1 Reply Last reply
            0
            • robiR robi

              @staff does the WP dev base image contain PHP 8.1? If not, can you update it?
              That would simplify the issue here.

              @kris that's odd about FTP, as all my WP installs never ask for such, and just install plugins with a click.

              Perhaps your permissions are wrong so it prompts for alternate ways?

              You can always install things manually through the Cloudron built in File Manager or the Terminal. It's in the App config section of the Cloudron UI (gear icon).

              K Offline
              K Offline
              kris
              wrote on last edited by
              #5

              @robi I too encountered something like this for the first time. I installed WP manually uploading files through file manager. Standard installation. suddenly such a surprise, I have to enter FTP login credentials 🙂

              humptydumptyH 1 Reply Last reply
              0
              • K kris

                @robi I too encountered something like this for the first time. I installed WP manually uploading files through file manager. Standard installation. suddenly such a surprise, I have to enter FTP login credentials 🙂

                humptydumptyH Offline
                humptydumptyH Offline
                humptydumpty
                wrote on last edited by
                #6

                @kris the CR file manager gets stuck sometimes when I'm uploading stuff so it's possible you have missing/corrupted files or the manager assigned the wrong permissions as Robi suggested.

                nebulonN K 2 Replies Last reply
                0
                • humptydumptyH humptydumpty

                  @kris the CR file manager gets stuck sometimes when I'm uploading stuff so it's possible you have missing/corrupted files or the manager assigned the wrong permissions as Robi suggested.

                  nebulonN Offline
                  nebulonN Offline
                  nebulon
                  Staff
                  wrote on last edited by
                  #7

                  @humptydumpty do you have a way to reproduce the filemanager getting stuck? This should ideally get fixed then.

                  humptydumptyH 1 Reply Last reply
                  0
                  • nebulonN nebulon

                    @humptydumpty do you have a way to reproduce the filemanager getting stuck? This should ideally get fixed then.

                    humptydumptyH Offline
                    humptydumptyH Offline
                    humptydumpty
                    wrote on last edited by
                    #8

                    @nebulon I just reupload the files and it goes through the second time. I don't upload often but I'll give it a shot and report back. It might be a Firefox only issue; ublock origin and privacy settings cause all sorts of weird things that I've learned to ignore which is why I haven't reported this.. officially that is 🙂

                    Here's some more details of what happens though. Say I'm uploading a WP theme through the file manager. The loading bar would get to 40% and then stop. I'll leave it running for a while with no change there. I'm not sure if it's a visual bug or the files aren't actually uploaded but I just refresh the page, drop the files for upload again and it works fine the second time. This has happened more than once (iirc it happens on every upload but like I said, I don't upload often).

                    nebulonN 1 Reply Last reply
                    0
                    • humptydumptyH humptydumpty

                      @nebulon I just reupload the files and it goes through the second time. I don't upload often but I'll give it a shot and report back. It might be a Firefox only issue; ublock origin and privacy settings cause all sorts of weird things that I've learned to ignore which is why I haven't reported this.. officially that is 🙂

                      Here's some more details of what happens though. Say I'm uploading a WP theme through the file manager. The loading bar would get to 40% and then stop. I'll leave it running for a while with no change there. I'm not sure if it's a visual bug or the files aren't actually uploaded but I just refresh the page, drop the files for upload again and it works fine the second time. This has happened more than once (iirc it happens on every upload but like I said, I don't upload often).

                      nebulonN Offline
                      nebulonN Offline
                      nebulon
                      Staff
                      wrote on last edited by
                      #9

                      @humptydumpty maybe you could open the webinspector of the browser in that tab an check if the console shows any errors. The console output is always shown even if the inspector is only opened later.

                      humptydumptyH 1 Reply Last reply
                      0
                      • nebulonN nebulon

                        @humptydumpty maybe you could open the webinspector of the browser in that tab an check if the console shows any errors. The console output is always shown even if the inspector is only opened later.

                        humptydumptyH Offline
                        humptydumptyH Offline
                        humptydumpty
                        wrote on last edited by humptydumpty
                        #10

                        @nebulon Noted! I uploaded a WP plugin twice (1339 files each run) and it worked without any issues. However, the permissions are set to ROOT unlike the other plugins which are www-data. Changing the file ownership to www-data worked fine so all's good! Is there a technical reason why it defaults to root?

                        Screenshot 2022-09-13 121332.png

                        Screenshot 2022-09-13 121409.png

                        Screenshot 2022-09-13 122118.png

                        subvenS nebulonN 2 Replies Last reply
                        0
                        • humptydumptyH humptydumpty

                          @nebulon Noted! I uploaded a WP plugin twice (1339 files each run) and it worked without any issues. However, the permissions are set to ROOT unlike the other plugins which are www-data. Changing the file ownership to www-data worked fine so all's good! Is there a technical reason why it defaults to root?

                          Screenshot 2022-09-13 121332.png

                          Screenshot 2022-09-13 121409.png

                          Screenshot 2022-09-13 122118.png

                          subvenS Offline
                          subvenS Offline
                          subven
                          wrote on last edited by subven
                          #11

                          @humptydumpty because you uploaded it as root (over the web-ui I guess). Open the apps console and upload the file there. Use chown -R www-data:www-data /directory/path to take ownership or use www-data as executing console user in the first place by using sudo su www-data 🙂

                          1 Reply Last reply
                          1
                          • humptydumptyH humptydumpty

                            @nebulon Noted! I uploaded a WP plugin twice (1339 files each run) and it worked without any issues. However, the permissions are set to ROOT unlike the other plugins which are www-data. Changing the file ownership to www-data worked fine so all's good! Is there a technical reason why it defaults to root?

                            Screenshot 2022-09-13 121332.png

                            Screenshot 2022-09-13 121409.png

                            Screenshot 2022-09-13 122118.png

                            nebulonN Offline
                            nebulonN Offline
                            nebulon
                            Staff
                            wrote on last edited by
                            #12

                            @humptydumpty did you upload a zip/tar and used the extract feature or just dropped the folder into the filemanager?

                            humptydumptyH 1 Reply Last reply
                            0
                            • humptydumptyH humptydumpty

                              @kris the CR file manager gets stuck sometimes when I'm uploading stuff so it's possible you have missing/corrupted files or the manager assigned the wrong permissions as Robi suggested.

                              K Offline
                              K Offline
                              kris
                              wrote on last edited by
                              #13

                              @humptydumpty @robi was right. All files had root as owner 🙂

                              1 Reply Last reply
                              1
                              • nebulonN nebulon

                                @humptydumpty did you upload a zip/tar and used the extract feature or just dropped the folder into the filemanager?

                                humptydumptyH Offline
                                humptydumptyH Offline
                                humptydumpty
                                wrote on last edited by
                                #14

                                @nebulon I unzipped before uploading the content via drag & drop into the file manager window.

                                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