How to Install ownCloud on Ubuntu 12.10 - Tutorial
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.
sudo apt-get update
sudo apt-get upgrade
sudo apt-get nano
Now let’s install Lamp server on Ubuntu 12.10. Anywhere in the installation if you are asked y/n , please select y.
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
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.
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.
sudo a2enmod rewrite
sudo a2enmod headers
Now we have to make a little change in Apache2 configuration file.
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.
sudo service apache2 restart
Downloading ownCloud Files and Installing ownCloud
Execute the following command to download the ownCloud files from their website.
Now we have to convert the downloaded file into executable format
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.
mv owncloud /var/www
sudo chown -R www-data:www-data owncloud
Now open your browser and type http://vps-ip/owncloud/ , and finish the installation.