correct Redis config, various other small fixes

Conflicts:
	admin_manual/configuration_files/files_locking_transactional.rst
This commit is contained in:
Carla Schroder
2015-07-14 13:17:30 -07:00
parent 4d5c672644
commit c626e6ae44
8 changed files with 27 additions and 21 deletions

View File

@@ -23,29 +23,32 @@ The new file locking mechanism has these capabilities:
You must install the Redis server and ``php-redis`` module for the new file
locking to work. On Debian/Ubuntu/Mint this is ``redis-server`` and
``php5-redis``, and on Red Hat/CentOS/Fedora is it ``redis``
and ``php-pecl-redis`` from the EPEL repository.
and ``php-pecl-redis`` from the EPEL repository. After installing Redis and its
corresponding PHP module, restart your HTTP server.
After installing Redis you must enter a simple configuration in your
``config.php`` file, like this example::
'filelocking.enabled' => 'true',
'memcache.local' => '\OC\Memcache\Redis',
'redis' => array(
'host' => 'localhost',
// can also be a unix domain socket:
'/tmp/redis.sock',
'port' => 6379,
'timeout' => 0.0,
// Optional, if undefined SELECT will not run and will use Redis
// Server's default DB Index.
'dbindex' => 0,
),
The **Server status** section on your ownCloud Admin page indicates whether
experimental file locking is enabled or disabled, and if it is configured
correctly.
'filelocking.enabled' => 'true',
'memcache.locking' => '\OC\Memcache\Redis',
'redis' => array(
'host' => 'localhost',
// can also be a unix domain socket:
'/tmp/redis.sock',
'port' => 6379,
'timeout' => 0.0,
// Optional, if undefined SELECT will not run and will use Redis
// Server's default DB Index.
//'dbindex' => 0,
),
.. figure:: ../images/file-lock-status.png
The **Server status** section on your ownCloud Admin page indicates whether
<<<<<<< HEAD:admin_manual/configuration_files/files_locking_experimental.rst
experimental file locking is enabled or disabled.
.. figure:: ../images/transactional-locking-1.png
.. figure:: ../images/transactional-locking-2.png
See ``config.sample.php`` to see configuration examples for Redis, and for all
supported memcaches.

View File

@@ -14,7 +14,7 @@ File Sharing and Management
external_storage_configuration
encryption_configuration
files_locking_enabling
files_locking_experimental
files_locking_transactional
federated_cloud_sharing_configuration
previews_configuration
serving_static_files_configuration

View File

@@ -584,7 +584,7 @@ improve login times set up a slave LDAP server to share the load.
The Redis key-value cache and store is an excellent fast and robust cache, and
if you are using the new experimental file locking (see
:doc:`../configuration_files/files_locking_experimental`) then you must use
:doc:`../configuration_files/files_locking_transactional`) then you must use
Redis. Redis configuration looks like this::
'filelocking.enabled' => 'true',

View File

@@ -229,9 +229,10 @@ Status codes:
* 100 - successful
* 998 - user unknown
Example
Example:
.. code-block:: bash
$ curl -X DELETE "https://cloud.example.com/ocs/v1.php/cloud/users/myself@testshib.org/non_shib_password" -u admin:admin
<?xml version="1.0"?>
<ocs>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

View File

@@ -1,4 +1,6 @@
.. _nginx_configuration_example:
===================
Nginx Configuration
===================