ownCloud is an open-source collection of client-server software for creating file hosting servers. This tutorial is about how to configure OwnCloud on Ubuntu.


OwnCloud is free and popular robust open source enterprise web application written in PHP that’s used for data synchronization and file sharing. It also allows you to easily manage data files, contacts, calendars, to do lists and many more. It is a great alternative to the most popular cloud platforms such as Google Drive, Dropbox, iCloud, and other cloud storage services out there. But unlike the other cloud storage services, OwnCloud self hosted is free to create own host cloud.

ownCloud is an open source private cloud software that provides data access using web interface to create a private cloud. It enables you to create your own file sharing server where you can easily view and sync calendar events, archives, pictures, recordings, tasks, address books with bookmarks, similar to Dropbox and Google Drive. It also provides options to sync and share data across devices all under your control. Install and configure ownCloud supports your data synced for desktop clients as well as mobile app devices. Moreover, You can easily implement user and group access restrictions on files per user using ownCloud on Ubuntu. OwnCloud open source personal storage server is a cross platform application and can be installed on all popular operating systems.

This tutorial will help you to setup owncloud and configure ownCloud on Ubuntu LTS systems.

  • Install LAMP Server
  • Download ownCloud
  • Create MySQL Database and User
  • Install ownCloud
  • What Are The Best Alternatives to OwnCloud?
  • Conclusion

Step 1: Install LAMP Server

To setup own cloud server and how to create a private cloud, we first need to set up a running LAMP server. If you have already installed and running LAMP stack, skip this step else use the followings commands to set up the LAMP on your Ubuntu system.

Install PHP

You can install PHP 5.6 or higher version on your Ubuntu or Debian system by running commands:

Install Apache2

Apache is the most widely used open-source web server software. Next, install the Apache Web Server on Ubuntu for setting up your own cloud server by running:

Install MySQL

MySQL open-source relational database management system is a component of the LAMP web application software stack and others. Now installing MySQL on Ubuntu by running below:

Step 2: Download ownCloud on Ubuntu

After successfully configuring lamp server on your Ubuntu system, Let’s download latest ownCloud private cloud storage solution from its official website.

After download owncloud server software has completed, now extract the downloaded archive under website document root and setup appropriate permissions on files and directories by running for installing owncloud on ubuntu.

Now, remove the archive file and restart apache server.

Step 3: Create Owncloud Database and User

After extracting code, now let’s create a MySQL database and user account for configuring ownCloud personal cloud storage server. Use following set of commands to login to MySQL server to create ownCloud database and user.

Next, we need to install ownCloud on ubuntu from the web interface to create a private cloud.

Step 4: Install ownCloud on Ubuntu

Now access the ownCloud best personal cloud server web panel directory on a web browser. Change localhost to your server IP address or domain name.

You should see the open source owncloud login page. Enter new admin username and password credentials to create an admin account and provide the location of the data folder. If everything okay So then you should get the web page like this.

Now slide your page down. In the below form you need to input username and password to manager best personal cloud server OwnCloud panel. Also provide the database along with username and password to connect OwnCloud server with database server, the location of the data folder and click on Finish Setup.

After completing the setup you will get the admin dashboard. Where you can create users, groups and assigned them permissions, etc.

Yeah! we are done with owncloud installation guide to build personal cloud storage . You now know how to completely install OwnCloud on Ubuntu for building a private cloud step by step similar to Dropbox or Google Drive.

What Are The Best Alternatives to OwnCloud?

Following are the self hosted ownCloud alternatives and competitors file hosting software.

  • Seafile is open source cross-platform file hosting software system
  • Nextcloud is free and open source cloud storage platform
  • Resilio Sync is open source peer to peer file synchronization application
  • Pydio Cells is open source file sharing and synchronisation software
  • Syncthing is free and open source peer-to-peer file synchronization application


Congratulations! You have successfully installed and configured OwnCloud to build your own private cloud with Apache on Ubuntu machine. Now your data is never in the hands of third parties and can be managed privately in virtual private cloud owncloud ubuntu server storage. Many companies are choosing to create their ownCloud servers with a lot of vital information due to many problems with the privacy of data. In our upcoming tutorials, we’ll discuss more interesting topics of web server solution stacks.

Your can join us on Twitter, LinkedIn and our Facebook page. What cloud-based storage solution do you use online?. If you have any questions, please get in touch.


We also have several other articles relating to the day-to-day management of your server.