Make WordPress Core

Ticket #53377: parameters.xml

File parameters.xml, 11.7 KB (added by fusecp, 5 years ago)
Line 
1<parameters>
2<!-- WordPress parameters.xml file
3 This file has been updated to incorporate a number of
4 improvements since the original was released with the WebPI and
5 WebDeploy Release Candidates. These improvements will be
6 available with the RTW versions of the WebPI and WebDeploy.
7
8 There will be commentary at each section to describe the changes
9 and why they were made. All of the additional functionality
10 described here, and available with the RTW, is documented as
11 part of the updated Web Application Packaging Guide.
12-->
13
14<!-- One of the new features provides for localization of text
15 strings within the parameters.xml file. This localization can
16 be applied to "description" and "friendlyName" attributes of a
17 parameter.
18
19 There are ten (10) well known parameters which are identified by
20 their tags. For these ten (10) parameters, the Web Deployment
21 Tool will automatically generate the correct description and
22 friendly name for each of ten (10) locales. These locales and
23 the details of the translation mechanism are documented in the
24 updated Packaging Guide.
25
26 NOTE: If a well known parameter has a description or a
27 friendlyName set, the Web Deployment Tool will not apply any
28 default text.
29
30 NOTE: There are a few parameters for WordPress which are not
31 in the list of well known parameters. These parameters have
32 English descriptions and friendlyNames only. Please refer to
33 the updated Packaging Guide for information on providing
34 additional translations for these parameters.
35-->
36
37
38<!-- The Application Path parameter is one of the ten well known
39 parameters which have descriptions and friendly names
40 automatically available.
41-->
42
43<parameter
44 name="AppPath"
45 defaultValue="Default Web Site/wordpress"
46 tags="iisapp"
47 >
48 <parameterEntry
49 type="ProviderPath"
50 scope="iisapp"
51 match="wordpress"
52 />
53</parameter>
54
55
56<!-- Database Parameters
57 The tags provided here tells the UI being used what type of
58 parameter this is. The UI can then construct an appropriate
59 dialog for the database parameters, or fill them in if the user
60 doesn't need to provide them
61-->
62
63<!-- This parameter prompts the user for the database server name.
64 Note that this parameter has only one parameterEntry element.
65 This parameter is used with the configuration file and the
66 connection string. It is not used within the SQL script itself
67 like some of the other parameters are.
68-->
69
70
71<parameter
72 name="DbServer"
73 defaultValue="localhost"
74 tags="MySQL,dbServer"
75 />
76<parameter
77 name="Automatic Database Server PHP File"
78 defaultValue="define( 'DB_HOST', '{DbServer}' );"
79 tags="Hidden, MySQL"
80 >
81 <parameterEntry
82 type="TextFile"
83 scope="wp-config\.php$"
84 match="define\( 'DB_HOST', '[^']*' \);"
85 />
86</parameter>
87
88<!-- This parameter prompts the user for the database name.
89-->
90<parameter
91 name="DbName"
92 defaultValue="wordpress"
93 tags="MySQL,dbName"
94 >
95 <parameterEntry
96 type="TextFile"
97 scope="install.sql"
98 match="PlaceholderForDbName"
99 />
100</parameter>
101<parameter
102 name="Automatic Database Name PHP File"
103 defaultValue="define( 'DB_NAME', '{DbName}');"
104 tags="Hidden, MySQL"
105 >
106 <parameterEntry
107 type="TextFile"
108 scope="wp-config\.php$"
109 match="define\( 'DB_NAME', '[^']*' \);"
110 />
111</parameter>
112
113<!-- This parameter prompts the user for the database username. We
114 have set a validation RegEx on this parameter, as MySQL will not
115 accept a username that has more than 16 characters.
116-->
117<parameter
118 name="DbUsername"
119 defaultValue="wordpressuser"
120 tags="MySQL,DbUsername"
121 >
122 <parameterValidation
123 type="RegularExpression"
124 validationString="^\w{1,16}$"
125 />
126 <parameterEntry
127 type="TextFile"
128 scope="install.sql"
129 match="PlaceholderForDbUsername"
130 />
131</parameter>
132<parameter
133 name="Automatic Database Username PHP File"
134 defaultValue="define('DB_USER', '{DbUsername}');"
135 tags="Hidden,MySQL"
136 >
137 <parameterEntry
138 type="TextFile"
139 scope="wp-config\.php$"
140 match="define\( 'DB_USER', '[^']*' \);"
141 />
142</parameter>
143
144<!-- This parameter prompts the user for the database user's password.
145-->
146<parameter
147 name="DbPassword"
148 tags="New,Password,MySQL,DbUserPassword"
149 >
150 <parameterEntry
151 type="TextFile"
152 scope="install.sql"
153 match="PlaceholderForDbPassword"
154 />
155</parameter>
156<parameter
157 name="Automatic Database Password PHP File"
158 defaultValue="define('DB_PASSWORD', '{DbPassword}');"
159 tags="Hidden, MySQL"
160 >
161 <parameterEntry
162 type="TextFile"
163 scope="wp-config\.php$"
164 match="define\( 'DB_PASSWORD', '[^']*' \);"
165 />
166</parameter>
167
168
169<!-- Prompts for the admin creds and uses it for the administrator
170 connection string. This is used to create a login and assign
171 permissions. The MySQL tag indicates it is a parameter required
172 for MySQL. The DbAdminUsername tag indicates it should be used
173 when the user is creating a new database. If they're not, it
174 can be filled in with the DbUsername value. The UI should be
175 able to figure out whether or not the user needs to be prompted
176 for this.
177-->
178
179<parameter
180 name="DbAdminUsername"
181 defaultValue="root"
182 tags="MySQL,DbAdminUsername"
183 >
184</parameter>
185
186<!-- Prompts for the admin password and uses it for the administrator
187 connection string.
188-->
189<parameter
190 name="DbAdminPassword"
191 description="Password for the database administrator account."
192 tags="Password,MySQL,DbAdminPassword"
193 >
194</parameter>
195
196<!-- This is the hidden admin connection string used to run the
197 database scripts. Note that this connection string is just
198 used here, and will probably be different from the connection
199 string that is used by the application itself.
200
201 The "Validate" tag tells the WebPI to validate that this
202 Connection String works prior to performing the rest of the
203 installation.
204-->
205
206<parameter
207 name="Connection String"
208 defaultValue="Server={DbServer};Database={DbName};uid={DbAdminUsername};Pwd={DbAdminPassword};"
209 tags="Hidden,MySQLConnectionString,Validate,MySQL"
210 >
211 <parameterEntry
212 type="ProviderPath"
213 scope="dbmysql"
214 match="install.sql"
215 />
216</parameter>
217
218
219<!-- WordPress specific parameters -->
220
221<!-- Authentication Unique Keys and Salts -->
222
223<!-- AUTH_KEY -->
224
225<!-- Single quotes and back slashes are not allowed in the key and salt values. Combination of $ with other characters are breaking the replacement in wp-config. Ex: $_ , $` , $+ . So adding the regex to validate $ symbol. -->
226
227<parameter
228 name="Authentication Key"
229 defaultValue="put your unique phrase here"
230 description="Unique phrase used to strengthen your password. It should not contain single quotes, backslashes and dollar character."
231 tags="NoStore"
232 >
233 <parameterValidation
234 type="RegularExpression"
235 validationString="^[^\\'$]*$"
236 />
237</parameter>
238<parameter
239 name="Automatic Auth Key PHP File"
240 defaultValue="define('AUTH_KEY', '{Authentication Key}');"
241 tags="Hidden, NoStore"
242 >
243 <parameterEntry
244 type="TextFile"
245 scope="wp-config\.php$"
246 match="define\( 'AUTH_KEY', \s*'[^']*' \);"
247 />
248</parameter>
249
250<!-- SECURE_AUTH_KEY -->
251
252<parameter
253 name="Secure Authentication Key"
254 defaultValue="put your unique phrase here"
255 description="Unique phrase used to strengthen secure password. It should not contain single quotes, backslashes and dollar character."
256 tags="NoStore"
257 >
258 <parameterValidation
259 type="RegularExpression"
260 validationString="^[^\\'$]*$"
261 />
262</parameter>
263<parameter
264 name="Automatic Secure Auth Key PHP File"
265 defaultValue="define('SECURE_AUTH_KEY', '{Secure Authentication Key}');"
266 tags="Hidden, NoStore"
267 >
268 <parameterEntry
269 type="TextFile"
270 scope="wp-config\.php$"
271 match="define\( 'SECURE_AUTH_KEY', \s*'[^']*' \);"
272 />
273</parameter>
274
275<!-- LOGGED_IN_KEY -->
276
277<parameter
278 name="Logged In Key"
279 defaultValue="put your unique phrase here"
280 description="Unique phrase used to strengthen authentication. It should not contain single quotes, backslashes and dollar character."
281 tags="NoStore"
282 >
283 <parameterValidation
284 type="RegularExpression"
285 validationString="^[^\\'$]*$"
286 />
287</parameter>
288<parameter
289 name="Automatic Logged In Key PHP File"
290 defaultValue="define('LOGGED_IN_KEY', '{Logged In Key}');"
291 tags="Hidden, NoStore"
292 >
293 <parameterEntry
294 type="TextFile"
295 scope="wp-config\.php$"
296 match="define\( 'LOGGED_IN_KEY', \s*'[^']*' \);"
297 />
298</parameter>
299
300<!-- NONCE_KEY -->
301
302<parameter
303 name="Nonce Key"
304 defaultValue="put your unique phrase here"
305 description="It is used to sign the nonce key which protects the nonce from being generated, protecting you from certain forms of attacks where a hacker attempts to guess the nonce. It should not contain single quotes, backslashes and dollar character."
306 tags="NoStore"
307 >
308 <parameterValidation
309 type="RegularExpression"
310 validationString="^[^\\'$]*$"
311 />
312</parameter>
313<parameter
314 name="Automatic Nonce Key PHP File"
315 defaultValue="define('NONCE_KEY', '{Nonce Key}');"
316 tags="Hidden, NoStore"
317 >
318 <parameterEntry
319 type="TextFile"
320 scope="wp-config\.php$"
321 match="define\( 'NONCE_KEY', \s*'[^']*' \);"
322 />
323</parameter>
324
325<!-- AUTH_SALT -->
326
327<parameter
328 name="Authentication Salt"
329 defaultValue="put your unique phrase here"
330 description="Unique phrase used to strengthen your password. Salt is an addition to the secret keys. They work with the keys. It should not contain single quotes, backslashes and dollar character."
331 tags="NoStore"
332 >
333 <parameterValidation
334 type="RegularExpression"
335 validationString="^[^\\'$]*$"
336 />
337</parameter>
338<parameter
339 name="Automatic Auth Salt PHP File"
340 defaultValue="define('AUTH_SALT', '{Authentication Salt}');"
341 tags="Hidden, NoStore"
342 >
343 <parameterEntry
344 type="TextFile"
345 scope="wp-config\.php$"
346 match="define\( 'AUTH_SALT', \s*'[^']*' \);"
347 />
348</parameter>
349
350<!-- SECURE_AUTH_SALT -->
351
352<parameter
353 name="Secure Authentication Salt"
354 defaultValue="put your unique phrase here"
355 description="Unique phrase used to strengthen secure password. Salt is an addition to the secret keys. They work with the keys. It should not contain single quotes, backslashes and dollar character."
356 tags="NoStore"
357 >
358 <parameterValidation
359 type="RegularExpression"
360 validationString="^[^\\'$]*$"
361 />
362</parameter>
363<parameter
364 name="Automatic Secure Auth Salt PHP File"
365 defaultValue="define('SECURE_AUTH_SALT', '{Secure Authentication Salt}');"
366 tags="Hidden, NoStore"
367 >
368 <parameterEntry
369 type="TextFile"
370 scope="wp-config\.php$"
371 match="define\( 'SECURE_AUTH_SALT', \s*'[^']*' \);"
372 />
373</parameter>
374
375<!-- LOGGED_IN_SALT -->
376
377<parameter
378 name="Logged In Salt"
379 defaultValue="put your unique phrase here"
380 description="Unique phrase used to strengthen authentication. Salt is an addition to the secret keys. They work with the keys. It should not contain single quotes, backslashes and dollar character."
381 tags="NoStore"
382 >
383 <parameterValidation
384 type="RegularExpression"
385 validationString="^[^\\'$]*$"
386 />
387</parameter>
388<parameter
389 name="Automatic Logged In Salt PHP File"
390 defaultValue="define('LOGGED_IN_SALT', '{Logged In Salt}');"
391 tags="Hidden, NoStore"
392 >
393 <parameterEntry
394 type="TextFile"
395 scope="wp-config\.php$"
396 match="define\( 'LOGGED_IN_SALT', \s*'[^']*' \);"
397 />
398</parameter>
399
400<!-- NONCE_SALT -->
401
402<parameter
403 name="Nonce Salt"
404 defaultValue="put your unique phrase here"
405 description="Unique phrase used to strengthen authentication. Salt is an addition to the secret keys. They work with the keys. It should not contain single quotes, backslashes and dollar character."
406 tags="NoStore"
407 >
408 <parameterValidation
409 type="RegularExpression"
410 validationString="^[^\\'$]*$"
411 />
412</parameter>
413<parameter
414 name="Automatic Nonce Salt PHP File"
415 defaultValue="define('NONCE_SALT', '{Nonce Salt}');"
416 tags="Hidden, NoStore"
417 >
418 <parameterEntry
419 type="TextFile"
420 scope="wp-config\.php$"
421 match="define\( 'NONCE_SALT', \s*'[^']*' \);"
422 />
423</parameter>
424
425<!-- Set the correct path for the ACL based on the AppPath selected
426 by the user.
427-->
428
429<parameter
430 name="SetAclParameter1"
431 defaultValue="{AppPath}/wp-content"
432 tags="Hidden"
433 >
434 <parameterEntry
435 type="ProviderPath"
436 scope="setAcl"
437 match="wordpress/wp-content$"
438 />
439</parameter>
440</parameters>