Owncloud installeerimine
0-zip php7.0-xml php7.0-mbstring
Download Owncloud 10 package.
cd /tmp
wget https://download.owncloud.org/community/owncloud-10.0.2.tar.bz2
Extract Owncloud and change the permission
tar -xvf owncloud-10.0.2.tar.bz2
chown -R www-data:www-data owncloud
mv owncloud /var/www/html/
5. Configure Apache Web Server
nano /etc/apache2/sites-available/owncloud.conf
Following goes into owncloud.conf file:
Alias /owncloud "/var/www/owncloud/"
Options +FollowSymLinks
AllowOverride All
Dav off
SetEnv HOME /var/www/owncloud
SetEnv HTTP_HOME /var/www/owncloud
# just in case if .htaccess gets disabled
Require all denied
6. Create symlink
ln -s /etc/apache2/sites-available/owncloud.conf /etc/apache2/sites-enabled/owncloud.conf
Execute these commands to enable some modules
a2enmod headers
a2enmod env
a2enmod dir
a2enmod mime
7