Projekt

Allgemein

Profil

Aktionen

Install Procedure for NextCloud-Server 10.x

Requirements

To install NextCloud-Server 10.x you will need the following:
  • a installed and supported operating system (e.g. CentOS 7.x minimal)
  • root-access
  • a fast internet connection
  • repo: EPEL
  • Apache
  • MariaDB

Preliminary Note

this how-to assumes the machine with a vanilla CentOS 7.x minimal installation.

Install

yum install wget
yum install nextcloud-httpd nextcloud-mysql

if you want https://

yum install mod_ssl

Setup

Create nextcloud-DB

mysql -u root -p
create database nextcloud;
grant all on nextcloud.* to 'nextcloud-user'@'localhost' identified by 'nextcloud-user-password';

run nextcloud-cron-job

# JKE 2017-03-03
#
# minute hour day month dayofweek
# +---------min (0-59)
# | +-------hour (0-23)
# | | +-----day of month (1-31)
# | | | +---month (1-12)
# | | | | +-day of week (0-7) sunday=0 of 7
# | | | | |
# - - - - -
# m h d m d
#
    */15    *    *    *    *    apache    /usr/bin/php /usr/share/nextcloud/cron.php 

Firewall

firewall_cmd --permanent --zone=public --add-service=http
firewall_cmd --permanent --zone=public --add-service=https

Test

Troubleshoot

can't send mail via smtp

maybe because of selinux

setsebool -P httpd_can_sendmail on

Blocked in Maintenance-Mode after upgrade

basically taken from https://github.com/owncloud/core/issues/17440

cd /usr/share/owncloud
sudo -u apache php occ maintenance:mode --off
sudo -u apache php occ upgrade

did it for me (upgrade to Owncloud 8.0.10 @ 2016-02-29)

sudo -u apache php occ maintenance:repair

may be of additional help

Von Jeremias Keihsler vor fast 4 Jahren aktualisiert · 4 Revisionen