ownCloud is a simple tool to manage your data on your VPS. We all have used Dropbox , Box or Mediafire to store and share our data with our friends, family and with our colleagues. But they all have storage limit, If we pay them monthly/yearly we can expand our space. But instead of spending so much money you can spend a few dollars and get a cheap server and install ownCloud on it and save all your data on it and share it. Now let’s start the following tutorial
First we need to ensure that all the files are upto date.
1 2 3 4 5 6 |
sudo apt-get update sudo apt-get upgrade sudo apt-get nano |
Now let’s install Lamp server on Ubuntu. Anywhere in the installation if you are asked y/n , please select y.
1 2 3 |
sudo apt-get install lamp-server^ |
Now you will be asked for entering a mysql password, make sure you enter a strong password.
Installing and setting up MySql
1 2 3 |
sudo mysql_secure_installation |
It will prompt you for your MySQL root password. Enter the password you entered upon installation of Lamp.
It will ask you to change root password, type “n” for no.
It will ask you to remove anonymous users, type “y” for yes.
It will ask you to disallow remote root logins, type “y” for yes.
It will ask you to remove test database and access to it, type “y” for yes.
It will ask you to reload privilege tables, type “y” for yes.
Now MySql is installed and everything is configured properly. Now we will install necessary plugins to run ownCloud.
Installing necessary things for ownCloud
Before we install ownCloud we must make sure we have installed all the necessary things which will be required by ownCloud.
1 2 3 |
sudo apt-get install php5-gd php-xml-parser php5-intl smbclient curl libcurl3 php5-curl |
In few minutes everything will be installed on your server. Now we have to enable mod_rewrite and mod_headers so type the following code.
1 2 3 4 5 |
sudo a2enmod rewrite sudo a2enmod headers |
Now we have to make a little change in Apache2 configuration file.
1 2 3 |
sudo nano /etc/apache2/sites-available/default |
Under Change AllowOverride None to AllowOverride All . Now press Ctrl + X and Y and then hit enter.
Now we will restart the apache server.
1 2 3 |
sudo service apache2 restart |
Downloading ownCloud Files and Installing ownCloud
Execute the following command to download the ownCloud files from their website.
1 2 |
wget http://download.owncloud.org/community/owncloud-5.0.4.tar.bz2 |
Now we have to convert the downloaded file into executable format
1 |
tar -xjf owncloud-5.0.4.tar.bz2 |
Now we have to move the extracted files to a proper place so that it’s easily accessible for us.
1 2 3 |
mv owncloud /var/www cd /var/www sudo chown -R www-data:www-data owncloud |
Finishing Touches
Now open your browser and type http://vps-ip/owncloud/ , and finish the installation.
That’s it you have completed everything. Now open http://vps-ip/owncloud , and login and explore ownCloud. If you have any issues just comment here we will sort it out.
1 comment for “How to Setup ownCloud on Ubuntu”