diff --git a/admin_manual/configuration_database/db_conversion.rst b/admin_manual/configuration_database/db_conversion.rst index b6f484fd2..c85f33f18 100644 --- a/admin_manual/configuration_database/db_conversion.rst +++ b/admin_manual/configuration_database/db_conversion.rst @@ -15,7 +15,7 @@ Run the conversion First setup the new database, here called "new_db_name". In ownCloud root folder call -.. code-block:: bash +:: php occ db:convert-type [options] type username hostname database @@ -32,7 +32,7 @@ apps will not be converted even with option ``--all-apps`` For example -.. code-block:: bash +:: php occ db:convert-type --all-apps mysql oc_mysql_user 127.0.0.1 new_db_name @@ -48,7 +48,7 @@ Unconvertible Tables If you updated your ownCloud installation there might exist old tables, which are not used anymore. The converter will tell you which ones. -.. code-block:: bash +:: The following tables will not be converted: diff --git a/admin_manual/configuration_database/linux_database_configuration.rst b/admin_manual/configuration_database/linux_database_configuration.rst index 14297371e..67e1f0a07 100644 --- a/admin_manual/configuration_database/linux_database_configuration.rst +++ b/admin_manual/configuration_database/linux_database_configuration.rst @@ -65,7 +65,7 @@ If you decide to use a MySQL or MariaDB database, ensure the following: The PHP configuration in :file:`/etc/php5/conf.d/mysql.ini` could look like this: -.. code-block:: ini +:: # configuration for PHP MySQL module extension=pdo_mysql.so @@ -94,7 +94,7 @@ To start the MySQL command line mode use:: Then a **mysql>** or **MariaDB [root]>** prompt will appear. Now enter the following lines and confirm them with the enter key: -.. code-block:: sql +:: CREATE USER 'username'@'localhost' IDENTIFIED BY 'password'; CREATE DATABASE IF NOT EXISTS owncloud; @@ -110,7 +110,7 @@ name of the database. The :file:`config/config.php` as created by the :doc:`../installation/installation_wizard` would therefore contain entries like this: -.. code-block:: php +:: `_ in PHP. The PHP configuration in :file:`/etc/php5/conf.d/oci8.ini` could look like this: -.. code-block:: ini +:: # configuration for PHP Oracle extension extension=oci8.so @@ -233,7 +233,7 @@ Make sure that the Oracle environment has been set up for the process trying to For a local Oracle XE installation this can be done by exporting the following environment variables (eg. in :file:`/etc/apache2/envvars` for Apache) -.. code-block:: bash +:: export ORACLE_HOME=/u01/app/oracle/product/11.2.0/xe export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ORACLE_HOME/lib @@ -252,7 +252,7 @@ To start the Oracle command line mode with a DBA account use:: After entering the password a **SQL>** prompt will appear. Now enter the following lines and confirm them with the enter key: -.. code-block:: sql +:: CREATE USER owncloud IDENTIFIED BY password; ALTER USER owncloud DEFAULT TABLESPACE users @@ -280,7 +280,7 @@ name of the database. The :file:`config/config.php` as created by the :doc:`../installation/installation_wizard` would therefore contain entries like this: -.. code-block:: php +:: false, @@ -51,7 +51,7 @@ Maximum preview size: There are two configuration options to set the maximum size of a preview. -.. code-block:: php +:: null, @@ -61,7 +61,7 @@ By default, both options are set to null. 'Null' is equal to no limit. Numeric values represent the size in pixels. The following code limits previews to a maximum size of 100×100px: -.. code-block:: php +:: 100, @@ -76,14 +76,14 @@ If a lot of small pictures are stored on the ownCloud instance and the preview system generates blurry previews, you might want to consider setting a maximum scale factor. By default, pictures are upscaled to 10 times the original size: -.. code-block:: php +:: 10, If you want to disable scaling at all, you can set the config value to '1': -.. code-block:: php +:: 1, @@ -91,7 +91,7 @@ If you want to disable scaling at all, you can set the config value to '1': If you want to disable the maximum scaling factor, you can set the config value to 'null': -.. code-block:: php +:: null, diff --git a/admin_manual/configuration_server/automatic_configuration.rst b/admin_manual/configuration_server/automatic_configuration.rst index 65c8e40c2..66b2cf4a5 100644 --- a/admin_manual/configuration_server/automatic_configuration.rst +++ b/admin_manual/configuration_server/automatic_configuration.rst @@ -33,7 +33,7 @@ Data Directory ~~~~~~~~~~~~~~ Using the following parameter settings, the "Finish setup" screen requests database and admin credentials settings. -.. code-block:: php +:: ServerName cloud.owncloud.com diff --git a/admin_manual/configuration_server/js_css_asset_management_configuration.rst b/admin_manual/configuration_server/js_css_asset_management_configuration.rst index 2af9b3680..69b687370 100644 --- a/admin_manual/configuration_server/js_css_asset_management_configuration.rst +++ b/admin_manual/configuration_server/js_css_asset_management_configuration.rst @@ -15,7 +15,7 @@ It is not recommended to enable asset-pipelining when using apps pulled via git. Parameters ---------- -.. code-block:: php +:: "owncloud", "logfile" => "owncloud.log", @@ -45,7 +45,7 @@ syslog All log information will be sent to your default syslog daemon. -.. code-block:: php +:: "log_type" => "syslog", "logfile" => "", diff --git a/admin_manual/configuration_server/performance_tuning/webserver_tips.rst b/admin_manual/configuration_server/performance_tuning/webserver_tips.rst index 89d65572f..cd5d74031 100644 --- a/admin_manual/configuration_server/performance_tuning/webserver_tips.rst +++ b/admin_manual/configuration_server/performance_tuning/webserver_tips.rst @@ -62,7 +62,7 @@ requests to be sent over the same TCP connection. This reduces latency by as much as 50%. Especially in combination with the periodic checks of the sync client the following settings are recommended: -.. code-block:: apache +:: KeepAlive On KeepAliveTimeout 100 @@ -83,7 +83,7 @@ because PHP is currently not thread safe. Hostname Lookups ^^^^^^^^^^^^^^^^ -.. code-block:: bash +:: # cat /etc/httpd/conf/httpd.conf ... @@ -103,7 +103,7 @@ down errors. .. MaxKeepAliveRequests 4096 .. ^^^^^^^^^^^^^^^^^^^^^^^^^ -.. .. code-block:: apache +.. :: .. .. StartServers 100 @@ -157,7 +157,7 @@ Compile Nginx with the ``nginx-cache-purge`` module 1. **Preparation:** -.. code-block:: bash +:: cd /opt wget http://nginx.org/keys/nginx_signing.key @@ -182,7 +182,7 @@ Then run ``sudo apt-get update`` 2. **Download the Nginx source from the ppa repository** -.. code-block:: bash +:: cd /opt sudo apt-get build-dep nginx @@ -190,7 +190,7 @@ Then run ``sudo apt-get update`` 3. **Download module(s) to be compiled in and configure compiler arguments** -.. code-block:: bash +:: ls -la @@ -200,7 +200,7 @@ Please replace ``{release}`` with the release downloaded:: If folder "modules" is not present, do: -.. code-block:: bash +:: sudo mkdir modules cd modules @@ -226,7 +226,7 @@ The parameters may now look like:: 4. **Compile and install Nginx** -.. code-block:: bash +:: cd /opt/nginx-{release} sudo dpkg-buildpackage -uc -b @@ -236,7 +236,7 @@ The parameters may now look like:: 5. **Check if the compilation and installation of the ngx_cache_purge module was successful** -.. code-block:: bash +:: nginx -V 2>&1 | grep ngx_cache_purge -o @@ -248,7 +248,7 @@ Show Nginx version including all features compiled and installed:: 6. **Mark Nginx to be blocked from further updates via apt-get** -.. code-block:: bash +:: sudo dpkg --get-selections | grep nginx @@ -267,13 +267,13 @@ Configure Nginx with the ``nginx-cache-purge`` module path that fits to your environment. Replace ``{path}`` in this example with your path created: -.. code-block:: bash +:: sudo mkdir -p /usr/local/tmp/cache 2. **Configuration** -.. code-block:: bash +:: sudo vi /etc/nginx/sites-enabled/{your-ownCloud-nginx-config-file} @@ -336,7 +336,7 @@ Add *inside* the ``server{}`` block, as an example of a configuration:: 3. **Test the configuration** -.. code-block:: bash +:: sudo nginx -s reload diff --git a/admin_manual/configuration_server/reverse_proxy_configuration.rst b/admin_manual/configuration_server/reverse_proxy_configuration.rst index 1e576478f..d2796519e 100644 --- a/admin_manual/configuration_server/reverse_proxy_configuration.rst +++ b/admin_manual/configuration_server/reverse_proxy_configuration.rst @@ -60,7 +60,7 @@ via a multiple domains reverse SSL proxy **https://ssl-proxy.tld/domain.tld/owncloud** with the IP address **10.0.0.1** you can set the following parameters inside the :file:`config/config.php`. -.. code-block:: php +:: `_ - **Example:** -.. code-block:: php +:: @@ -83,7 +83,7 @@ Example XML Output ^^^^^^^^^^ -.. code-block:: xml +:: @@ -121,7 +121,7 @@ Example XML Output ^^^^^^^^^^ -.. code-block:: xml +:: @@ -169,7 +169,7 @@ Examples XML Output ^^^^^^^^^^ -.. code-block:: xml +:: @@ -204,7 +204,7 @@ Example XML Output ^^^^^^^^^^ -.. code-block:: xml +:: @@ -238,7 +238,7 @@ Example XML Output ^^^^^^^^^^ -.. code-block:: xml +:: @@ -284,7 +284,7 @@ Example XML Output ^^^^^^^^^^ -.. code-block:: xml +:: @@ -326,7 +326,7 @@ Example XML Output ^^^^^^^^^^ -.. code-block:: xml +:: @@ -367,7 +367,7 @@ Example XML Output ^^^^^^^^^^ -.. code-block:: xml +:: @@ -408,7 +408,7 @@ Example XML Output ^^^^^^^^^^ -.. code-block:: xml +:: @@ -445,7 +445,7 @@ Example XML Output ^^^^^^^^^^ -.. code-block:: xml +:: @@ -488,7 +488,7 @@ Example XML Output ^^^^^^^^^^ -.. code-block:: xml +:: @@ -531,7 +531,7 @@ Example XML Output ^^^^^^^^^^ -.. code-block:: xml +:: @@ -565,7 +565,7 @@ Example XML Output ^^^^^^^^^^ -.. code-block:: xml +:: @@ -606,7 +606,7 @@ Example XML Output ^^^^^^^^^^ -.. code-block:: xml +:: @@ -645,7 +645,7 @@ Example XML Output ^^^^^^^^^^ -.. code-block:: xml +:: @@ -685,7 +685,7 @@ Example XML Output ^^^^^^^^^^ -.. code-block:: xml +:: @@ -724,7 +724,7 @@ Example XML Output ^^^^^^^^^^ -.. code-block:: xml +:: @@ -778,7 +778,7 @@ Example XML Output ^^^^^^^^^^ -.. code-block:: xml +:: @@ -812,7 +812,7 @@ Example XML Output ^^^^^^^^^^ -.. code-block:: xml +:: diff --git a/admin_manual/enterprise_user_management/user_auth_shibboleth.rst b/admin_manual/enterprise_user_management/user_auth_shibboleth.rst index a84c18592..624f129c5 100644 --- a/admin_manual/enterprise_user_management/user_auth_shibboleth.rst +++ b/admin_manual/enterprise_user_management/user_auth_shibboleth.rst @@ -37,7 +37,7 @@ specific and require a high degree of customization. The ownCloud instance itself is installed in ``/var/www/owncloud/``. The following aliases are defined in an Apache virtual host directive: -.. code-block:: apache +:: # non-Shibboleth access Alias /owncloud /var/www/owncloud/ @@ -283,7 +283,7 @@ Status codes: 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 diff --git a/admin_manual/installation/apps_management_installation.rst b/admin_manual/installation/apps_management_installation.rst index 71f6048b5..5c65ffe62 100644 --- a/admin_manual/installation/apps_management_installation.rst +++ b/admin_manual/installation/apps_management_installation.rst @@ -110,7 +110,7 @@ in that folder. shipped with ownCloud, follow this example to setup an **/apps2/** folder which will be used to store all other apps. -.. code-block:: php +:: false`` to ``"maintenance" => true``: -.. code-block:: php +::