Cloud

--

NextCloud

# 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 https://download.nextcloud.com/server/releases/nextcloud-13.0.4.zip

[root@dlp ~]# unzip nextcloud-13.0.4.zip

[root@dlp ~]# chgrp -R apache nextcloud

[root@dlp ~]# chown -R apache nextcloud/{apps,config,occ}

[root@dlp ~]# chmod 775 nextcloud

[root@dlp ~]# mv nextcloud /opt/rh/httpd24/root/var/www/html/

[root@dlp ~]# systemctl start httpd24-httpd

[root@dlp ~]# systemctl enable httpd24-httpd

[3]

Add user and database for NextCloud 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 nextcloud;

Query OK, 1 row affected (0.00 sec)

MariaDB [(none)]> grant all privileges on nextcloud.* to nextcloud@'localhost' identified by 'password';

Query OK, 0 rows affected (0.00 sec)

MariaDB [(none)]> flush privileges;

Query OK, 0 rows affected (0.00 sec)

MariaDB [(none)]> exit

Bye

[root@dlp ~]# semanage fcontext -a -t httpd_sys_rw_content_t /opt/rh/httpd24/root/var/www/html/nextcloud/apps

[root@dlp ~]# semanage fcontext -a -t httpd_sys_rw_content_t /opt/rh/httpd24/root/var/www/html/nextcloud/config

[root@dlp ~]# restorecon /opt/rh/httpd24/root/var/www/html/nextcloud/apps

[root@dlp ~]# restorecon /opt/rh/httpd24/root/var/www/html/nextcloud/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)/nextcloud/] from a client computer with Web browser. Then following screen is shown. Add an admin account for NextCloud, and also click [MySQL/MariaDB] in database section and input username and database name on MariaDB for NextCloud. If it's OK all, Click [Finish Setup] to proceed.

ownCloud

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 ~]# yum -y install owncloud-files

[root@dlp ~]# 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)]> flush privileges;

Query OK, 0 rows affected (0.00 sec)

MariaDB [(none)]> exit

Bye

[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]

[7]

[8]

[9]

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.

If Database information is correct, following Login form is shown, input admin username and password you set on previous section.

After successing authentication, welcome window is shown.

This is the ownCloud main page. It's possible to use ownCloud on this Web Console as a cloud storage.

---