Code in this video_Sefl-Host-NextCloud-on-Linux-VPS

✳️Replace the highlighted information with your own


sudo apt install php-gd php-curl php-xml php-zip php-mbstring php-intl php-bcmath php-gmp php-imagick php-mysql php-apcu unzip vim curl net-tools certbot python3-certbot-apache -y

CREATE DATABASE nextcloud_db CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;

CREATE USER 'nextcloud_db_user'@'localhost' IDENTIFIED BY 'nextcloud_db_PWD';

GRANT ALL PRIVILEGES ON nextcloud_db.* TO 'nextcloud_db_user'@'localhost';

wget https://download.nextcloud.com/server/releases/latest.zip

<VirtualHost *:80>

#ServerName Your-Domain
DocumentRoot /var/www/nextcloud

<Directory /var/www/nextcloud>
Require all granted
AllowOverride All
Options FollowSymLinks MultiViews
</Directory>

ErrorLog ${APACHE_LOG_DIR}/nextcloud-error.log
CustomLog ${APACHE_LOG_DIR}/nextcloud-access.log combined

</VirtualHost>

Read more

Leave a Reply

Your email address will not be published. Required fields are marked *