Install Nextcloud (fork of ownCloud) – Next generation Enterprise file sharing Server on Debian/Ubuntu

Save and close the file. Then create a symlink to /etc/apache2/sites-enabled.

$ sudo ln -s /etc/apache2/sites-available/nextcloud.conf /etc/apache2/sites-enabled/nextcloud.conf

Nextcloud, required the mod_rewrite module enabled on Apache to work properly.

$ sudo a2enmod rewrite

Also enable the additional Apache modules recommended by nextcloud.

$ sudo a2enmod headers
$ sudo a2enmod env
$ sudo a2enmod dir
$ sudo a2enmod mime

Finally restart Apache

[For systemd]
$ sudo systemctl restart apache2

[For SysVinit system]
$ sudo service apache2 restart

Setup Nextcloud via web installer

Navigate your browser to http://Your-IP/nextcloud, Enter the username, password & MariaDB details, then hit Finish Setup button. It will take a while to complete the setup and you will be redirected to admin page.
install-nextcloud-on-debian-ubuntu-linuxmint-1a

About Magesh Maruthamuthu

Love to play with all Linux distribution

View all posts by Magesh Maruthamuthu

3 Comments on “Install Nextcloud (fork of ownCloud) – Next generation Enterprise file sharing Server on Debian/Ubuntu”

    1. Keep nextcloud files in domain home directory instead of sub directory to access http://www.mydomain.com

      If you want to enable self-signed certificate, just use following commands for Ubuntu based systems.

      a2enmod ssl
      a2ensite default-ssl

      service apache2 reload

Leave a Reply

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