How to install owncloud on a Debian server

chown -R /var/www
apt-get -y install php5-curl mysql-server-5.5
curl https://download.owncloud.com/download/community/setup-owncloud.php -O
echo 'deb http://download.opensuse.org/repositories/isv:ownCloud:community/Debian_6.0/ /' >> /etc/apt/sources.list.d/owncloud.list
wget http://download.opensuse.org/repositories/isv:ownCloud:community/Debian_6.0/Release.key
apt-key add - < Release.key
apt-get update
apt-get install owncloud

Now, run the php installer:

http://mychosenurl/setup-owncloud.php

Now, just go along with the steps.