Install

Start by referencing the deb source into the apt source list

# sh
echo 'deb http://download.opensuse.org/repositories/isv:/ownCloud:/community/Debian_7.0/ /' >> /etc/apt/sources.list.d/owncloud.list 
apt-get update
apt-get install owncloud

Move under /home

# sh
mv /var/www/owncloud/ /home/
chmod -R www-data: /home/owncloud

Self signed certificate

The FQDN should match your cloud domain name

# sh
mkdir -p /etc/ssl/local/faz-b.com
openssl req -new -x509 -days 1825 -nodes -out /etc/ssl/local/faz-b.com/cloud.pem -keyout /etc/ssl/local/faz-b.com/cloud.key
chmod -R 600 /etc/ssl/local

Apache vhost

# sh
<VirtualHost *:443>
...
SSLEngine On
SSLCertificateFile /etc/ssl/local/faz-b.com/cloud.pem
SSLCertificateKeyFile /etc/ssl/local/faz-b.com/cloud.key
...

add ssl mod, apply and restart

# sh
a2enmod ssl
service apache2 restart

Sources

Created on 25-02-2014 by Eric le bihen

comments powered by Disqus