You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* ``directory`` (written to :file:`config.php` as ``datadirectory``)
39
+
* ``dbtype``, ``dbname``, ``dbuser``, ``dbpass``, ``dbhost``, and
40
+
``dbtableprefix``
41
+
* ``adminlogin`` and ``adminpass``
42
+
* optionally, ``trusted_domains`` and ``adminemail``
19
43
20
-
Parameters
21
-
----------
22
-
When configuring parameters, you must understand that two parameters are named differently in this configuration file when compared to the standard :file:`config.php` file.
44
+
Two parameters have different names from their corresponding
45
+
:file:`config.php` settings:
23
46
24
-
+----------------+---------------+
25
-
| autoconfig.php | config.php |
26
-
+================+===============+
27
-
| directory | datadirectory |
28
-
+----------------+---------------+
29
-
| dbpass | dbpassword |
30
-
+----------------+---------------+
47
+
+--------------------+-------------------+
48
+
|``autoconfig.php``|``config.php``|
49
+
+====================+===================+
50
+
|``directory``|``datadirectory``|
51
+
+--------------------+-------------------+
52
+
|``dbpass``|``dbpassword``|
53
+
+--------------------+-------------------+
31
54
32
-
Automatic configurations examples
33
-
---------------------------------
55
+
Examples
56
+
--------
34
57
35
-
The following sections provide sample automatic configuration examples and what information is requested at the end of the configuration.
58
+
The following examples show partial and complete automatic configurations.
36
59
37
60
Data Directory
38
61
^^^^^^^^^^^^^^
39
62
40
-
Using the following parameter settings, the "Finish setup" screen requests database and admin credentials settings.
63
+
This configuration prefills the data directory. Complete the database and
64
+
administrator-account settings in the setup form.
41
65
42
-
::
66
+
.. code-block:: php
43
67
44
68
<?php
45
69
$AUTOCONFIG = [
@@ -50,9 +74,10 @@ Using the following parameter settings, the "Finish setup" screen requests datab
50
74
SQLite database
51
75
^^^^^^^^^^^^^^^
52
76
53
-
Using the following parameter settings, the "Finish setup" screen requests data directory and admin credentials settings.
77
+
This configuration prefills the SQLite database settings. Complete the data
78
+
directory and administrator-account settings in the setup form.
54
79
55
-
::
80
+
.. code-block:: php
56
81
57
82
<?php
58
83
$AUTOCONFIG = [
@@ -61,53 +86,54 @@ Using the following parameter settings, the "Finish setup" screen requests data
61
86
"dbtableprefix" => "",
62
87
];
63
88
64
-
MySQL database
65
-
^^^^^^^^^^^^^^
89
+
MySQL / MariaDB database
90
+
^^^^^^^^^^^^^^^^^^^^^^^^
66
91
67
-
Using the following parameter settings, the "Finish setup" screen requests data directory and admin credentials settings.
92
+
This configuration prefills the MySQL or MariaDB settings. Complete the data
93
+
directory and administrator-account settings in the setup form.
68
94
69
-
::
95
+
.. code-block:: php
70
96
71
97
<?php
72
-
$AUTOCONFIG = array(
98
+
$AUTOCONFIG = [
73
99
"dbtype" => "mysql",
74
100
"dbname" => "nextcloud",
75
101
"dbuser" => "username",
76
102
"dbpass" => "password",
77
103
"dbhost" => "localhost",
78
104
"dbtableprefix" => "",
79
-
);
105
+
];
80
106
81
107
PostgreSQL database
82
108
^^^^^^^^^^^^^^^^^^^
83
109
84
-
Using the following parameter settings, the "Finish setup" screen requests data directory and admin credentials settings.
110
+
This configuration prefills the PostgreSQL settings. Complete the data
111
+
directory and administrator-account settings in the setup form.
85
112
86
-
::
113
+
.. code-block:: php
87
114
88
115
<?php
89
-
$AUTOCONFIG = array(
116
+
$AUTOCONFIG = [
90
117
"dbtype" => "pgsql",
91
118
"dbname" => "nextcloud",
92
119
"dbuser" => "username",
93
120
"dbpass" => "password",
94
121
"dbhost" => "localhost",
95
122
"dbtableprefix" => "",
96
-
);
123
+
];
97
124
98
-
.. note:: Keep in mind that the automatic configuration does not eliminate the need for
99
-
creating the database user and database in advance, as described in
When all required values are present and valid, the installation proceeds
129
+
without requiring user interaction.
104
130
105
-
Using the following parameter settings, because all parameters are already configured in the file, the Nextcloud installation skips the "Finish setup" screen.
131
+
The following configuration bypasses the setup form:
106
132
107
-
::
133
+
.. code-block:: php
108
134
109
135
<?php
110
-
$AUTOCONFIG = array(
136
+
$AUTOCONFIG = [
111
137
"dbtype" => "mysql",
112
138
"dbname" => "nextcloud",
113
139
"dbuser" => "username",
@@ -117,9 +143,5 @@ Using the following parameter settings, because all parameters are already confi
117
143
"adminlogin" => "root",
118
144
"adminpass" => "root-password",
119
145
"directory" => "/www/htdocs/nextcloud/data",
120
-
);
121
-
122
-
.. note:: Keep in mind that the automatic configuration does not eliminate the need for
123
-
creating the database user and database in advance, as described in
0 commit comments