Install ownCloud 8.x on CentOS 7
-
Note, I am still having issues with getting the SELinux labels right and currently still have it set to permissive.
-
@JaredBusch said:
Note, I am still having issues with getting the SELinux labels right and currently still have it set to permissive.
Did you ever get this fixed?
-
@anonymous said:
@JaredBusch said:
Note, I am still having issues with getting the SELinux labels right and currently still have it set to permissive.
Did you ever get this fixed?
Maybe? I have installed another server and I am not having the same problems. I have not had time to track it down yet.
-
Coming back to this. Everything is running correctly with SELinux on except
fail2ban
.I have to disable SELinux in order for
fail2ban
to have access to theowncloud.log
file.[root@owncloud log]# systemctl start fail2ban Job for fail2ban.service failed because the control process exited with error code. See "systemctl status fail2ban.service" and "journalctl -xe" for details. [root@owncloud log]# setenforce 0 [root@owncloud log]# systemctl start fail2ban [root@owncloud log]#
-- Unit fail2ban.service has begun starting up. Feb 24 15:13:26 owncloud fail2ban-client[15984]: ERROR No file(s) found for glob /home/owncloud/data/owncloud.log Feb 24 15:13:26 owncloud fail2ban-client[15984]: ERROR Failed during configuration: Have not found any log file for owncloud ja Feb 24 15:13:26 owncloud systemd[1]: fail2ban.service: control process exited, code=exited status=255 Feb 24 15:13:26 owncloud systemd[1]: Failed to start Fail2Ban Service.
[root@owncloud log]# ls -l /home/owncloud/data/owncloud.log -rw-r-----. 1 apache apache 38136 Feb 24 15:09 /home/owncloud/data/owncloud.log [root@owncloud log]#
-
-
@aaronstuder he is editing files when there are generally commands to do it. Just been to busy to look it up.
-
** 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.