Install Nextcloud on Apache2 Server

Copy the NextCloud data to the www directory

  1. In terminal change location to /tmp/

  2.  We will now download the .zip file into this directory.
  3. Once downloaded verify that the zip file is located in the /tmp/ directory.

  4. We now need to unpack the zip file.

    If you don’t have the unzip program installed you can run the following script.


    After Unpacking the zip file you should now see a new folder called nextcloud.

  5. We now need to copy and create the nextcloud folder in the www directory.


    Configuring the site with Apache

1. We will need to create the nextcloud .conf file in /etc/apache2/sites-available/nextcloud.conf . Inside this conf file we need the following.

2. We then need to create a symlink. This creates a sync conf file between enabled sites and available sites.

3. For Nextcloud to work correctly, we need the module mod_rewrite. Enable it by running:

4. Now restart Apache2 or reboot.


Installing NextCloud

  1. Run the following cmd