diff --git a/admin_manual/configuration_database/linux_database_configuration.rst b/admin_manual/configuration_database/linux_database_configuration.rst index 90ae631c235..59d197179d9 100644 --- a/admin_manual/configuration_database/linux_database_configuration.rst +++ b/admin_manual/configuration_database/linux_database_configuration.rst @@ -51,7 +51,7 @@ If you decide to use a MySQL or MariaDB database, ensure the following: Verify the **transaction_isolation** and **binlog_format**: -:: +.. code-block:: ini [mysqld] ... @@ -61,7 +61,7 @@ If you decide to use a MySQL or MariaDB database, ensure the following: Your :file:`/etc/mysql/my.cnf` could look like this: -:: +.. code-block:: ini [server] skip_name_resolve = 1 @@ -100,30 +100,17 @@ Please refer to the `page in the MySQL manual ** 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 nextcloud CHARACTER SET utf8mb4 COLLATE utf8mb4_bin; @@ -155,7 +142,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 [ \PDO::MYSQL_ATTR_SSL_KEY => '/../ssl-key.pem', @@ -206,12 +193,12 @@ For further services and users, we recommend to create a separate database or PostgreSQL instance. If you decide to use a PostgreSQL database make sure that you have installed -and enabled the PostgreSQL extension in PHP. The PHP configuration in :file:`/etc/php7/conf.d/pgsql.ini` could look +and enabled the PostgreSQL extension in PHP. The PHP configuration in :file:`/etc/php/**/pgsql.ini` could look like this: -:: +.. code-block:: ini - # configuration for PHP PostgreSQL module + ; configuration for PHP PostgreSQL module extension=pdo_pgsql.so extension=pgsql.so @@ -230,7 +217,7 @@ To start the postgres command line mode use:: Then a **template1=#** prompt will appear. Now enter the following lines and confirm them with the enter key: -:: +.. code-block:: sql CREATE USER username CREATEDB; CREATE DATABASE nextcloud OWNER username TEMPLATE template0 ENCODING 'UTF8'; @@ -246,7 +233,7 @@ and an empty password to access it, and the name of the database. The :file:`con created by the :doc:`../installation/installation_wizard` would therefore contain entries like this: -:: +.. code-block:: php [ 'mode' => 'verify-full',