How to Install Nextcloud with Apache on Ubuntu 22.04 LTS

preview_player
Показать описание
Nextcloud is a free and open-source, file sharing and syncing solution that helps you to store your personal documents, files, photos, and other in a central location. It is very similar to other cloud storage solutions like Dropbox, Google Drive, iCloud, etc. You should switch to NextCloud if you are worried about privacy because you can install Nextcloud on your own server. You can upload files and other docs to your Nextcloud server and then sync all of them to your desktop pc, laptop, or smartphone.

Useful Links:

WARNING - ANGLED BRACKETS AREN'T ALLOWED IN DESCRIPTION SO BE ATTENTIVE TO THE VIDEO IN NANO EDITOR

Commands Used:
apt install apache2 mariadb-server php php-cli php-fpm php-json php-intl php-imagick php-pdo php-mysql php-zip php-gd php-mbstring php-curl php-xml php-pear php-bcmath apache2 libapache2-mod-php -y
systemctl restart apache2
mysql
CREATE DATABASE nextcloud;
CREATE USER 'nextcloud'@'localhost' identified by 'password';
GRANT ALL PRIVILEGES ON nextcloud.* TO 'nextcloud'@'localhost';
FLUSH PRIVILEGES;
QUIT;
mv nextcloud /var/www/html/
chown -R www-data:www-data /var/www/html/nextcloud
chmod -R 775 /var/www/html/nextcloud

VirtualHost *:80
DocumentRoot /var/www/html/nextcloud

Directory /var/www/html/nextcloud
Options +FollowSymlinks
AllowOverride All
Require all granted
SetEnv HOME /var/www/html/nextcloud
SetEnv HTTP_HOME /var/www/html/nextcloud
IfModule mod_dav.c
Dav off
/IfModule
/Directory
/VirtualHost

a2ensite next
a2enmod rewrite dir mime env headers
systemctl restart apache2
systemctl status apache2
Рекомендации по теме