A service of Daily Data, Inc.
Contact Form

User Tools

Site Tools


software:nextcloud:installation

This is an old revision of the document!


NextCloud Installation

# first, make sure PHP is the latest version available

http://kb.unixservertech.com/unix/linux/debian/devuan_sury

apt install apache2 libapache2-mod-php mariadb-server php-xml php-cli php-cgi php-mysql php-mbstring php-gd php-curl php-zip wget unzip -y
 
a2enmod rewrite
a2enmod headers
a2enmod env
a2enmod dir
a2enmod mime
a2enmod ssl
a2ensite default-ssl

joe /etc/php/7.??/apache2/php.ini

; add this in the late-loading PHP override file for Nextcloud
; add this in /etc/php/<version>/<sapi>/conf.d/99-nextcloud.ini
memory_limit = 512M
upload_max_filesize = 512M
post_max_size = 512M
max_execution_time = 3600
max_input_time = 3600
max_input_vars = 5000
output_buffering = Off
opcache.enable = 1
opcache.interned_strings_buffer = 16
opcache.max_accelerated_files = 10000
opcache.memory_consumption = 128
opcache.save_comments = 1
opcache.jit = 0
service apache2 reload
mysql_secure_installation
# do what needs to be done, then 
# Create database
mysql
CREATE USER 'username'@'localhost' IDENTIFIED BY 'password';
CREATE DATABASE IF NOT EXISTS nextcloud CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
GRANT ALL PRIVILEGES ON nextcloud.* TO 'username'@'localhost';
FLUSH PRIVILEGES;
chown www-data:www-data /var/www/html
mkdir /srv/nextcloud
chown www-data:www-data /srv/nextcloud/
wget https://download.nextcloud.com/server/installer/setup-nextcloud.php
software/nextcloud/installation.1788459088.txt.gz · Last modified: by rodolico