Installing OwnCloud 10.0.2 / Debian 9.0

Setup Pre req.

apt-get install unzip nano

apt-get install apache2 mariadb-server libapache2-mod-php

apt-get install php-gd php-json php-mysql php-curl

apt-get install php-intl php-mcrypt php-imagick

apt-get install php-mbstring php-xml php-zip


wget https://download.owncloud.org/community/owncloud-10.0.2.zip
unzip owncloud-10.0.2.zip
mv owncloud /var/www/

Setup Apache 2 default file.

cd /etc/apache2/sites-available/

nano 000-default.conf

<VirtualHost *:80>
        ServerName owncloud.sesipod.info
        ServerAdmin [email protected]
        DocumentRoot /var/www/owncloud
        ErrorLog ${APACHE_LOG_DIR}/error.log
        CustomLog ${APACHE_LOG_DIR}/access.log combined
        <Directory "/var/www/owncloud">
        AllowOverride All
        # Allow open access:
        Require all granted
        </Directory>
</VirtualHost>

# vim: syntax=apache ts=4 sw=4 sts=4 sr noet

Set proper permissions for 'data' folder

cd /var/www/owncloud/

chown -R www-data:www-data data


Fix .htaccess file

/var/www/owncloud/data

chmod 664 .htaccess