====== NextCloud Installation ======
# first, make sure PHP is the latest version available
http://kb.unixservertech.com/unix/linux/debian/devuan_sury
* https://docs.nextcloud.com/server/20/admin_manual/installation/example_ubuntu.html
* https://docs.nextcloud.com/server/20/admin_manual/installation/source_installation.html
* https://nextcloud.com/install/#instructions-server
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
memory_limit = 512M
upload_max_filesize = 500M
post_max_size = 500M
max_execution_time = 300
date.timezone = America/Chicago
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
===== Links =====
* https://docs.nextcloud.com/server/21/admin_manual/installation/source_installation.html
* https://www.howtoforge.com/tutorial/how-to-install-nextcloud-on-debian-10/
* https://tecadmin.net/install-nextcloud-on-debian/