Projet

Général

Profil

Install

OwnCloud 6.0.4 install on Debian 8 (jessie) with MariaDB and Apache2

Database

aptitude install mariadb-server

Create database and user

mysql -u root -p
create database owncloud;
create user 'owncloud'@'localhost' IDENTIFIED BY '<password>';
GRANT ALL ON owncloud.* TO 'owncloud'@'localhost';
flush privileges;
exit;

OwnCloud

aptitude install owncloud

Apache

Disable default vhost

a2dissite 000-default

Create owncloud.conf in /etc/apache2/sites-available/

<VirtualHost *:80>
    ServerName owncloud.regdrasil.com
    ServerAdmin webmaster@localhost
    DocumentRoot /usr/share/owncloud

    <Directory /usr/share/owncloud/>
        Options +FollowSymLinks
        AllowOverride All
        Require all granted
    </Directory>

    ErrorLog ${APACHE_LOG_DIR}/owncloud-error.log
    LogLevel warn
    CustomLog ${APACHE_LOG_DIR}/owncloud-access.log combined

</VirtualHost>

Activate the vhost

a2ensite owncloud

Reload apache config

service apache2 reload

You can now configure your owncloud on http://yourserver/