How to Install Nextcloud with Apache on Ubuntu 22.04 LTS

Published: 18 September 2023
on channel: MivoCloud
962
52

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:
VPS/VDS - https://www.mivocloud.com/

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
nano /etc/php/8.1/apache2/php.ini
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;
wget https://download.nextcloud.com/server...
unzip nextcloud-24.0.1.zip
mv nextcloud /var/www/html/
chown -R www-data:www-data /var/www/html/nextcloud
chmod -R 775 /var/www/html/nextcloud
nano /etc/apache2/sites-available/next.conf

VirtualHost *:80
ServerAdmin [email protected]
DocumentRoot /var/www/html/nextcloud
ServerName next.example.com
ErrorLog /var/log/apache2/nextcloud-error.log
CustomLog /var/log/apache2/nextcloud-access.log combined

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


Watch video How to Install Nextcloud with Apache on Ubuntu 22.04 LTS online without registration, duration hours minute second in high quality. This video was added by user MivoCloud 18 September 2023, don't forget to share it with your friends and acquaintances, it has been viewed on our site 96 once and liked it 5 people.