Install NextCloud on Raspberry PI Stretch

Install NextCloud on Raspberry PI Stretch:

apt-get install apache2 mariadb-server libapache2-mod-php7.0

apt-get install php7.0-gd php7.0-json php7.0-mysql php7.0-curl php7.0-mbstring
apt-get install php7.0-intl php-imagick php7.0-xml php7.0-zip

Download NextCloud:
https://download.nextcloud.com/server/releases/nextcloud-15.0.4.zip

Getting / unzipping / moving
unzip nextcloud-15.0.4.zip
cd nextcloud
sudo cp -R * /var/www/html
sudo chown -R www-data:www-data /var/www/html

sudo apt-get install cifs-utils

Setup MarinaDB for NextCloud
sudo mysql -uroot -p

CREATE USER ncadmin IDENTIFIED BY ‘!ncpass’;
CREATE DATABASE ncdb;
GRANT ALL ON ncdb.* TO ncadmin;