If you need tips & tricks, here they are...

Joomla! AddThis


Install ownCloud on Debian Linux

How-To Install ownCloud on a Debian Linux

I thought this would be supported and that the installation would be very simple after looking at ownClouds homepage.. but noo...

First I installed a basic Debian Linux 6.

The steps

Choose a package manager .. named PKGMGR here -- could be apt-get, aptitude or other of your choose

PKGMGR install apache2 php5 php5-json php-xml-parser php5-mbstring php5-zip php5-gd
PKGMGR curl libcurl4-openssl-dev php5-curl bzip2

If you want to use MySQL as database
PKGMGR mysql-server mysql-client mysql-common php5-mysql

or SQLite
PKGMGR sqlite3 php5-sqlite

And now for the fun part

cd /usr/src
mkdir ownCloud
cd ownCloud
bunzip2 -d -c owncloud-4.0.6.tar.bz2 | tar xvf -
cp -a owncloud /var/www/
cd /var/www
chown -R www-data:www-data owncloud

Now lets configure the webserver
edit the file /etc/apache2/sites-enabled/000-default

  1. change " DocumentRoot /var/www/ " to " DocumentRoot /var/www/owncloud "
  2. change " Directory /var/www " to " Directory /var/www/owncloud "
  3. change " AllowOverride None " to " AllowOverride All " (in the directory clause defined above)
  4. enable mod_rewrite

cd /etc/apache2
pico -w sites-enabled/000-default
cd mods-enabled
ln -s ../mods-available/rewrite.load

Boot up the webserver

invoke-rc.d apache2 restart

If you choose to use MySQL as database you need to setup the database first
You can use which ever name you want as database, user and password below.. please do! :)

mysql -p mysql
create database ownloud;
grant all on owncloud.* to 'owncloud'@'localhost' identified by "MyVerySecretPassword";
flush privileges;

Now surf to your server and setup ownCloud!

Add comment

Security code

Please consider supporting our efforts.

We use cookies on our website. Some of them are essential for the operation of the site, while others help us to improve this site and the user experience (tracking cookies). You can decide for yourself whether you want to allow cookies or not. Please note that if you reject them, you may not be able to use all the functionalities of the site.