How to install Nextcloud on Ubuntu 17.10

Welcome to Today we are going to install Nextcloud on Ubuntu 17.10. Nextcloud is another free and open source file storage and sharing service. With this tool, you can build your own cloud storage, share files and documents without relying with any third party cloud providers. You have full control of your data. Nextcloud gives you access to all your files, photos and documents from anywhere. You can run Nextcloud server at home, public cloud server or official Nextcloud providers. Nextcloud allows us to access, sync and share our existing data in FTP server, Dropbox or NAS. 

Before you install

Nextcloud does not require a high specification server to run. If you have a low cost public cloud server with the following specifications will also work. You may build a low cost public cloud server at DigitalOcean for just $5 per month. Power up your own cloud server and then install ubuntu on it. 

  • Recommended minimum RAM: 512 MB
  • 1 or 2 Cores CPU 

Steps to install Nextcloud on Ubuntu 17.10

At the moment, Nextcloud 12.0.3 is now available. I am going to install Nextcloud on Ubuntu 17.10 Server

Step 1. Install LAMP Server on Ubuntu 17.10

Nextcloud requires a working web server with MySQL/MariaDB and PHP support. You can follow my previous tutorial to install LAMP Server on Ubuntu 17.10 Server. Nextcloud needs some other PHP modules to run. So, we need to install it now. 

Output example:

Step 2. Create MySQL Database for Nextcloud

On this step we are going to create a new MySQL database and user for Nextcloud.

Step 3. Download and install Nextcloud 12.0.3

Now we need to download the Nextcloud package. Use the following command to download Nextcloud 12.0.3 or visit the official download page for newer version if available.

Now extract the package. This will produce a new directory called nextcloud inside your /tmp directory

Now change the ownership

Move nextcloud folder to /var/www/html/ directory

Configure Apache

We need to create apache configuration file. Create a new config file under /etc/apache2/sites-available/. For example:

Now paste the following lines

Don’t forget to change the installation directory to match with yours. In this case, we put our nextcloud directory under /var/www/html/.

Now execute these commands to enable some modules

Restart Apache

Configure Nextcloud via Web Browser

Open a web browser and type your server ip address with the following format:


You should now see the following screen on your browser

Create a new admin user, password and also you will need to supply the MySQL database name and user we created earlier.

Finally, your Nextcloud is now ready

install nextcloud on Ubuntu 17.10



Nextcloud is a great solution for you who wants to build a powerful cloud storage and file sharing service. Imagine you have a Dropbox like service on your own server. Install Nextcloud on Ubuntu 17.10 is pretty easy isn’t it? With a little effort we can have a great server. You have full control of any aspects on the system. Thanks for reading this how to install Nextcloud on Ubuntu 17.10. Hope this useful for anyone who wants to learn Linux and build a powerful server.


Be the first to comment

Leave a Reply

Your email address will not be published.