The owncloud odyssey – Part 2

Ok, lets cut to the core here. This is how I installed and set up the owncloud on my dad’s server pc. I assume you got a running linux os, preferably one that works with owncloud without having slow sync speed!

Open terminal

sudo apt-get update
sudo apt-get upgrade

Make sure you got a up2date installation.

sudo apt-get install owncloud

BAM! That’s basically it, well at least from an installation point of view. Now you gonna see alot of stuff going on on the screen, including php, mysql and apache2 being installed. Those are required for owncloud to run properly or run at all. You could go through the “hassle” and install the “LAMP-Server” on its own before hand, but why would you if it is this easy anyway?!

You will be asked for a mysql password and that kinda stuff and it might take some additional steps afterwards but if you follow the basic lines of this guide https://help.ubuntu.com/community/ApacheMySQLPHP you should be good to go. It wasn’t that complicated. The apache runs pretty much straight out of the box.
Go open Firefox and type “http://localhost ” in the addressbar, or go check it out on another computer on the network with the IP address of your machine that is running the apache. If you see an “It works” kinda webpage, it’s all cool and the apache is working for now.

Now to go on with the owncloud installation, we need to configure mysql. Well, at least I did that pre-owncloud configuration, don’t know if you really need it.
Still in terminal type the following:

mysql -u root -p

This will enter the mysql console in which the commands from here: http://www.pantz.org/software/mysql/mysqlcommands.html – really help!
To create a new database for your later owncloud installation type:

CREATE DATABASE owncloud;

and

/q

to leave the mysql console and be back at the bash. Basically you are now set to go for the owncloud easy configuration via the webfrontend.
Go to your browser of choice, preferably the one you checked your apache server with, maybe the “It works” page is still open, and append /owncloud to the previous address. It should look something like this:

http://localhost/owncloud

or with an ip (example)

http://192.168.1.27/owncloud

You should see a configuration inputmask. The top segment with the username and the password, and the second segment below for your database configuration and where the owncloud should store the main data which is uploaded. Choose a username and a password of your liking. The folder where owncloud stores the uploaded data will be

/home/username/owncloud/data/

for me, since I configured xubuntu on installation to have the /home/ folder on a seperate harddrive. For me, I had to create the /home/username/owncloud/ folder beforehand and grant rights so owncloud can create files and folders within. To do that simply type the following into the terminal:

sudo chown -R www-data:www-data /path/to/your/owncloud/data

In my case:

sudo chown -R www-data:www-data /home/username/owncloud/data

Helpful link: http://doc.owncloud.org/server/4.5/admin_manual/installation.html#set-the-directory-permissions

Fill in the database details as you previously created a user and the database:


"dbtype" => "mysql",
"dbname" => "owncloud",
"dbuser" => "username",
"dbpassword" => "password",
"dbhost" => "localhost",

I didn’t create an extra user, which is probably a horrible mistake I heard, but that’s not to matter now.
Click the button and after a couple of seconds you should be able to see the main owncloud file-manager interface with an add which points you to the existence of iOS and Android apps of owncloud, more on that matter later. For now you just successfully installed and configured your own cloud on a private server pc.

Congratulations.

Advertisements

Tags: , , , , , , , , , , ,

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: