ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Install NextCloud 11.0.2 on CentOS 7 with PHP 7.1 from Remi

    IT Discussion
    how to guide real instructions nextcloud nextcloud 11 centos centos 7 php 7 remi
    10
    81
    27.7k
    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.
    • T
      theozsnowman
      last edited by

      Im wondering if anyone can help i have followed this great guide but now find that i cannot login to the admin of my nextcloud and im getting repeated errors of Uncaught ReferenceError: OCA is not defined

      I am running Nexcloud 12.0.3

      can anyone advise please?

      scottalanmillerS 1 Reply Last reply Reply Quote 0
      • JaredBuschJ
        JaredBusch
        last edited by

        I have no idea. It would need more detail, or time to attempt to replicate.

        1 Reply Last reply Reply Quote 0
        • scottalanmillerS
          scottalanmiller @theozsnowman
          last edited by

          @theozsnowman said in Install NextCloud 11.0.2 on CentOS 7 with PHP 7.1 from Remi:

          Im wondering if anyone can help i have followed this great guide but now find that i cannot login to the admin of my nextcloud and im getting repeated errors of Uncaught ReferenceError: OCA is not defined

          I am running Nexcloud 12.0.3

          can anyone advise please?

          I have not seen that error yet. This is on a fresh install?

          1 Reply Last reply Reply Quote 0
          • zachary715Z
            zachary715
            last edited by

            I just completed this guide on Vultr using Nextcloud 12.0.4 and CentOS 7. No issues here. Thanks as these guides are getting me more familiar with Linux vs the appliance install.

            JaredBuschJ 1 Reply Last reply Reply Quote 0
            • zachary715Z
              zachary715
              last edited by

              I installed this VM in the NJ datacenter because I had a free 50GB promotional block storage available from a while back waiting to give this a go. I attached the block storage to the VM prior to install, however at the installation screens where you select disks, I wasn't sure how to go about it so I only selected the 25GB disk that came with the $5 instance.

              Now that I have everything setup, running df-h is only showing the 25GB storage so I apparently should have chosen both disks. Is there a way to attach the block storage to this nextcloud instance now that it's up and running without having to redo the whole thing? Ideally, I would like to have the 25GB + 50GB block storage for a total of 75GB if possible.

              1 Reply Last reply Reply Quote 0
              • scottalanmillerS
                scottalanmiller
                last edited by

                You can, using LVM to span them. Not an ideal way to use your storage, but it will work. Same as doing it on Windows, really.

                zachary715Z 1 Reply Last reply Reply Quote 0
                • zachary715Z
                  zachary715 @scottalanmiller
                  last edited by

                  @scottalanmiller When you say "not an ideal way to use your storage", are you referring to adding the block storage on top of the storage already provided in the instance, or trying to manually expand things after the fact?

                  I guess my question then is if I wanted this to be done right, am I better off just destroying this instance and going through it again, adding the block storage initially from the CentOS install menu? Or is adding the block storage to make the usable space larger not an ideal setup for nextcloud period?

                  scottalanmillerS 2 Replies Last reply Reply Quote 0
                  • scottalanmillerS
                    scottalanmiller @zachary715
                    last edited by

                    @zachary715 said in Install NextCloud 11.0.2 on CentOS 7 with PHP 7.1 from Remi:

                    @scottalanmiller When you say "not an ideal way to use your storage", are you referring to adding the block storage on top of the storage already provided in the instance, or trying to manually expand things after the fact?

                    I mean creating a span.

                    1 Reply Last reply Reply Quote 0
                    • scottalanmillerS
                      scottalanmiller @zachary715
                      last edited by

                      @zachary715 said in Install NextCloud 11.0.2 on CentOS 7 with PHP 7.1 from Remi:

                      @scottalanmiller When you say "not an ideal way to use your storage", are you referring to adding the block storage on top of the storage already provided in the instance, or trying to manually expand things after the fact?

                      I guess my question then is if I wanted this to be done right, am I better off just destroying this instance and going through it again, adding the block storage initially from the CentOS install menu? Or is adding the block storage to make the usable space larger not an ideal setup for nextcloud period?

                      Having two types of storage merged in a span. Either fails, both fail. It's like RAID 0 without the performance benefits. Not ideal in any sense.

                      zachary715Z 1 Reply Last reply Reply Quote 0
                      • zachary715Z
                        zachary715 @scottalanmiller
                        last edited by

                        I'm mainly doing this for personal learning and testing so I'll operate it as a span for the time being. If I decide if I want to get more serious with it, I'll look to grab some SATA storage instances if they come available or run it elsewhere. Thanks

                        scottalanmillerS 1 Reply Last reply Reply Quote 0
                        • scottalanmillerS
                          scottalanmiller @zachary715
                          last edited by

                          @zachary715 said in Install NextCloud 11.0.2 on CentOS 7 with PHP 7.1 from Remi:

                          I'm mainly doing this for personal learning and testing so I'll operate it as a span for the time being. If I decide if I want to get more serious with it, I'll look to grab some SATA storage instances if they come available or run it elsewhere. Thanks

                          Spanning is fine for your own learning. SATA instances pop up all the time, but only last a day or so as everyone has alerts on them.

                          1 Reply Last reply Reply Quote 0
                          • JaredBuschJ
                            JaredBusch @zachary715
                            last edited by

                            @zachary715 said in Install NextCloud 11.0.2 on CentOS 7 with PHP 7.1 from Remi:

                            I just completed this guide on Vultr using Nextcloud 12.0.4 and CentOS 7. No issues here. Thanks as these guides are getting me more familiar with Linux vs the appliance install.

                            That is why I write my guides the way I do.

                            It would be simple to post a big string or shell script to execute that would perform all the steps like magic. But that does not help the person following the guide to know WTF they just did.

                            1 Reply Last reply Reply Quote 2
                            • zachary715Z
                              zachary715
                              last edited by

                              In a scenario where you might want the additional storage capacity in SSD therefore want to add a lot of block storage to an instance, would it make sense to install Nextcloud to the 25GB drive and then relocate the /var/www/html/nextcloud/data directory to the larger block storage space?

                              • Would there be benefits to this setup from a migration standpoint in the future or in case of boot drive failure?

                              • Not fully understanding yet what all of these steps are accomplishing during installation and setup, would creating this setup from the get-go be as easy as pointing some of these commands to the directory of the block storage, or more complicated than that? (Not asking you to necessarily show these steps, just inform me)

                              • Could I migrate to this setup while running? It may be easier to do during installation, but again just trying to learn.

                              scottalanmillerS 2 Replies Last reply Reply Quote 0
                              • scottalanmillerS
                                scottalanmiller @zachary715
                                last edited by

                                @zachary715 said in Install NextCloud 11.0.2 on CentOS 7 with PHP 7.1 from Remi:

                                In a scenario where you might want the additional storage capacity in SSD therefore want to add a lot of block storage to an instance, would it make sense to install Nextcloud to the 25GB drive and then relocate the /var/www/html/nextcloud/data directory to the larger block storage space?

                                • Would there be benefits to this setup from a migration standpoint in the future or in case of boot drive failure?

                                • Not fully understanding yet what all of these steps are accomplishing during installation and setup, would creating this setup from the get-go be as easy as pointing some of these commands to the directory of the block storage, or more complicated than that? (Not asking you to necessarily show these steps, just inform me)

                                • Could I migrate to this setup while running? It may be easier to do during installation, but again just trying to learn.

                                For production, typically yes. You would normally either use the local space for a tiny instance, use a storage instance for something in the middle, or go to the additional block storage for something really large or performant. In that case, you'd normally not put any data on the local disks, only the OS and apps, as the additional space that you'd get from that would be totally trivial anyway once you were at any size.

                                1 Reply Last reply Reply Quote 0
                                • scottalanmillerS
                                  scottalanmiller @zachary715
                                  last edited by

                                  @zachary715 said in Install NextCloud 11.0.2 on CentOS 7 with PHP 7.1 from Remi:

                                  • Could I migrate to this setup while running? It may be easier to do during installation, but again just trying to learn.

                                  Migrating isn't hard but would require some downtime. Maybe just a few minutes, but it would not be zero.

                                  zachary715Z 1 Reply Last reply Reply Quote 0
                                  • zachary715Z
                                    zachary715
                                    last edited by

                                    Alright that's straightforward enough. I was able to mount the block storage and create the symlinks. Ran into a few issues, but no biggie. Now I'd like to scrap what I did and go through it again, except this time make the block storage the default location for the data.

                                    Looking at the guide again, I can see where you create the data directory initially in
                                    /var/www/html/nextcloud/data. I'm assuming we'll skip that step since our data will be in mounted volume /blockstorage.

                                    Throughout the rest of the guide, am I essentially changing all the references to /var/www/html/nextcloud/data to /blockstorage?

                                    What other steps should I be aware of?

                                    scottalanmillerS 1 Reply Last reply Reply Quote 0
                                    • scottalanmillerS
                                      scottalanmiller @zachary715
                                      last edited by

                                      @zachary715 said in Install NextCloud 11.0.2 on CentOS 7 with PHP 7.1 from Remi:

                                      Alright that's straightforward enough. I was able to mount the block storage and create the symlinks. Ran into a few issues, but no biggie. Now I'd like to scrap what I did and go through it again, except this time make the block storage the default location for the data.

                                      Looking at the guide again, I can see where you create the data directory initially in
                                      /var/www/html/nextcloud/data. I'm assuming we'll skip that step since our data will be in mounted volume /blockstorage.

                                      Throughout the rest of the guide, am I essentially changing all the references to /var/www/html/nextcloud/data to /blockstorage?

                                      What other steps should I be aware of?

                                      If you are doing fresh, I'd be doing it on Fedora 27 as well.

                                      JaredBuschJ zachary715Z 2 Replies Last reply Reply Quote 0
                                      • JaredBuschJ
                                        JaredBusch @scottalanmiller
                                        last edited by

                                        @scottalanmiller said in Install NextCloud 11.0.2 on CentOS 7 with PHP 7.1 from Remi:

                                        @zachary715 said in Install NextCloud 11.0.2 on CentOS 7 with PHP 7.1 from Remi:

                                        Alright that's straightforward enough. I was able to mount the block storage and create the symlinks. Ran into a few issues, but no biggie. Now I'd like to scrap what I did and go through it again, except this time make the block storage the default location for the data.

                                        Looking at the guide again, I can see where you create the data directory initially in
                                        /var/www/html/nextcloud/data. I'm assuming we'll skip that step since our data will be in mounted volume /blockstorage.

                                        Throughout the rest of the guide, am I essentially changing all the references to /var/www/html/nextcloud/data to /blockstorage?

                                        What other steps should I be aware of?

                                        If you are doing fresh, I'd be doing it on Fedora 27 as well.

                                        Correct. I believe there was a Fedora 25 or 26 guide made for this, but I think a couple things need updated now that they handle all the updates correctly.

                                        1 Reply Last reply Reply Quote 0
                                        • zachary715Z
                                          zachary715 @scottalanmiller
                                          last edited by

                                          @scottalanmiller said in Install NextCloud 11.0.2 on CentOS 7 with PHP 7.1 from Remi:

                                          If you are doing fresh, I'd be doing it on Fedora 27 as well.

                                          So the lifecycle of Fedora versions are around a year correct? On a server like this, can I assume the constant updating of the underlying OS won't negatively impact the NextCloud installation? (I'm coming from Windows world where this is always a consideration). Or are you guys constantly spinning up new VMs and migrating data that frequently?

                                          Either way, I'll give it a shot so that it forces me to do it a little differently.

                                          JaredBuschJ scottalanmillerS 2 Replies Last reply Reply Quote 0
                                          • JaredBuschJ
                                            JaredBusch @zachary715
                                            last edited by

                                            @zachary715 said in Install NextCloud 11.0.2 on CentOS 7 with PHP 7.1 from Remi:

                                            @scottalanmiller said in Install NextCloud 11.0.2 on CentOS 7 with PHP 7.1 from Remi:

                                            If you are doing fresh, I'd be doing it on Fedora 27 as well.

                                            So the lifecycle of Fedora versions are around a year correct? On a server like this, can I assume the constant updating of the underlying OS won't negatively impact the NextCloud installation? (I'm coming from Windows world where this is always a consideration). Or are you guys constantly spinning up new VMs and migrating data that frequently?

                                            Either way, I'll give it a shot so that it forces me to do it a little differently.

                                            New versions come on a 6 month cycle. But I have never had something like this break things.

                                            I am sure back when they first switched to systemd it would be an issue.

                                            zachary715Z 1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 3
                                            • 4
                                            • 5
                                            • 4 / 5
                                            • First post
                                              Last post