ownCloud : Install2016/07/27 |
Install Cloud Storage Server, ownCloud 10.
|
|
[1] | |
[2] | ownCloud 10 needs PHP 5.6 or later, so Install PHP 7.0 from CentOS Software Collections on this example. Furthermore, Install Apache httpd from CentOS Software Collections, too. |
# install from SCLo
[root@dlp ~]#
yum --enablerepo=centos-sclo-rh -y install rh-php70 rh-php70-php rh-php70-php-pear rh-php70-php-mbstring rh-php70-php-pdo rh-php70-php-intl rh-php70-php-gd rh-php70-php-mysqlnd httpd24
[root@dlp ~]#
wget http://download.owncloud.org/download/repositories/stable/CentOS_7/ce:stable.repo -P /etc/yum.repos.d
[root@dlp ~]#
[root@dlp ~]# yum -y install owncloud-files ln -s /var/www/html/owncloud /opt/rh/httpd24/root/var/www/html/owncloud [root@dlp ~]# systemctl start httpd24-httpd [root@dlp ~]# systemctl enable httpd24-httpd |
[3] | Add user and database for ownCloud in MariaDB. |
[root@dlp ~]# mysql -u root -p Enter password: Welcome to the MariaDB monitor. Commands end with ; or \g. Your MariaDB connection id is 112 Server version: 10.1.29-MariaDB MariaDB Server Copyright (c) 2000, 2017, Oracle, MariaDB Corporation Ab and others. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [(none)]>
create database owncloud; Query OK, 1 row affected (0.00 sec)
MariaDB [(none)]>
grant all privileges on owncloud.* to owncloud@'localhost' identified by 'password'; Query OK, 0 rows affected (0.00 sec)
MariaDB [(none)]>
MariaDB [(none)]> flush privileges; Query OK, 0 rows affected (0.00 sec) exit Bye |
[4] | If SELinux is enabled, change rules like follows. |
[root@dlp ~]# semanage fcontext -a -t httpd_sys_rw_content_t /var/www/html/owncloud/apps [root@dlp ~]# semanage fcontext -a -t httpd_sys_rw_content_t /var/www/html/owncloud/config [root@dlp ~]# restorecon /var/www/html/owncloud/apps [root@dlp ~]# restorecon /var/www/html/owncloud/config |
[5] | If Firewalld is running, allow service ports. |
[root@dlp ~]# firewall-cmd --add-service={http,https} --permanent success [root@dlp ~]# firewall-cmd --reload success |
[6] | Access to the URL [http://(your hostname or IP address)/owncloud/] from a client computer with Web browser. Then following screen is shown. Add an admin account for ownCloud, and also click [MySQL/MariaDB] in database section and input username and database name on MariaDB for ownCloud. If it's OK all, Click [Finish Setup] to proceed. |
[7] | If Database information is correct, following Login form is shown, input admin username and password you set on previous section. |
[8] | After successing authentication, welcome window is shown. |
[9] | This is the ownCloud main page. It's possible to use ownCloud on this Web Console as a cloud storage. |
|