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

    Install ownCloud 8.x on CentOS 7

    IT Discussion
    how to owncloud centos 7 real instructions owncloud 8.2
    8
    44
    17.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.
    • JaredBuschJ
      JaredBusch
      last edited by JaredBusch

      ** NOTE ** This post is asusming that you followed the instruction above to this point and I have not yet posted below that the instructions have been updated.

      I need to find a little spare time to update my instructions, but everything is now working with SELinux enforcing.

      the config and apps folder in the application directory need httpd read/write context in SELinux.

      semanage fcontext -a -t httpd_sys_rw_content_t '/var/www/html/owncloud/apps(/.*)?'
      restorecon -R /var/www/html/owncloud/apps
      semanage fcontext -a -t httpd_sys_rw_content_t '/var/www/html/owncloud/config(/.*)?'
      restorecon -R /var/www/html/owncloud/config
      

      Then the owncloud.log file needs to be in the /var/log/ folder and have the httpd_log context

      systemctl stop httpd
      mv /home/owncloud/data/owncloud.log /var/log/owncloud.log
      semanage fcontext -a -t httpd_log_t '/var/log/owncloud.log'
      restorecon /var/log/owncloud.log
      
      #-- edit the owncloud config to add a non-default log path
       nano /var/www/html/owncloud/config/config.php
      #-- insert this next to another config line
      'logfile' => '/var/log/owncloud.log',
      #-- save and exit nano then start httpd back up
      systemctl start httpd
      

      Update the fail2ban jail.local, turn on SELinux and start fail2ban

      systemctl stop fail2ban
      sed -i -e 's/\/home\/owncloud\/data/\/var\/log/' /etc/fail2ban/jail.local
      setenforce 1
      systemctl start fail2ban
      
      1 Reply Last reply Reply Quote 0
      • wirestyle22W
        wirestyle22
        last edited by wirestyle22

        So I performed this install specifically because I wanted to go through the upgrade process to oC 9.0 All I can see is to download the owncloud-files package. Is that really all that is required?

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

          @wirestyle22 said:

          So I performed this install specifically because I wanted to go through the uprgrade process to oC 9.0 All I can see is to download the owncloud-files package. Is that really all that is required?

          If you use RPM, you should not even need to download something.

          wirestyle22W 2 Replies Last reply Reply Quote 0
          • wirestyle22W
            wirestyle22 @scottalanmiller
            last edited by

            @scottalanmiller said:

            @wirestyle22 said:

            So I performed this install specifically because I wanted to go through the uprgrade process to oC 9.0 All I can see is to download the owncloud-files package. Is that really all that is required?

            If you use RPM, you should not even need to download something.

            RPM for owncloud-files? It will automatically download the new version?

            1 Reply Last reply Reply Quote 0
            • wirestyle22W
              wirestyle22 @scottalanmiller
              last edited by

              @scottalanmiller said:

              @wirestyle22 said:

              So I performed this install specifically because I wanted to go through the uprgrade process to oC 9.0 All I can see is to download the owncloud-files package. Is that really all that is required?

              If you use RPM, you should not even need to download something.

              rpm --import https://download.owncloud.org/download/repositories/9.0/CentOS_7/repodata/repomd.xml.key
              wget http://download.owncloud.org/download/repositories/9.0/CentOS_7/ce:9.0.repo -O /etc/yum.repos.d/ce:9.0.repo

              ^this?

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

                @wirestyle22 said:

                @scottalanmiller said:

                @wirestyle22 said:

                So I performed this install specifically because I wanted to go through the uprgrade process to oC 9.0 All I can see is to download the owncloud-files package. Is that really all that is required?

                If you use RPM, you should not even need to download something.

                rpm --import https://download.owncloud.org/download/repositories/9.0/CentOS_7/repodata/repomd.xml.key
                wget http://download.owncloud.org/download/repositories/9.0/CentOS_7/ce:9.0.repo -O /etc/yum.repos.d/ce:9.0.repo

                ^this?

                Ah yes, you need the repo. But nothing beyond that.

                wirestyle22W 1 Reply Last reply Reply Quote 0
                • wirestyle22W
                  wirestyle22 @scottalanmiller
                  last edited by wirestyle22

                  @scottalanmiller said:

                  @wirestyle22 said:

                  @scottalanmiller said:

                  @wirestyle22 said:

                  So I performed this install specifically because I wanted to go through the uprgrade process to oC 9.0 All I can see is to download the owncloud-files package. Is that really all that is required?

                  If you use RPM, you should not even need to download something.

                  rpm --import https://download.owncloud.org/download/repositories/9.0/CentOS_7/repodata/repomd.xml.key
                  wget http://download.owncloud.org/download/repositories/9.0/CentOS_7/ce:9.0.repo -O /etc/yum.repos.d/ce:9.0.repo

                  ^this?

                  Ah yes, you need the repo. But nothing beyond that.

                  so just the bottom line or both parts? (sorry)

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

                    @wirestyle22 said:

                    @scottalanmiller said:

                    @wirestyle22 said:

                    @scottalanmiller said:

                    @wirestyle22 said:

                    So I performed this install specifically because I wanted to go through the uprgrade process to oC 9.0 All I can see is to download the owncloud-files package. Is that really all that is required?

                    If you use RPM, you should not even need to download something.

                    rpm --import https://download.owncloud.org/download/repositories/9.0/CentOS_7/repodata/repomd.xml.key
                    wget http://download.owncloud.org/download/repositories/9.0/CentOS_7/ce:9.0.repo -O /etc/yum.repos.d/ce:9.0.repo

                    ^this?

                    Ah yes, you need the repo. But nothing beyond that.

                    so just the bottom line or both parts? (sorry)

                    You CAN skip the key, but it is good to have it.

                    wirestyle22W 1 Reply Last reply Reply Quote 0
                    • wirestyle22W
                      wirestyle22 @scottalanmiller
                      last edited by

                      @scottalanmiller said:

                      @wirestyle22 said:

                      @scottalanmiller said:

                      @wirestyle22 said:

                      @scottalanmiller said:

                      @wirestyle22 said:

                      So I performed this install specifically because I wanted to go through the uprgrade process to oC 9.0 All I can see is to download the owncloud-files package. Is that really all that is required?

                      If you use RPM, you should not even need to download something.

                      rpm --import https://download.owncloud.org/download/repositories/9.0/CentOS_7/repodata/repomd.xml.key
                      wget http://download.owncloud.org/download/repositories/9.0/CentOS_7/ce:9.0.repo -O /etc/yum.repos.d/ce:9.0.repo

                      ^this?

                      Ah yes, you need the repo. But nothing beyond that.

                      so just the bottom line or both parts? (sorry)

                      You CAN skip the key, but it is good to have it.

                      Awesome. Thanks!

                      1 Reply Last reply Reply Quote 0
                      • wirestyle22W
                        wirestyle22
                        last edited by

                        Worked like a charm 😄

                        1 Reply Last reply Reply Quote 1
                        • wirestyle22W
                          wirestyle22
                          last edited by

                          As an alternative I also tried to do yum -y upgrade owncloud and that worked as well

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

                            @wirestyle22 said:

                            As an alternative I also tried to do yum -y upgrade owncloud and that worked as well

                            The original instructions in this post explicitly setup the 8.2 repo not the generic repo. So that is why it would not upgrade to 9.

                            wget http://download.owncloud.org/download/repositories/8.2/CentOS_7/ce:8.2.repo -O /etc/yum.repos.d/ce:8.2.repo

                            wirestyle22W 1 Reply Last reply Reply Quote 0
                            • wirestyle22W
                              wirestyle22 @JaredBusch
                              last edited by

                              @JaredBusch said:

                              @wirestyle22 said:

                              As an alternative I also tried to do yum -y upgrade owncloud and that worked as well

                              The original instructions in this post explicitly setup the 8.2 repo not the generic repo. So that is why it would not upgrade to 9.

                              wget http://download.owncloud.org/download/repositories/8.2/CentOS_7/ce:8.2.repo -O /etc/yum.repos.d/ce:8.2.repo

                              I see. Thanks!

                              1 Reply Last reply Reply Quote 0
                              • travisdh1T
                                travisdh1
                                last edited by

                                Just wanted to confirm that these instructions still work, while I don't think we have any version of ownCloud 9 that will install and work correctly in a current release of CentOS.

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

                                  @travisdh1 said in Install ownCloud 8.x on CentOS 7:

                                  Just wanted to confirm that these instructions still work, while I don't think we have any version of ownCloud 9 that will install and work correctly in a current release of CentOS.

                                  These instructions all work perfectly. Sorry about a bit of the rambling to get SELinux working fully.

                                  travisdh1T 1 Reply Last reply Reply Quote 1
                                  • travisdh1T
                                    travisdh1 @JaredBusch
                                    last edited by

                                    @JaredBusch said in Install ownCloud 8.x on CentOS 7:

                                    @travisdh1 said in Install ownCloud 8.x on CentOS 7:

                                    Just wanted to confirm that these instructions still work, while I don't think we have any version of ownCloud 9 that will install and work correctly in a current release of CentOS.

                                    These instructions all work perfectly. Sorry about a bit of the rambling to get SELinux working fully.

                                    Speaking of which. I've been setting one up for my personal use on RamNode.... they have SELinux disabled and no firewall turned on by default on CentOS6. On their CentOS7 they've done something even worse and firewalld isn't able to install/run using the normal commands, so you have to fall back to iptables direct. If anyone else offered 150GB of storage on a VPS for $5/month I'd probably switch over that.

                                    1 Reply Last reply Reply Quote 0
                                    • wirestyle22W
                                      wirestyle22
                                      last edited by wirestyle22

                                      So just as an added piece of information: If you are using Digital Ocean or Vultr they disable SELinux by default to make it easier for their users (not saying it's right but I read in articles that was their logic). In order to enable it you need to install selinux-policy-targeted

                                      On reboot SELinux will be enforcing.

                                      1 Reply Last reply Reply Quote 2
                                      • 1
                                      • 2
                                      • 3
                                      • 2 / 3
                                      • First post
                                        Last post