- What is ownCloud?
- How to prepare web server for installation?
- Installation of ownCloud
- Completion of the establishment
First, we’ll see what exactly ownCloud is!
It is an open source application for cloud storage and online file management. Basically it is similar to the famous DropBox, because it can store and synchronize files between one or more work stations or servers and ownCloud server. It is also fulfilling the role of backup server for safekeeping files and server synchronization. To implement this service you must have a web server running PHP and MySQL or SQLite.
Among all these features, there is obviously the possibility to share files; also you can play music directly online with the integrated player, can manage calendar, contact management, viewing and editing documents online, the visualization and filing photos in galleries, etc…. Moreover, many plugins are available in order to insert new functionality to ownCloud.
Here, we took Debian server and we are going to see together how to install ownCloud with Apache on web server that coupled with PHP and SQLite.
But, before we proceed, it is important to know how to prepare web server for the installation!!!
Before installing ownCloud application, ensure that your web server is equipped with essentials. If you haven’t, then first install Apache and PHP libraries for ownCloud’s different needs. We will enter the following commands:
apt-get install apache2 php5 php5-common php5-gd
apt-get install php5-sqlite curl libcurl3 libcurl3-dev php5-curl
For information, we install apache2, php5 and SQLite and several PHP modules. However, MySQL installs automatically with ownCloud during the installation via apt-get.
Installation of ownCloud
Now we continue with the installation of ownCloud. Following are the commands that we would type:
echo 'deb http://download.opensuse.org/repositories/isv:/ownCloud:/community/Debian_7.0/ /' >>
apt-get install owncloud
Here, we just insert a new row to the repository containing ownCloud Addons to our sources.list and then we updated our deposits and installed ownCloud. When installing ownCloud, MySQL database service is also installed, it will then have to indicate a password twice for the “root” or MySQL.
Note: PHP5 packages allowing PHP to communicate with MySQL,
which is also installed automatically during installation of ownCloud.
So it makes our work easier.
We will then set the “group www-data”, containing the user of the same name used by Apache as a group owner on useful directories in the operation of ownCloud. We will seize it for the following commands:
chown www-data:www-data -R owncloud/