· 7 years ago · Mar 14, 2018, 08:26 PM
1<?php
2/**
3 * Front to the WordPress application. This file doesn't do anything, but loads
4 * wp-blog-header.php which does and tells WordPress to load the theme.
5 *
6 * @package WordPress
7 */
8ini_set('display_errors', 1);
9ini_set('display_startup_errors', 1);
10error_reporting(E_ALL);
11/**
12 * Tells WordPress to load the WordPress theme and output it.
13 *
14 * @var bool
15 */
16define('WP_USE_THEMES', true);
17
18/** Loads the WordPress Environment and Template */
19require( dirname( __FILE__ ) . '/wp-blog-header.php' );
20~
21~
22~
23~
24"index.php" 19L, 509C written
25[root@ansible_host1 wordpress]# curl wordpress.d
26[root@ansible_host1 wordpress]# systemctl restart php-fpm
27[root@ansible_host1 wordpress]# systemctl restart nginx.service
28[root@ansible_host1 wordpress]# curl wordpress.d
29[root@ansible_host1 wordpress]# curl wordpress.d:80
30[root@ansible_host1 wordpress]# cat /srv/wordpress/wp-config.php
31<?php
32/**
33 * The base configuration for WordPress
34 *
35 * The wp-config.php creation script uses this file during the
36 * installation. You don't have to use the web site, you can
37 * copy this file to "wp-config.php" and fill in the values.
38 *
39 * This file contains the following configurations:
40 *
41 * * MySQL settings
42 * * Secret keys
43 * * Database table prefix
44 * * ABSPATH
45 *
46 * @link https://codex.wordpress.org/Editing_wp-config.php
47 *
48 * @package WordPress
49 */
50
51// ** MySQL settings - You can get this info from your web host ** //
52/** The name of the database for WordPress */
53define('DB_NAME', 'wordpress');
54
55/** MySQL database username */
56define('DB_USER', 'wordpressuser');
57
58/** MySQL database password */
59define('DB_PASSWORD', 'password');
60
61/** MySQL hostname */
62define('DB_HOST', '192.168.124.5');
63
64/** Database Charset to use in creating database tables. */
65define('DB_CHARSET', 'utf8');
66
67/** The Database Collate type. Don't change this if in doubt. */
68define('DB_COLLATE', '');
69
70/**#@+
71 * Authentication Unique Keys and Salts.
72 *
73 * Change these to different unique phrases!
74 * You can generate these using the {@link https://api.wordpress.org/secret-key/1.1/salt/ WordPress.org secret-key service}
75 * You can change these at any point in time to invalidate all existing cookies. This will force all users to have to log in again.
76 *
77 * @since 2.6.0
78 */
79define('AUTH_KEY', 'put your unique phrase here');
80define('SECURE_AUTH_KEY', 'put your unique phrase here');
81define('LOGGED_IN_KEY', 'put your unique phrase here');
82define('NONCE_KEY', 'put your unique phrase here');
83define('AUTH_SALT', 'put your unique phrase here');
84define('SECURE_AUTH_SALT', 'put your unique phrase here');
85define('LOGGED_IN_SALT', 'put your unique phrase here');
86define('NONCE_SALT', 'put your unique phrase here');
87
88/**#@-*/
89
90/**
91 * WordPress Database Table prefix.
92 *
93 * You can have multiple installations in one database if you give each
94 * a unique prefix. Only numbers, letters, and underscores please!
95 */
96$table_prefix = 'wp_';
97
98/**
99 * For developers: WordPress debugging mode.
100 *
101 * Change this to true to enable the display of notices during development.
102 * It is strongly recommended that plugin and theme developers use WP_DEBUG
103 * in their development environments.
104 *
105 * For information on other constants that can be used for debugging,
106 * visit the Codex.
107 *
108 * @link https://codex.wordpress.org/Debugging_in_WordPress
109 */
110define('WP_DEBUG', false);
111
112/* That's all, stop editing! Happy blogging. */
113
114/** Absolute path to the WordPress directory. */
115if ( !defined('ABSPATH') )
116 define('ABSPATH', dirname(__FILE__) . '/');
117
118/** Sets up WordPress vars and included files. */
119require_once(ABSPATH . 'wp-settings.php');