This post shows you how to install NextCloud on Ubuntu 17.04 / 17.10 with Apache2, MariaDB and PHP support. NextCloud is a fork of OwnCloud. Like DropBox and other cloud storage services, NextCloud and OwnCloud provide similar functions and unlike the others, they both are free to use.
Both are open source software that enable private cloud services on users’ own servers. OwnCloud and NextCloud are self-hosted file sync and share app platforms and with them you can access & sync your files, contacts and data across your devices.
This brief tutorial shows students and new users steps to install and configure NextCloud on Ubuntu 17.04 / 17.10 Servers their own environment.
To get started with installing NextCloud, follow the steps below:
Step 1: Install Apache2
NextCloud requires a webserver to function and the most popular webserver in use today is Apache2. So, go and install Apache2 on Ubuntu by running the commands below:
sudo apt install apache2
After installing Apache2, run the commands below to disable directory listing.
sudo sed -i "s/Options Indexes FollowSymLinks/Options FollowSymLinks/" /etc/apache2/apache2.conf
Next, run the commands below to stop, start and enable Apache2 service to always start up with the server boots.
Finally, configure Apahce2 site configuration file for NextCloud. This file will control how users access NextCloud content. Run the commands below to create a new configuration file called nextcloud.conf
To load all the settings above, restart Apache2 by running the commands below.
sudo systemctl restart apache2.service
Then open your browser and browse to the server domain name followed by install. You should see OwnCloud setup wizard to complete. Please follow the wizard carefully.
You should then see NextCloud setup page.. Connect to the database using the information you created and continue. Select the database server installed on your systems by clicking it as shown in the image below
Click Finish setup and you’re done.
Congratulations! You have successfully installed OwnCloud on Ubuntu `17.04 / 17.10