Owncloud ab 7.04 on Debian apache2

First of all, if you a experienced LinuxUser, it is not that hard, you are firm in navigating  your favorited shell, like the bash. I also assume you are done with all tutorial about using the 10 most common commands in linux environment.


You probably have setten up a lot of aliases, like a2res=”sudo service apache2 restart” which i normally would do via:
echo 'alias a2res="sudo service apache2 restart"' >> ~/.bash_aliases && source ~/.bash_aliases
You will need some more, because saving time is manner. Its later then you think.

Make sure you are running perfect with apache2 php5 phpmyadmin mysql-server mysql-client and several additions.

swallow the files:
wget http://download.owncloud.org/community/owncloud-latest.tar.bz2
dtrx or tar -xvf the directory to your webservers home eg. /var/www/clownoud

This easy script will set here the permissions: assuming you have enabled rewriting by sudo a2enmod rewrite

#! /bin/bash

find ${ocpath}/ -type f -print0 | xargs -0 chmod 0640
find ${ocpath}/ -type d -print0 | xargs -0 chmod 0750

chown -R root:${htuser} ${ocpath}/
chown -R ${htuser}:${htuser} ${ocpath}/apps/
chown -R ${htuser}:${htuser} ${ocpath}/config/
chown -R ${htuser}:${htuser} ${ocpath}/data/

chown root:${htuser} ${ocpath}/.htaccess
chown root:${htuser} ${ocpath}/data/.htaccess

chmod 0644 ${ocpath}/.htaccess
chmod 0644 ${ocpath}/data/.htaccess

chmod +x your file which holds the content above, and run sudo  ./yourFilesName.sh

Set up a DB, DBUser and point your browser to the dir/address of owncloud. Tatah.