OwnCloud is a free and open source cloud system for Linux and Windows. With OwnCloud you can have your own cloud server to store your files. For more information about Owncloud, you can visit http://owncloud.org. This tutorial is going to show you how to install OwnCloud on Ubuntu 14.04 manually. There are several ways to get Owncloud installed on Ubuntu. But here I just want to show you how to do it manually.
First, we need to install Apache web server, PHP and MySQL on Ubuntu 14.04. You can do this by executing this command on Terminal
sudo apt-get install apache2 mysql-server libapache2-mod-php5 php5-gd php5-json php5-mysql php5-curl php5-intl php5-mcrypt php5-imagick
During installation you will be asked to create a password for MySQL root user. Simply type your own password and confirm it.
Now download Owncloud package. Simply click this link or type this command
Now extract the file
tar -xjvf owncloud-6.0.3.tar.bz2
The command above will create a new directory called owncloud. Now we need to copy or move the directory to the webserver root.
sudo cp -r /home/dhani/Downloads/owncloud /var/www/html/
At this point, if you tried to open the Owncloud, you will see the following error on screen
This is because Apache can’t write to the config directory. So, we need to modify the permission. Execute this command on Terminal
sudo chown -R www-data:www-data /var/www/html/owncloud
Next we need to configure Apache
Enabling SSL on Apache
sudo a2enmod ssl
sudo a2ensite default-ssl
sudo service apache2 reload
Now we need to edit the file in /etc/apache2/sites-available/default-ssl.conf. I use nano to edit it
sudo nano /etc/apache2/sites-available/default-ssl.conf
Now, we need to add the following lines to the default-ssl.conf file right above the </VirtualHost> line
Options Indexes FollowSymLinks MultiViews
Require all granted
So it should looks like this
Next, enable the mod_rewrite module.
sudo a2enmod rewrite
Now restart apache
sudo service apache2 restart
Now open Firefox and type
You should now able to open your Owncloud web dashboard, create a new admin user, create new users and many other things.