Comments on How to Install Nextcloud on Debian 12

This tutorial will show you how to install Nextcloud on a Debian 12 server. You will install Nextcloud with Apache2 web server, MariaDB server, and PHP 8.2. Furthermore, you will also secure your installation with UFW (Uncomplicated Firewall) and SSL/TLS certificates from Letsencrypt.

9 Comment(s)

Add comment

Please register in our forum first to comment.

Comments

By: Paulus de Boskabouter

This line:

sudo certbot --apache2 --agree-tos --redirect --hsts --staple-ocsp --email [email protected] -d nextcloud.hwdomain.iogive a error.Certbot doesn't understand apache2, if you change it in apache then it works.I don't know why...The other thing is that SSH doensn't work anymore when you finished with the install.

By: Paulus de Boskabouter

SSH is now working again. It was UFW that blocked the port (other dan) 22

By: Minty95

Like Paulus I had to modifiy the apache2 to apache for the sudo certbot

Also had to sudo su  : curl -o nextcloud.zip https://download.nextcloud.com/server/releases/latest.zip  (to work, normal sudo did'nt work)

Also am unable to get the  'memcache.local' => '\OC\Memcache\APCu', to work in sudo nano /var/www/nextcloud/config/config.php

Cron throw a error every 5 mins, had to comment the line out

Other than that , thnaks for the article

By: ath_2791

I also had to disable the default config site of apache with

a2dissite 000-default.conf

And to automatically redirect http-requests to https, I modified nextcloud.conf to

<VirtualHost *:80>    ServerName MYDOMAIN.NET    Redirect permanent / https://MYSERVERIP_INTERNALLY/</VirtualHost>

 

By: ghanim

Thanks for the excellent instructions!how can I update nc? When I tried to do this, I received the following error:Composer autoloader not found, unable to continue. Check the folder “3rdparty”. Running “git submodule update --init” will initialize the git submodule that handles the subfolder “3rdparty”Now I think I have to reinstall the entire NC. Does anyone have any idea how this problem can be solved or how the NC can be properly updated in the future?

By: JeremiahBarlow

Half way down the page when you:  cd /var/www/ 

Remember to: sudo the curl  (see example)

sudo curl -o nextcloud.zip https://download.nextcloud.com/server/releases/latest.zip

By: JeremiahBarlow

sudo unzip nextcloud.zip

By: Bdjoe007

Hello thanks for this tutorial, when I try to access my first web page I have a connection error, my domain name is from the noip site can this be a problem? my configuration is mounted on a raspberry pi 4 under debian 12

By: RobSzw

Hello

I have installed nextcloud version 17 on debian 9. I would like to update to the latest version but I think a clean install will be the fastest than updating everything one by one. Can I make a copy of some configuration files so I can transfer them to a fresh debian 12 and nextcloud 30 installation?