Start by referencing the deb source into the apt source list

# sh
echo 'deb /' >> /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/
openssl req -new -x509 -days 1825 -nodes -out /etc/ssl/local/ -keyout /etc/ssl/local/
chmod -R 600 /etc/ssl/local

Apache vhost

# sh
<VirtualHost *:443>
SSLEngine On
SSLCertificateFile /etc/ssl/local/
SSLCertificateKeyFile /etc/ssl/local/

add ssl mod, apply and restart

# sh
a2enmod ssl
service apache2 restart


Created on 25-02-2014 by Eric le bihen

comments powered by Disqus