Owncloud installieren: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Zeile 70: | Zeile 70: | ||
<pre> | <pre> | ||
ps ax | grep redis | ps ax | grep redis | ||
</pre> | |||
In der Datei ''/var/www/owncloud/config/config.php'' folgende Zeilen hinzufügen: | |||
<pre> | |||
'memcache.local' => '\OC\Memcache\Redis', | |||
'redis' => array( | |||
'host' => '/var/run/redis/redis.sock', | |||
'port' => 0, | |||
), | |||
</pre> | </pre> | ||
Version vom 10. April 2016, 10:14 Uhr
Installation
Download:
wget https://download.owncloud.org/community/owncloud-8.2.2.zip
In Apache Wurzelverzeichnis verschieben
unzip owncloud-8.2.2.zip sudo mv owncloud /var/www/owncloud/ sudo chown -R www-data:www-data /var/www/owncloud/
Datenbank erstellen:
mysql -u root -p mysql> create database if not exists <database name>; mysql> create user 'onwcloud'@'%' identified by '<password>'; mysql> grant usage on *.* to 'owncloud'@'%' identified by '<password>'; mysql> grant all privileges on owncloud.* to 'owncloud'@'%'; mysql> create user 'onwcloud'@'localhost' identified by '<password>'; mysql> grant usage on *.* to 'owncloud'@'localhost' identified by '<password>'; mysql> grant all privileges on owncloud.* to 'owncloud'@'localhost'; mysql> flush privileges; mysql> quit;
Konfiguration
Apache-Konfiguration anlegen
cd /etc/apache2/conf-available/ sudo nano owncloud.conf
Alias /owncloud "/var/www/owncloud/" <Directory "/var/www/owncloud"> Options +FollowSymLinks AllowOverride All <IfModule mod_dav.c> Dav off </IfModule> SetEnv HOME /var/www/owncloud SetEnv HTTP_HOME /var/www/owncloud </Directory> <Directory "/var/www/owncloud/data/"> # just in case if .htaccess gets disabled Require all denied </Directory>
sudo a2enconf owncloud sudo service apache2 reload
PHP Memory Cache
sudo apt-get install redis-server php5-redis
Checken, ob der Redis-Server läuft:
ps ax | grep redis
In der Datei /var/www/owncloud/config/config.php folgende Zeilen hinzufügen:
'memcache.local' => '\OC\Memcache\Redis', 'redis' => array( 'host' => '/var/run/redis/redis.sock', 'port' => 0, ),
Links
https://doc.owncloud.org/server/8.2/admin_manual/maintenance/migrating.html
Zurück zu Ubuntu