質問編集履歴

6

参考サイトを追記しました

2018/10/29 17:00

投稿

shunk-py
shunk-py

スコア12

test CHANGED
File without changes
test CHANGED
@@ -267,3 +267,7 @@
267
267
  default-character-set = utf8mb4
268
268
 
269
269
  ```
270
+
271
+
272
+
273
+ [※参考サイト](https://mgng.mugbum.info/1393)

5

debug.logとmy.cnfの追記をしました。

2018/10/29 17:00

投稿

shunk-py
shunk-py

スコア12

test CHANGED
File without changes
test CHANGED
@@ -175,3 +175,95 @@
175
175
  pdo_mysql.default_socket => /var/lib/mysql/mysql.sock => /var/lib/mysql/mysql.sock
176
176
 
177
177
  ```
178
+
179
+ 10/30追記
180
+
181
+ wp-content/debug.logの内容
182
+
183
+ ```
184
+
185
+ [29-Oct-2018 16:42:02 UTC] PHP Warning: mysqli_real_connect(): Server sent charset (255) unknown to the client. Please, report to the developers in /var/www/html/wp-includes/wp-db.php on line 1531
186
+
187
+ [29-Oct-2018 16:42:02 UTC] PHP Warning: mysqli_real_connect(): (HY000/2054): Server sent charset unknown to the client. Please, report to the developers in /var/www/html/wp-includes/wp-db.php on line 1531
188
+
189
+ [29-Oct-2018 16:42:02 UTC] PHP Warning: mysql_connect(): Server sent charset (255) unknown to the client. Please, report to the developers in /var/www/html/wp-includes/wp-db.php on line 1562
190
+
191
+ [29-Oct-2018 16:42:02 UTC] PHP Warning: mysql_connect(): Server sent charset unknown to the client. Please, report to the developers in /var/www/html/wp-includes/wp-db.php on line 1562
192
+
193
+ ```
194
+
195
+
196
+
197
+ my.cnfの内容
198
+
199
+ ```
200
+
201
+ [mysqld]
202
+
203
+ #
204
+
205
+ # Remove leading # and set to the amount of RAM for the most important data
206
+
207
+ # cache in MySQL. Start at 70% of total RAM for dedicated server, else 10%.
208
+
209
+ # innodb_buffer_pool_size = 128M
210
+
211
+ #
212
+
213
+ # Remove the leading "# " to disable binary logging
214
+
215
+ # Binary logging captures changes between backups and is enabled by
216
+
217
+ # default. It's default setting is log_bin=binlog
218
+
219
+ # disable_log_bin
220
+
221
+ #
222
+
223
+ # Remove leading # to set options mainly useful for reporting servers.
224
+
225
+ # The server defaults are faster for transactions and fast SELECTs.
226
+
227
+ # Adjust sizes as needed, experiment to find the optimal values.
228
+
229
+ # join_buffer_size = 128M
230
+
231
+ # sort_buffer_size = 2M
232
+
233
+ # read_rnd_buffer_size = 2M
234
+
235
+ #
236
+
237
+ # Remove leading # to revert to previous value for default_authentication_plugin,
238
+
239
+ # this will increase compatibility with older clients. For background, see:
240
+
241
+ # https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_default_authentication_plugin
242
+
243
+ # default-authentication-plugin=mysql_native_password
244
+
245
+
246
+
247
+ datadir=/var/lib/mysql
248
+
249
+ socket=/var/lib/mysql/mysql.sock
250
+
251
+
252
+
253
+ log-error=/var/log/mysqld.log
254
+
255
+ pid-file=/var/run/mysqld/mysqld.pid
256
+
257
+
258
+
259
+ collation-server = utf8mb4_general_ci
260
+
261
+ character-set-server = utf8mb4
262
+
263
+
264
+
265
+ [client]
266
+
267
+ default-character-set = utf8mb4
268
+
269
+ ```

4

PHPのバージョンを修正しました。

2018/10/29 16:47

投稿

shunk-py
shunk-py

スコア12

test CHANGED
File without changes
test CHANGED
@@ -58,7 +58,7 @@
58
58
 
59
59
  MySQL: 8.0.12
60
60
 
61
- PHP: 2.4.0
61
+ PHP: 5.4.16 (Zend Engine v2.4.0)
62
62
 
63
63
 
64
64
 

3

記載誤りの修正(DBサーバーのプライベートアドレス)

2018/10/29 13:12

投稿

shunk-py
shunk-py

スコア12

test CHANGED
File without changes
test CHANGED
@@ -29,6 +29,12 @@
29
29
 
30
30
 
31
31
  初期設定画面(setup-config.php)での「データベース名」、「ユーザー名」、「パスワード」、「ホスト名」に間違いはありません。「ホスト名」にはDBサーバーのプライベートIPアドレス「10.0.2.0」を割り当てています。因みにwp-config.phpファイルはまだ生成されていないようでした。
32
+
33
+
34
+
35
+ ※追記:DBサーバーのプライベートアドレス「10.0.2.10」でした。。大変失礼致しました。。。
36
+
37
+
32
38
 
33
39
  Webサーバーにssh接続して「mysql -h (ホスト名) -u (ユーザー名) -p (パスワード)」とすると問題なく接続ができます。
34
40
 

2

ログに出てくる情報を追記しました。

2018/10/29 12:21

投稿

shunk-py
shunk-py

スコア12

test CHANGED
File without changes
test CHANGED
@@ -64,7 +64,93 @@
64
64
 
65
65
  10/29追記
66
66
 
67
- httpd/error_logにはこのようなログが残っました。
67
+ php -iで出くる情報
68
+
69
+ ```
70
+
71
+ /etc/php.d/mysqlnd.ini,
72
+
73
+ /etc/php.d/mysqlnd_mysql.ini,
74
+
75
+ /etc/php.d/mysqlnd_mysqli.ini,
76
+
77
+ /etc/php.d/pdo_mysqlnd.ini,
78
+
79
+ PHP Warning: Unknown: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in Unknown on line 0
80
+
81
+ mysql
82
+
83
+ Client API version => mysqlnd 5.0.10 - 20111026 - $Id: ●●●● $
84
+
85
+ mysql.allow_local_infile => On => On
86
+
87
+ mysql.allow_persistent => On => On
88
+
89
+ mysql.connect_timeout => 60 => 60
90
+
91
+ mysql.default_host => no value => no value
92
+
93
+ mysql.default_password => no value => no value
94
+
95
+ mysql.default_port => no value => no value
96
+
97
+ mysql.default_socket => /var/lib/mysql/mysql.sock => /var/lib/mysql/mysql.sock
98
+
99
+ mysql.default_user => no value => no value
100
+
101
+ mysql.max_links => Unlimited => Unlimited
102
+
103
+ mysql.max_persistent => Unlimited => Unlimited
104
+
105
+ mysql.trace_mode => Off => Off
106
+
107
+ mysqli
108
+
109
+ Client API library version => mysqlnd 5.0.10 - 20111026 - $Id: ●●●● $
110
+
111
+ mysqli.allow_local_infile => On => On
112
+
113
+ mysqli.allow_persistent => On => On
114
+
115
+ mysqli.default_host => no value => no value
116
+
117
+ mysqli.default_port => 3306 => 3306
118
+
119
+ mysqli.default_pw => no value => no value
120
+
121
+ mysqli.default_socket => /var/lib/mysql/mysql.sock => /var/lib/mysql/mysql.sock
122
+
123
+ mysqli.default_user => no value => no value
124
+
125
+ mysqli.max_links => Unlimited => Unlimited
126
+
127
+ mysqli.max_persistent => Unlimited => Unlimited
128
+
129
+ mysqli.reconnect => Off => Off
130
+
131
+ mysqlnd
132
+
133
+ mysqlnd => enabled
134
+
135
+ Version => mysqlnd 5.0.10 - 20111026 - $Id: e707c415db32080b3752b232487a435ee0372157 $
136
+
137
+ Loaded plugins => mysqlnd,example,debug_trace,auth_plugin_mysql_native_password,auth_plugin_mysql_clear_password
138
+
139
+ API Extensions => mysql,mysqli,pdo_mysql
140
+
141
+ mysqlnd statistics =>
142
+
143
+ PDO drivers => mysql, sqlite
144
+
145
+ pdo_mysql
146
+
147
+ Client API version => mysqlnd 5.0.10 - 20111026 - $Id: ●●●● $
148
+
149
+ ```
150
+
151
+
152
+
153
+ /var/log/httpd/error_logの内容
68
154
 
69
155
  ```
70
156
 
@@ -78,4 +164,8 @@
78
164
 
79
165
  [Sun Oct 28 03:11:02.094465 2018] [core:notice] [pid 11679] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
80
166
 
167
+ [Sun Oct 28 18:17:00.142714 2018] [cgi:error] [pid 14709] [client 50.232.243.66:62110] AH02811: script not found or unable to stat: /var/www/cgi-bin/getinfo
168
+
169
+ pdo_mysql.default_socket => /var/lib/mysql/mysql.sock => /var/lib/mysql/mysql.sock
170
+
81
171
  ```

1

httpd/error_logの内容を追記しました。

2018/10/28 18:58

投稿

shunk-py
shunk-py

スコア12

test CHANGED
File without changes
test CHANGED
@@ -59,3 +59,23 @@
59
59
  不足情報等あればすぐに追記いたします。
60
60
 
61
61
  何卒どうかよろしくお願い致します。
62
+
63
+
64
+
65
+ 10/29追記
66
+
67
+ httpd/error_logにはこのようなログが残ってました。
68
+
69
+ ```
70
+
71
+ [Sun Oct 28 03:11:02.081931 2018] [lbmethod_heartbeat:notice] [pid 11679] AH02282: No slotmem from mod_heartmonitor
72
+
73
+ [Sun Oct 28 03:11:02.082011 2018] [http2:warn] [pid 11679] AH10034: The mpm module (prefork.c) is not supported by mod_http2. The mpm determines how things are processed in your server. HTTP/2 has more demands in this regard and the currently selected mpm will just not do. This is an advisory warning. Your server will continue to work, but the HTTP/2 protocol will be inactive.
74
+
75
+ [Sun Oct 28 03:11:02.082017 2018] [http2:warn] [pid 11679] AH02951: mod_ssl does not seem to be enabled
76
+
77
+ [Sun Oct 28 03:11:02.094453 2018] [mpm_prefork:notice] [pid 11679] AH00163: Apache/2.4.34 () PHP/5.4.16 configured -- resuming normal operations
78
+
79
+ [Sun Oct 28 03:11:02.094465 2018] [core:notice] [pid 11679] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
80
+
81
+ ```