CentOS 7
Sponsored Link

NextCloud : Install
2016/07/27
 
Install Cloud Storage Server, NextCloud.
[1]
[2] NextCloud 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 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
[4] If SELinux is enabled, change rules like follows.
[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.
[7] If Database information is correct, following Welcome window is shown for initial login.
[8] This is the NextCloud main page. It's possible to use NextCloud on this Web Console as a cloud storage.
Matched Content
 
Tweet