Projekt

Allgemein

Profil

Aktionen

Install Procedure for NextCloud-Server 19.x

Requirements

To install NextCloud-Server 19.x you will need the following:
  • a installed and supported operating system (e.g. Fedora 33 Workstation)
  • root-access
  • a fast internet connection
  • Apache
  • MariaDB

Preliminary Note

this how-to assumes the machine with a vanilla Fedora 33 Workstation installation.

Install

yum install nextcloud-httpd nextcloud-mysql

Setup

Create nextcloud-DB

mysql -u root -p
CREATE USER 'nextuser'@'localhost' IDENTIFIED BY 'password';
CREATE DATABASE nextcloud CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
GRANT ALL PRIVILEGES ON nextcloud.* TO 'nextuser'@'localhost';
exit

make nextcloud available to the outside world

ln -s /etc/httpd/conf.d/nextcloud-access.conf.avail /etc/httpd/conf.d/z-nextcloud-access.conf
systemctl restart httpd
firewall-cmd --permanent --add-service=http
firewall-cmd --reload

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

can't access app-store

maybe because of selinux

setsebool -P httpd_can_network_connect 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 mehr als 3 Jahren aktualisiert · 4 Revisionen