Install ownCloud 8.x on CentOS 7
-
** 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
-
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?
-
@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.
-
@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?
-
@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?
-
@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.
-
@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)
-
@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.
-
@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!
-
Worked like a charm
-
As an alternative I also tried to do yum -y upgrade owncloud and that worked as well
-
@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
-
@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!
-
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.
-
@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.
-
@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.
-
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.