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

    Installing ownCloud 9 on CentOS 7

    IT Discussion
    owncloud owncloud 9 storage open source centos centos 7 linux linux server ntg lab scale scale hc3
    9
    116
    39.8k
    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.
    • scottalanmillerS
      scottalanmiller
      last edited by scottalanmiller

      Starting with a clean, minimal install of CentOS, we will want to add additional storage space as this is a file server and using the default storage space would be rather inadequate.

      clone centos 7 owncloud on scale hc3

      make extra block device on scale hc3

      I use a 200GB VirtIO block device here for high performance and decent storage space. In my example I mounted this block device to /data and my example reflects this.

      Installing ownCloud is reasonably straightforward:

      yum -y install wget mariadb-server php-mysql
      yum -y update
      rpm --import https://download.owncloud.org/download/repositories/stable/CentOS_7/repodata/repomd.xml.key
      wget http://download.owncloud.org/download/repositories/stable/CentOS_7/ce:stable.repo -O /etc/yum.repos.d/ce:stable.repo
      setenforce permissive
      yum clean expire-cache
      yum -y install owncloud
      chown -R apache:apache /var/www/html/owncloud
      chown -R apache:apache /data
      firewall-cmd --zone=public --add-port=80/tcp --permanent
      firewall-cmd --zone=public --add-port=443/tcp --permanent
      firewall-cmd --reload
      systemctl start httpd
      systemctl enable httpd
      

      After this is complete you can access your ownCloud web interface at http://yourserversipaddress/owncloud

      If you are just testing, you can just use SQLite at this point and move on. If you are doing this for production you should use MariaDB either locally (as shown in the example) or externally (often for a very large install.) You can create a database on MariaDB, set the username and password and ownCloud will simply ask for these details in the web setup screens.

      owncloud 9 setup

      Change the Data Folder to /data if you are setting up as I have.

      JaredBuschJ 1 Reply Last reply Reply Quote 3
      • A
        Alex Sage
        last edited by

        Did you use vultr?

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

          @aaronstuder said:

          Did you use vultr?

          Scale HC3. If you are looking for cloud hosted, Vultr is pretty ideal for ownCloud and we have built there in the past and have some OC workloads there.

          Vultr does not use the "second" block device, though. You'd see the space as one large pool, not two.

          1 Reply Last reply Reply Quote 0
          • A
            Alex Sage
            last edited by

            What if I want owncloud on the root of the domain?

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

              @aaronstuder said:

              What if I want owncloud on the root of the domain?

              I'm not sure that I understand the question.

              A 1 Reply Last reply Reply Quote 0
              • A
                Alex Sage @scottalanmiller
                last edited by Alex Sage

                @scottalanmiller said:

                I want domain.com to bring me to the owncloud login, not domain.com/owncloud

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

                  @aaronstuder said:

                  @scottalanmiller said:

                  I want domain.com to bring me to the owncloud login, not domain.com/owncloud

                  OH!! LOL, that makes sense. I wasn't thinking about that at all.

                  Then go into your Apache configuration settings and move the "root" up one level to include the owncloud directory. There will be a line that points to /var/www/html/ and instead change that to /var/www/html/owncloud.

                  You can do this after installation is all done. No need to do it during the installation.

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

                    @scottalanmiller said:

                    @aaronstuder said:

                    @scottalanmiller said:

                    I want domain.com to bring me to the owncloud login, not domain.com/owncloud

                    OH!! LOL, that makes sense. I wasn't thinking about that at all.

                    Then go into your Apache configuration settings and move the "root" up one level to include the owncloud directory. There will be a line that points to /var/www/html/ and instead change that to /var/www/html/owncloud.

                    You can do this after installation is all done. No need to do it during the installation.

                    I never have the owncloud instance on the root of a domain so I always use it as a sub domain. Typically oc.domain.com and I have never bothered to remove the owncloud directory.

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

                      @JaredBusch said:

                      I never have the owncloud instance on the root of a domain so I always use it as a sub domain. Typically oc.domain.com and I have never bothered to remove the owncloud directory.

                      That's normally what we do. https://oc.companydomain.com/

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

                        @scottalanmiller said:

                        If you are just testing, you can just use SQLite at this point and move on. If you are doing this for production you should use MariaDB either locally (as shown in the example) or externally (often for a very large install.) You can create a database on MariaDB, set the username and password and ownCloud will simply ask for these details in the web setup screens.

                        This is really not clear to someone that has not done this before.
                        You cannot create the MariaDB instancefrom the GUI. it needs to be done during setup. See my 8.2 documentation for details.

                        1 Reply Last reply Reply Quote 0
                        • A
                          Alex Sage
                          last edited by Alex Sage

                          Couple of things:

                          1. Your missing:

                            mkdir /data
                            
                          2. I hate disabling SELinux - Let's fix it not turn it off 🙂

                          3. You should have database setup instructions 🙂

                          JaredBuschJ scottalanmillerS 2 Replies Last reply Reply Quote 0
                          • A
                            Alex Sage
                            last edited by

                            You forget to turn on the database 🙂

                            systemctl start mariadb
                            systemctl enable mariadb
                            
                            JaredBuschJ scottalanmillerS 2 Replies Last reply Reply Quote 0
                            • JaredBuschJ
                              JaredBusch @Alex Sage
                              last edited by

                              @aaronstuder said:

                              You forget to turn on the database 🙂

                              systemctl start mariadb
                              systemctl enable mariadb
                              

                              No, he did not. he is not using MariaDB in this example.

                              A 1 Reply Last reply Reply Quote 1
                              • JaredBuschJ
                                JaredBusch @Alex Sage
                                last edited by

                                @aaronstuder said:

                                Couple of things:

                                1. Your missing:

                                  mkdir /data
                                  
                                2. I hate disabling SELinux - Let's fix it not turn it off 🙂

                                3. You should have database setup instructions 🙂

                                You are assuming things here that are not true.

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

                                  @aaronstuder said:

                                  1. I hate disabling SELinux - Let's fix it not turn it off 🙂

                                  It's just turned off for the install, it's not off in general.

                                  1 Reply Last reply Reply Quote 1
                                  • A
                                    Alex Sage @JaredBusch
                                    last edited by

                                    @JaredBusch said:

                                    No, he did not. he is not using MariaDB in this example.

                                    Then why install it?

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

                                      @aaronstuder said:

                                      You forget to turn on the database 🙂

                                      systemctl start mariadb
                                      systemctl enable mariadb
                                      

                                      You'd need to do that for the database creation steps that I mentinoed in the description 🙂

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

                                        @aaronstuder said:

                                        @JaredBusch said:

                                        No, he did not. he is not using MariaDB in this example.

                                        Then why install it?

                                        Just to have it at the ready.

                                        A 1 Reply Last reply Reply Quote 0
                                        • A
                                          Alex Sage @scottalanmiller
                                          last edited by

                                          @scottalanmiller OK 😄

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

                                            We run with an external MariaDB system. So the third option 🙂

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