ownCloud – Install on CentOS 7 Minimal
Hi Everyone,
This video demonstrates setting up your own cloud storage called ownCloud (owncloud.org) similar to commercial applications without the storage limitations and privacy concerns.
There are desktop (Windows, Linux, and Mac) clients as well as Android and Apple apps available for it, there are also cool addons that you can install for audio streaming, document collaboration and more.
_____________________________
Installation:
cat /etc/*-release
rpm –import https://download.owncloud.org/download/repositories/stable/CentOS_7/repodata/repomd.xml.key
yum install -y wget
wget http://download.owncloud.org/download/repositories/stable/CentOS_7/ce:stable.repo -O /etc/yum.repos.d/ce:stable.repo
yum clean expire-cache
yum install -y owncloud mariadb mariadb-server
chown -R apache:apache /var/www/html/owncloud/
getenforce
setsebool -P httpd_unified 1
yum install -y firewalld #required if not already installed
systemctl start firewalld
systemctl enable firewalld
firewall-cmd –add-service=http –permanent
firewall-cmd –add-service=https –permanent
firewall-cmd –reload
systemctl start httpd
systemctl start mariadb.service
systemctl enable httpd
systemctl enable mariadb.service
mysqladmin -u root password P@ssw0rd #Simple password for demo only
_______________________________________________________________________
SSL:
yum install -y mod_ssl
mkdir /etc/httpd/ssl
openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/httpd/ssl/apache.key -out /etc/httpd/ssl/apache.crt
vi /etc/httpd/conf.d/ssl.conf
Find the section that begins with VirtualHost _default_:443
uncomment the DocumentRoot line and edit the address in quotes to the location of your site’s document root. By default, this will be in /var/www/html, and you don’t need to change this line if you have not changed the document root for your site
uncomment the ServerName line and replace www.example.com with your domain name or server IP address
Find the SSLCertificateFile and SSLCertificateKeyFile lines and change them to the directory we made at /etc/httpd/ssl:
SSLCertificateFile /etc/httpd/ssl/apache.crt
SSLCertificateKeyFile /etc/httpd/ssl/apache.key
apachectl restart
Test… 🙂
centos 7
Very clear and thorough tutorial. Only wished I'd watched it before my painful fedora/ownCloud setup last week.
How can I give a static ip when configuring the owncloud. Is it automatically get the machines ip?
[root @ skynet ~] # chown -R apache: apache / var / www / html / owncloud /
chown: Invalid user: "apache: apache"
this is the error that comes after I do this command
How do you open Firefox while you were in CentOs 7 minimal? I didn't understand that part :C
Thank You! a
Great Value!
I have an older netbook. I want install owncloud over centos minimal. Its possible install a second HD in USB and make this: on netbook hd the file server and the USB HD a copy of the netbook (like Raid 1)?
Tks for your tutorial. You have done a awesome work with this tutorial.
How can I change the storage space from Var to Home
thanks, God Bless you
how to solve No memory cache has been configured please help me
Thank you so much.
You really helped me a lot.
I get the error
error while trying to create admin user: failed to connect to the database: An Exception occured in driver: SQLSTATE[28000][1045] Access denied for user 'root'@'localhost' (using password: YES)
around 10:18 after pressing Finish setup. Any help?
Thank you
This configuration works to connect to any network outside the home?
LAST STEP:
[root@owncloud ~]# vi /var/www/html/owncloud/.htaccess
#Rewrite rules to force HTTPS
RewriteCond %{HTTPS} !=on
RewriteRule ^/?(.*) https://%{SERVER_NAME}/owncloud/$1 [R,L]
apachectl restart
Great Work
2:31 Terminal hangs up. nothing happens.