質問編集履歴
10
ログ追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -1,11 +1,5 @@
|
|
1
1
|
##現状
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
Vagrantを使用した仮装環境下で`PHP x Cake`で開発をしています。
|
6
|
-
|
7
|
-
|
8
|
-
|
9
3
|
現在ブラウザアクセスができない状態で調査をしていたら、どうやら
|
10
4
|
|
11
5
|
```php
|
@@ -62,6 +56,168 @@
|
|
62
56
|
|
63
57
|
- /etc/php.d/20-ctype.ini
|
64
58
|
|
59
|
+
・
|
60
|
+
|
61
|
+
・
|
62
|
+
|
63
|
+
・
|
64
|
+
|
65
|
+
You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.
|
66
|
+
|
67
|
+
[vagrant@local profile]$
|
68
|
+
|
69
|
+
```
|
70
|
+
|
71
|
+
|
72
|
+
|
73
|
+
このようなエラーが表示されたので、対象の`.ini`ファイルの対応をしなくてはならないのかなという感覚を得ている状況です。
|
74
|
+
|
75
|
+
|
76
|
+
|
77
|
+
##質問
|
78
|
+
|
79
|
+
|
80
|
+
|
81
|
+
1. 対象となる`.ini`ファイルでは主にどういう事をすれば良いのでしょうか?
|
82
|
+
|
83
|
+
そもそもエラー内容に対するアプローチ方法、解釈等間違っていたらご指摘下さい。
|
84
|
+
|
85
|
+
|
86
|
+
|
87
|
+
よろしくお願い致します。
|
88
|
+
|
89
|
+
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
##追記
|
94
|
+
|
95
|
+
|
96
|
+
|
97
|
+
###ログ1
|
98
|
+
|
99
|
+
・intlが存在していないので、yumでinstall
|
100
|
+
|
101
|
+
・phpのバージョンが7.1.25なのでphp-71を選択
|
102
|
+
|
103
|
+
・`sudo yum install php71-php-intl.x86_64`でインストール
|
104
|
+
|
105
|
+
→正常にインストール完了
|
106
|
+
|
107
|
+
・intl有効化の為に/etc/php.iniファイルのextensionを確認したが、`extension=php_intl.dll`の記載が無かったため、追記。
|
108
|
+
|
109
|
+
→追記後、httpdを再起動`sudo service httpd restart`
|
110
|
+
|
111
|
+
・`php -i | grep intl`コマンドでintlが存在しているか確認
|
112
|
+
|
113
|
+
・PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/php_intl.dll' -
|
114
|
+
|
115
|
+
/usr/lib64/php/modules/php_intl.dll: cannot open shared object file: No such file or directory in Unknown on line 0
|
116
|
+
|
117
|
+
エラーが表示
|
118
|
+
|
119
|
+
・`php_intl.dll`が/usr/lib64/php/modules/配下に存在していない事によるエラー
|
120
|
+
|
121
|
+
・`ll /usr/lib64/php/modules/ | grep php_intl.dll`で再度確認
|
122
|
+
|
123
|
+
→レスポンスは何もないため、存在していない事を確認
|
124
|
+
|
125
|
+
・`find / -name php_intl.dll`でphp_intl.dllを検索
|
126
|
+
|
127
|
+
・色々表示されたが許可が無いというエラーが表示された
|
128
|
+
|
129
|
+
・スーパーユーザーで再度実行
|
130
|
+
|
131
|
+
→レスポンスは何もなく
|
132
|
+
|
133
|
+
|
134
|
+
|
135
|
+
|
136
|
+
|
137
|
+
|
138
|
+
|
139
|
+
##ログ2
|
140
|
+
|
141
|
+
|
142
|
+
|
143
|
+
Apacheの`error.log`
|
144
|
+
|
145
|
+
|
146
|
+
|
147
|
+
PHP Fatal error: You must enable the intl extension to use CakePHP. in /vagrant/sample.com/profile/config/bootstrap.php on line 38
|
148
|
+
|
149
|
+
|
150
|
+
|
151
|
+
対象箇所のコード
|
152
|
+
|
153
|
+
```php
|
154
|
+
|
155
|
+
// You can remove this if you are confident you have intl installed.
|
156
|
+
|
157
|
+
if (!extension_loaded('intl')) {
|
158
|
+
|
159
|
+
trigger_error('You must enable the intl extension to use CakePHP.', E_USER_ERROR);
|
160
|
+
|
161
|
+
}
|
162
|
+
|
163
|
+
```
|
164
|
+
|
165
|
+
|
166
|
+
|
167
|
+
`intl`が存在していないという問題は解決してない。
|
168
|
+
|
169
|
+
|
170
|
+
|
171
|
+
|
172
|
+
|
173
|
+
|
174
|
+
|
175
|
+
###ログ3
|
176
|
+
|
177
|
+
|
178
|
+
|
179
|
+
・`sudo yum install php71-php-intl.x86_64`で`intl`をインストール
|
180
|
+
|
181
|
+
・インストール後`sudo service httpd restart`でApacheの再起動
|
182
|
+
|
183
|
+
・再起動後、対象ディレクトリで`composer install`実行
|
184
|
+
|
185
|
+
→実行後、下記のエラー表示
|
186
|
+
|
187
|
+
```
|
188
|
+
|
189
|
+
[vagrant@local profile]$ composer install
|
190
|
+
|
191
|
+
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/php_intl.dll' - /usr/lib64/php/modules/php_intl.dll: cannot open shared object file: No such file or directory in Unknown on line 0
|
192
|
+
|
193
|
+
Loading composer repositories with package information
|
194
|
+
|
195
|
+
Installing dependencies (including require-dev) from lock file
|
196
|
+
|
197
|
+
Your requirements could not be resolved to an installable set of packages.
|
198
|
+
|
199
|
+
|
200
|
+
|
201
|
+
Problem 1
|
202
|
+
|
203
|
+
- cakephp/cakephp 3.1.14 requires ext-intl * -> the requested PHP extension intl is missing from your system.
|
204
|
+
|
205
|
+
- cakephp/cakephp 3.1.14 requires ext-intl * -> the requested PHP extension intl is missing from your system.
|
206
|
+
|
207
|
+
- Installation request for cakephp/cakephp 3.1.14 -> satisfiable by cakephp/cakephp[3.1.14].
|
208
|
+
|
209
|
+
|
210
|
+
|
211
|
+
To enable extensions, verify that they are enabled in your .ini files:
|
212
|
+
|
213
|
+
- /etc/php.ini
|
214
|
+
|
215
|
+
- /etc/php.d/20-bz2.ini
|
216
|
+
|
217
|
+
- /etc/php.d/20-calendar.ini
|
218
|
+
|
219
|
+
- /etc/php.d/20-ctype.ini
|
220
|
+
|
65
221
|
- /etc/php.d/20-curl.ini
|
66
222
|
|
67
223
|
- /etc/php.d/20-dom.ini
|
@@ -120,454 +276,280 @@
|
|
120
276
|
|
121
277
|
|
122
278
|
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
``
|
204
|
-
|
205
|
-
/
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
`
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
279
|
+
`php --ini`で設定ファイル確認
|
280
|
+
|
281
|
+
レスポンスは下記
|
282
|
+
|
283
|
+
```
|
284
|
+
|
285
|
+
[vagrant@local profile]$ php --ini
|
286
|
+
|
287
|
+
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/php_intl.dll' - /usr/lib64/php/modules/php_intl.dll: cannot open shared object file: No such file or directory in Unknown on line 0
|
288
|
+
|
289
|
+
Configuration File (php.ini) Path: /etc
|
290
|
+
|
291
|
+
Loaded Configuration File: /etc/php.ini
|
292
|
+
|
293
|
+
Scan for additional .ini files in: /etc/php.d
|
294
|
+
|
295
|
+
Additional .ini files parsed: /etc/php.d/20-bz2.ini,
|
296
|
+
|
297
|
+
/etc/php.d/20-calendar.ini,
|
298
|
+
|
299
|
+
/etc/php.d/20-ctype.ini,
|
300
|
+
|
301
|
+
/etc/php.d/20-curl.ini,
|
302
|
+
|
303
|
+
/etc/php.d/20-dom.ini,
|
304
|
+
|
305
|
+
/etc/php.d/20-exif.ini,
|
306
|
+
|
307
|
+
/etc/php.d/20-fileinfo.ini,
|
308
|
+
|
309
|
+
/etc/php.d/20-ftp.ini,
|
310
|
+
|
311
|
+
/etc/php.d/20-gd.ini,
|
312
|
+
|
313
|
+
/etc/php.d/20-gettext.ini,
|
314
|
+
|
315
|
+
/etc/php.d/20-iconv.ini,
|
316
|
+
|
317
|
+
/etc/php.d/20-json.ini,
|
318
|
+
|
319
|
+
/etc/php.d/20-mbstring.ini,
|
320
|
+
|
321
|
+
/etc/php.d/20-mysqlnd.ini,
|
322
|
+
|
323
|
+
/etc/php.d/20-pdo.ini,
|
324
|
+
|
325
|
+
/etc/php.d/20-phar.ini,
|
326
|
+
|
327
|
+
/etc/php.d/20-simplexml.ini,
|
328
|
+
|
329
|
+
/etc/php.d/20-sockets.ini,
|
330
|
+
|
331
|
+
/etc/php.d/20-sqlite3.ini,
|
332
|
+
|
333
|
+
/etc/php.d/20-tokenizer.ini,
|
334
|
+
|
335
|
+
/etc/php.d/20-xml.ini,
|
336
|
+
|
337
|
+
/etc/php.d/20-xmlwriter.ini,
|
338
|
+
|
339
|
+
/etc/php.d/20-xsl.ini,
|
340
|
+
|
341
|
+
/etc/php.d/30-mysqli.ini,
|
342
|
+
|
343
|
+
/etc/php.d/30-pdo_mysql.ini,
|
344
|
+
|
345
|
+
/etc/php.d/30-pdo_sqlite.ini,
|
346
|
+
|
347
|
+
/etc/php.d/30-wddx.ini,
|
348
|
+
|
349
|
+
/etc/php.d/30-xmlreader.ini
|
350
|
+
|
351
|
+
|
352
|
+
|
353
|
+
[vagrant@local profile]$
|
354
|
+
|
355
|
+
```
|
356
|
+
|
357
|
+
|
358
|
+
|
359
|
+
一行目に`Warning`
|
360
|
+
|
361
|
+
`/usr/lib64/php/modules/`配下に、`php_intl.dll`が存在していないことによるエラー。
|
362
|
+
|
363
|
+
|
364
|
+
|
365
|
+
|
366
|
+
|
367
|
+
###ログ4
|
368
|
+
|
369
|
+
|
370
|
+
|
371
|
+
`php -m | grep intl`で、`intl`を検索
|
372
|
+
|
373
|
+
※`-m`オプションは、読み込まれているモジュールの一覧を表示する
|
374
|
+
|
375
|
+
レスポンスは下記
|
376
|
+
|
377
|
+
```
|
378
|
+
|
379
|
+
[vagrant@local profile]$ php -m | grep intl
|
380
|
+
|
381
|
+
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/php_intl.dll' - /usr/lib64/php/modules/php_intl.dll: cannot open shared object file: No such file or directory in Unknown on line 0
|
382
|
+
|
383
|
+
[vagrant@local profile]$
|
384
|
+
|
385
|
+
```
|
386
|
+
|
387
|
+
|
388
|
+
|
389
|
+
ログ3の`php --ini`を実行したレスポンスの`Warning`と同様の`Warning`が表示
|
390
|
+
|
391
|
+
|
392
|
+
|
393
|
+
|
394
|
+
|
395
|
+
###ログ5
|
396
|
+
|
397
|
+
|
398
|
+
|
399
|
+
`sudo yum install php71-php-intl.x86_64`で`intl`をインストールするまでの手順は、
|
400
|
+
|
401
|
+
|
402
|
+
|
403
|
+
```
|
404
|
+
|
405
|
+
1. 'php -v' でPHPのバージョン確認
|
406
|
+
|
407
|
+
2. 'yum list | grep intl' で 'yum' でインストールできる 'intl' のバージョン検索
|
408
|
+
|
409
|
+
3. PHPのバージョンに対応する 'intl' を選択し、 'yum' でインストール
|
410
|
+
|
411
|
+
```
|
412
|
+
|
413
|
+
|
414
|
+
|
415
|
+
`php -v`のレスポンスは下記
|
416
|
+
|
417
|
+
```
|
418
|
+
|
419
|
+
[vagrant@local etc]$ php -v
|
420
|
+
|
421
|
+
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/php_intl.dll' - /usr/lib64/php/modules/php_intl.dll: cannot open shared object file: No such file or directory in Unknown on line 0
|
422
|
+
|
423
|
+
PHP 7.1.25 (cli) (built: Dec 8 2018 13:52:58) ( NTS )
|
424
|
+
|
425
|
+
Copyright (c) 1997-2018 The PHP Group
|
426
|
+
|
427
|
+
Zend Engine v3.1.0, Copyright (c) 1998-2018 Zend Technologies
|
428
|
+
|
429
|
+
[vagrant@local etc]$
|
430
|
+
|
431
|
+
```
|
432
|
+
|
433
|
+
※現状、バージョン確認時も同様の`Warning`が表示
|
434
|
+
|
435
|
+
|
436
|
+
|
437
|
+
現在のPHPのバージョンは`7.1.25`
|
438
|
+
|
439
|
+
|
440
|
+
|
441
|
+
`yum list | grep intl`のレスポンスは下記
|
442
|
+
|
443
|
+
```
|
444
|
+
|
445
|
+
[vagrant@local etc]$ yum list | grep intl
|
446
|
+
|
447
|
+
Repository google-chrome is listed more than once in the configuration
|
448
|
+
|
449
|
+
php71-php-intl.x86_64 7.1.25-2.el7.remi @remi-safe
|
450
|
+
|
451
|
+
intltool.noarch 0.50.2-7.el7 base
|
452
|
+
|
453
|
+
perl-libintl.x86_64 1.20-12.el7 base
|
454
|
+
|
455
|
+
php-intl.x86_64 5.4.16-46.el7 base
|
456
|
+
|
457
|
+
php54-php-intl.x86_64 5.4.45-16.el7.remi remi-safe
|
458
|
+
|
459
|
+
php55-php-intl.x86_64 5.5.38-10.el7.remi remi-safe
|
460
|
+
|
461
|
+
php56-php-intl.x86_64 5.6.39-1.el7.remi remi-safe
|
462
|
+
|
463
|
+
php70-php-intl.x86_64 7.0.33-1.el7.remi remi-safe
|
464
|
+
|
465
|
+
php72-php-intl.x86_64 7.2.13-2.el7.remi remi-safe
|
466
|
+
|
467
|
+
php73-php-intl.x86_64 7.3.0-1.el7.remi remi-safe
|
468
|
+
|
469
|
+
[vagrant@local etc]$
|
470
|
+
|
471
|
+
```
|
472
|
+
|
473
|
+
|
474
|
+
|
475
|
+
PHPのバージョンが`7.1.25`の為、`php71-php-intl.x86_64`を選択。
|
476
|
+
|
477
|
+
|
478
|
+
|
479
|
+
|
480
|
+
|
481
|
+
###ログ6
|
482
|
+
|
483
|
+
|
484
|
+
|
485
|
+
`sudo find / -name intl.so`の実行後レスポンス
|
486
|
+
|
487
|
+
|
488
|
+
|
489
|
+
[vagrant@local profile]$ sudo find / -name intl.so
|
490
|
+
|
491
|
+
/opt/remi/php71/root/usr/lib64/php/modules/intl.so
|
492
|
+
|
493
|
+
[vagrant@local profile]$
|
494
|
+
|
495
|
+
|
496
|
+
|
497
|
+
`intl.so`は`/opt/remi/php71/root/usr/lib64/php/modules/`配下に存在しているよう。
|
498
|
+
|
499
|
+
|
500
|
+
|
501
|
+
|
502
|
+
|
503
|
+
###ログ7
|
504
|
+
|
505
|
+
|
506
|
+
|
507
|
+
`sudo find / -name php71-php`の実行後レスポンス
|
508
|
+
|
509
|
+
```
|
510
|
+
|
511
|
+
[vagrant@local profile]$ sudo find / -name php71-php
|
512
|
+
|
513
|
+
[vagrant@local profile]$
|
514
|
+
|
515
|
+
```
|
516
|
+
|
517
|
+
何も表示されず。
|
518
|
+
|
519
|
+
インストールされていない。
|
520
|
+
|
521
|
+
##ログ8
|
522
|
+
|
523
|
+
|
524
|
+
|
525
|
+
`sudo yum remove php71-php-intl.x86_64`で`intl`の削除
|
526
|
+
|
527
|
+
`sudo yum install --enablerepo=remi-php71 php-intl`で`intl`のインストール
|
528
|
+
|
529
|
+
`sudo service httpd restart`で再起動
|
530
|
+
|
531
|
+
`composer install`のレスポンス
|
236
532
|
|
237
533
|
```
|
238
534
|
|
239
535
|
[vagrant@local profile]$ composer install
|
240
536
|
|
241
|
-
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/php_intl.dll' - /usr/lib64/php/modules/php_intl.dll: cannot open shared object file: No such file or directory in Unknown on line 0
|
242
|
-
|
243
537
|
Loading composer repositories with package information
|
244
538
|
|
245
539
|
Installing dependencies (including require-dev) from lock file
|
246
540
|
|
541
|
+
Nothing to install or update
|
542
|
+
|
543
|
+
Generating autoload files
|
544
|
+
|
247
|
-
|
545
|
+
> Cake\Composer\Installer\PluginInstaller::postAutoloadDump
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
546
|
+
|
252
|
-
|
253
|
-
- cakephp/cakephp 3.1.14 requires ext-intl * -> the requested PHP extension intl is missing from your system.
|
254
|
-
|
255
|
-
- cakephp/cakephp 3.1.14 requires ext-intl * -> the requested PHP extension intl is missing from your system.
|
256
|
-
|
257
|
-
|
547
|
+
> App\Console\Installer::postInstall
|
258
|
-
|
259
|
-
|
260
|
-
|
548
|
+
|
261
|
-
|
549
|
+
Set Folder Permissions ? (Default to Y) [Y,n]? Y
|
262
|
-
|
263
|
-
|
550
|
+
|
264
|
-
|
265
|
-
- /etc/php.d/20-bz2.ini
|
266
|
-
|
267
|
-
- /etc/php.d/20-calendar.ini
|
268
|
-
|
269
|
-
|
551
|
+
No Security.salt placeholder to replace.
|
270
|
-
|
271
|
-
- /etc/php.d/20-curl.ini
|
272
|
-
|
273
|
-
- /etc/php.d/20-dom.ini
|
274
|
-
|
275
|
-
- /etc/php.d/20-exif.ini
|
276
|
-
|
277
|
-
- /etc/php.d/20-fileinfo.ini
|
278
|
-
|
279
|
-
- /etc/php.d/20-ftp.ini
|
280
|
-
|
281
|
-
- /etc/php.d/20-gd.ini
|
282
|
-
|
283
|
-
- /etc/php.d/20-gettext.ini
|
284
|
-
|
285
|
-
- /etc/php.d/20-iconv.ini
|
286
|
-
|
287
|
-
- /etc/php.d/20-json.ini
|
288
|
-
|
289
|
-
- /etc/php.d/20-mbstring.ini
|
290
|
-
|
291
|
-
- /etc/php.d/20-mysqlnd.ini
|
292
|
-
|
293
|
-
- /etc/php.d/20-pdo.ini
|
294
|
-
|
295
|
-
- /etc/php.d/20-phar.ini
|
296
|
-
|
297
|
-
- /etc/php.d/20-simplexml.ini
|
298
|
-
|
299
|
-
- /etc/php.d/20-sockets.ini
|
300
|
-
|
301
|
-
- /etc/php.d/20-sqlite3.ini
|
302
|
-
|
303
|
-
- /etc/php.d/20-tokenizer.ini
|
304
|
-
|
305
|
-
- /etc/php.d/20-xml.ini
|
306
|
-
|
307
|
-
- /etc/php.d/20-xmlwriter.ini
|
308
|
-
|
309
|
-
- /etc/php.d/20-xsl.ini
|
310
|
-
|
311
|
-
- /etc/php.d/30-mysqli.ini
|
312
|
-
|
313
|
-
- /etc/php.d/30-pdo_mysql.ini
|
314
|
-
|
315
|
-
- /etc/php.d/30-pdo_sqlite.ini
|
316
|
-
|
317
|
-
- /etc/php.d/30-wddx.ini
|
318
|
-
|
319
|
-
- /etc/php.d/30-xmlreader.ini
|
320
|
-
|
321
|
-
You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.
|
322
552
|
|
323
553
|
[vagrant@local profile]$
|
324
554
|
|
325
555
|
```
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
`php --ini`で設定ファイル確認
|
330
|
-
|
331
|
-
レスポンスは下記
|
332
|
-
|
333
|
-
```
|
334
|
-
|
335
|
-
[vagrant@local profile]$ php --ini
|
336
|
-
|
337
|
-
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/php_intl.dll' - /usr/lib64/php/modules/php_intl.dll: cannot open shared object file: No such file or directory in Unknown on line 0
|
338
|
-
|
339
|
-
Configuration File (php.ini) Path: /etc
|
340
|
-
|
341
|
-
Loaded Configuration File: /etc/php.ini
|
342
|
-
|
343
|
-
Scan for additional .ini files in: /etc/php.d
|
344
|
-
|
345
|
-
Additional .ini files parsed: /etc/php.d/20-bz2.ini,
|
346
|
-
|
347
|
-
/etc/php.d/20-calendar.ini,
|
348
|
-
|
349
|
-
/etc/php.d/20-ctype.ini,
|
350
|
-
|
351
|
-
/etc/php.d/20-curl.ini,
|
352
|
-
|
353
|
-
/etc/php.d/20-dom.ini,
|
354
|
-
|
355
|
-
/etc/php.d/20-exif.ini,
|
356
|
-
|
357
|
-
/etc/php.d/20-fileinfo.ini,
|
358
|
-
|
359
|
-
/etc/php.d/20-ftp.ini,
|
360
|
-
|
361
|
-
/etc/php.d/20-gd.ini,
|
362
|
-
|
363
|
-
/etc/php.d/20-gettext.ini,
|
364
|
-
|
365
|
-
/etc/php.d/20-iconv.ini,
|
366
|
-
|
367
|
-
/etc/php.d/20-json.ini,
|
368
|
-
|
369
|
-
/etc/php.d/20-mbstring.ini,
|
370
|
-
|
371
|
-
/etc/php.d/20-mysqlnd.ini,
|
372
|
-
|
373
|
-
/etc/php.d/20-pdo.ini,
|
374
|
-
|
375
|
-
/etc/php.d/20-phar.ini,
|
376
|
-
|
377
|
-
/etc/php.d/20-simplexml.ini,
|
378
|
-
|
379
|
-
/etc/php.d/20-sockets.ini,
|
380
|
-
|
381
|
-
/etc/php.d/20-sqlite3.ini,
|
382
|
-
|
383
|
-
/etc/php.d/20-tokenizer.ini,
|
384
|
-
|
385
|
-
/etc/php.d/20-xml.ini,
|
386
|
-
|
387
|
-
/etc/php.d/20-xmlwriter.ini,
|
388
|
-
|
389
|
-
/etc/php.d/20-xsl.ini,
|
390
|
-
|
391
|
-
/etc/php.d/30-mysqli.ini,
|
392
|
-
|
393
|
-
/etc/php.d/30-pdo_mysql.ini,
|
394
|
-
|
395
|
-
/etc/php.d/30-pdo_sqlite.ini,
|
396
|
-
|
397
|
-
/etc/php.d/30-wddx.ini,
|
398
|
-
|
399
|
-
/etc/php.d/30-xmlreader.ini
|
400
|
-
|
401
|
-
|
402
|
-
|
403
|
-
[vagrant@local profile]$
|
404
|
-
|
405
|
-
```
|
406
|
-
|
407
|
-
|
408
|
-
|
409
|
-
一行目に`Warning`
|
410
|
-
|
411
|
-
`/usr/lib64/php/modules/`配下に、`php_intl.dll`が存在していないことによるエラー。
|
412
|
-
|
413
|
-
|
414
|
-
|
415
|
-
|
416
|
-
|
417
|
-
###ログ4
|
418
|
-
|
419
|
-
|
420
|
-
|
421
|
-
`php -m | grep intl`で、`intl`を検索
|
422
|
-
|
423
|
-
※`-m`オプションは、読み込まれているモジュールの一覧を表示する
|
424
|
-
|
425
|
-
レスポンスは下記
|
426
|
-
|
427
|
-
```
|
428
|
-
|
429
|
-
[vagrant@local profile]$ php -m | grep intl
|
430
|
-
|
431
|
-
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/php_intl.dll' - /usr/lib64/php/modules/php_intl.dll: cannot open shared object file: No such file or directory in Unknown on line 0
|
432
|
-
|
433
|
-
[vagrant@local profile]$
|
434
|
-
|
435
|
-
```
|
436
|
-
|
437
|
-
|
438
|
-
|
439
|
-
ログ3の`php --ini`を実行したレスポンスの`Warning`と同様の`Warning`が表示
|
440
|
-
|
441
|
-
|
442
|
-
|
443
|
-
|
444
|
-
|
445
|
-
###ログ5
|
446
|
-
|
447
|
-
|
448
|
-
|
449
|
-
`sudo yum install php71-php-intl.x86_64`で`intl`をインストールするまでの手順は、
|
450
|
-
|
451
|
-
|
452
|
-
|
453
|
-
```
|
454
|
-
|
455
|
-
1. 'php -v' でPHPのバージョン確認
|
456
|
-
|
457
|
-
2. 'yum list | grep intl' で 'yum' でインストールできる 'intl' のバージョン検索
|
458
|
-
|
459
|
-
3. PHPのバージョンに対応する 'intl' を選択し、 'yum' でインストール
|
460
|
-
|
461
|
-
```
|
462
|
-
|
463
|
-
|
464
|
-
|
465
|
-
`php -v`のレスポンスは下記
|
466
|
-
|
467
|
-
```
|
468
|
-
|
469
|
-
[vagrant@local etc]$ php -v
|
470
|
-
|
471
|
-
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/php_intl.dll' - /usr/lib64/php/modules/php_intl.dll: cannot open shared object file: No such file or directory in Unknown on line 0
|
472
|
-
|
473
|
-
PHP 7.1.25 (cli) (built: Dec 8 2018 13:52:58) ( NTS )
|
474
|
-
|
475
|
-
Copyright (c) 1997-2018 The PHP Group
|
476
|
-
|
477
|
-
Zend Engine v3.1.0, Copyright (c) 1998-2018 Zend Technologies
|
478
|
-
|
479
|
-
[vagrant@local etc]$
|
480
|
-
|
481
|
-
```
|
482
|
-
|
483
|
-
※現状、バージョン確認時も同様の`Warning`が表示
|
484
|
-
|
485
|
-
|
486
|
-
|
487
|
-
現在のPHPのバージョンは`7.1.25`
|
488
|
-
|
489
|
-
|
490
|
-
|
491
|
-
`yum list | grep intl`のレスポンスは下記
|
492
|
-
|
493
|
-
```
|
494
|
-
|
495
|
-
[vagrant@local etc]$ yum list | grep intl
|
496
|
-
|
497
|
-
Repository google-chrome is listed more than once in the configuration
|
498
|
-
|
499
|
-
php71-php-intl.x86_64 7.1.25-2.el7.remi @remi-safe
|
500
|
-
|
501
|
-
intltool.noarch 0.50.2-7.el7 base
|
502
|
-
|
503
|
-
perl-libintl.x86_64 1.20-12.el7 base
|
504
|
-
|
505
|
-
php-intl.x86_64 5.4.16-46.el7 base
|
506
|
-
|
507
|
-
php54-php-intl.x86_64 5.4.45-16.el7.remi remi-safe
|
508
|
-
|
509
|
-
php55-php-intl.x86_64 5.5.38-10.el7.remi remi-safe
|
510
|
-
|
511
|
-
php56-php-intl.x86_64 5.6.39-1.el7.remi remi-safe
|
512
|
-
|
513
|
-
php70-php-intl.x86_64 7.0.33-1.el7.remi remi-safe
|
514
|
-
|
515
|
-
php72-php-intl.x86_64 7.2.13-2.el7.remi remi-safe
|
516
|
-
|
517
|
-
php73-php-intl.x86_64 7.3.0-1.el7.remi remi-safe
|
518
|
-
|
519
|
-
[vagrant@local etc]$
|
520
|
-
|
521
|
-
```
|
522
|
-
|
523
|
-
|
524
|
-
|
525
|
-
PHPのバージョンが`7.1.25`の為、`php71-php-intl.x86_64`を選択。
|
526
|
-
|
527
|
-
|
528
|
-
|
529
|
-
|
530
|
-
|
531
|
-
###ログ6
|
532
|
-
|
533
|
-
|
534
|
-
|
535
|
-
`sudo find / -name intl.so`の実行後レスポンス
|
536
|
-
|
537
|
-
|
538
|
-
|
539
|
-
[vagrant@local profile]$ sudo find / -name intl.so
|
540
|
-
|
541
|
-
/opt/remi/php71/root/usr/lib64/php/modules/intl.so
|
542
|
-
|
543
|
-
[vagrant@local profile]$
|
544
|
-
|
545
|
-
|
546
|
-
|
547
|
-
`intl.so`は`/opt/remi/php71/root/usr/lib64/php/modules/`配下に存在しているよう。
|
548
|
-
|
549
|
-
|
550
|
-
|
551
|
-
|
552
|
-
|
553
|
-
###ログ7
|
554
|
-
|
555
|
-
|
556
|
-
|
557
|
-
`sudo find / -name php71-php`の実行後レスポンス
|
558
|
-
|
559
|
-
|
560
|
-
|
561
|
-
```
|
562
|
-
|
563
|
-
[vagrant@local profile]$ sudo find / -name php71-php
|
564
|
-
|
565
|
-
[vagrant@local profile]$
|
566
|
-
|
567
|
-
```
|
568
|
-
|
569
|
-
|
570
|
-
|
571
|
-
何も表示されず。
|
572
|
-
|
573
|
-
インストールされていない。
|
9
ログ追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -541,3 +541,33 @@
|
|
541
541
|
/opt/remi/php71/root/usr/lib64/php/modules/intl.so
|
542
542
|
|
543
543
|
[vagrant@local profile]$
|
544
|
+
|
545
|
+
|
546
|
+
|
547
|
+
`intl.so`は`/opt/remi/php71/root/usr/lib64/php/modules/`配下に存在しているよう。
|
548
|
+
|
549
|
+
|
550
|
+
|
551
|
+
|
552
|
+
|
553
|
+
###ログ7
|
554
|
+
|
555
|
+
|
556
|
+
|
557
|
+
`sudo find / -name php71-php`の実行後レスポンス
|
558
|
+
|
559
|
+
|
560
|
+
|
561
|
+
```
|
562
|
+
|
563
|
+
[vagrant@local profile]$ sudo find / -name php71-php
|
564
|
+
|
565
|
+
[vagrant@local profile]$
|
566
|
+
|
567
|
+
```
|
568
|
+
|
569
|
+
|
570
|
+
|
571
|
+
何も表示されず。
|
572
|
+
|
573
|
+
インストールされていない。
|
8
ログ追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -523,3 +523,21 @@
|
|
523
523
|
|
524
524
|
|
525
525
|
PHPのバージョンが`7.1.25`の為、`php71-php-intl.x86_64`を選択。
|
526
|
+
|
527
|
+
|
528
|
+
|
529
|
+
|
530
|
+
|
531
|
+
###ログ6
|
532
|
+
|
533
|
+
|
534
|
+
|
535
|
+
`sudo find / -name intl.so`の実行後レスポンス
|
536
|
+
|
537
|
+
|
538
|
+
|
539
|
+
[vagrant@local profile]$ sudo find / -name intl.so
|
540
|
+
|
541
|
+
/opt/remi/php71/root/usr/lib64/php/modules/intl.so
|
542
|
+
|
543
|
+
[vagrant@local profile]$
|
7
correction
test
CHANGED
File without changes
|
test
CHANGED
@@ -452,11 +452,11 @@
|
|
452
452
|
|
453
453
|
```
|
454
454
|
|
455
|
-
1. 'php -v'でPHPのバージョン確認
|
455
|
+
1. 'php -v' でPHPのバージョン確認
|
456
|
-
|
456
|
+
|
457
|
-
2. 'yum list | grep intl'で'yum'でインストールできる'intl'のバージョン検索
|
457
|
+
2. 'yum list | grep intl' で 'yum' でインストールできる 'intl' のバージョン検索
|
458
|
-
|
458
|
+
|
459
|
-
3. PHPのバージョンに対応する'intl'を選択し、'yum'でインストール
|
459
|
+
3. PHPのバージョンに対応する 'intl' を選択し、 'yum' でインストール
|
460
460
|
|
461
461
|
```
|
462
462
|
|
6
log content Correction
test
CHANGED
File without changes
|
test
CHANGED
@@ -452,11 +452,11 @@
|
|
452
452
|
|
453
453
|
```
|
454
454
|
|
455
|
-
1.
|
455
|
+
1. 'php -v'でPHPのバージョン確認
|
456
|
-
|
456
|
+
|
457
|
-
2.
|
457
|
+
2. 'yum list | grep intl'で'yum'でインストールできる'intl'のバージョン検索
|
458
|
-
|
458
|
+
|
459
|
-
3. PHPのバージョンに対応する
|
459
|
+
3. PHPのバージョンに対応する'intl'を選択し、'yum'でインストール
|
460
460
|
|
461
461
|
```
|
462
462
|
|
5
add log
test
CHANGED
File without changes
|
test
CHANGED
@@ -437,3 +437,89 @@
|
|
437
437
|
|
438
438
|
|
439
439
|
ログ3の`php --ini`を実行したレスポンスの`Warning`と同様の`Warning`が表示
|
440
|
+
|
441
|
+
|
442
|
+
|
443
|
+
|
444
|
+
|
445
|
+
###ログ5
|
446
|
+
|
447
|
+
|
448
|
+
|
449
|
+
`sudo yum install php71-php-intl.x86_64`で`intl`をインストールするまでの手順は、
|
450
|
+
|
451
|
+
|
452
|
+
|
453
|
+
```
|
454
|
+
|
455
|
+
1. `php -v`でPHPのバージョン確認
|
456
|
+
|
457
|
+
2. `yum list | grep intl`で`yum`でインストールできる`intl`のバージョン検索
|
458
|
+
|
459
|
+
3. PHPのバージョンに対応する`intl`を選択し、`yum`でインストール
|
460
|
+
|
461
|
+
```
|
462
|
+
|
463
|
+
|
464
|
+
|
465
|
+
`php -v`のレスポンスは下記
|
466
|
+
|
467
|
+
```
|
468
|
+
|
469
|
+
[vagrant@local etc]$ php -v
|
470
|
+
|
471
|
+
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/php_intl.dll' - /usr/lib64/php/modules/php_intl.dll: cannot open shared object file: No such file or directory in Unknown on line 0
|
472
|
+
|
473
|
+
PHP 7.1.25 (cli) (built: Dec 8 2018 13:52:58) ( NTS )
|
474
|
+
|
475
|
+
Copyright (c) 1997-2018 The PHP Group
|
476
|
+
|
477
|
+
Zend Engine v3.1.0, Copyright (c) 1998-2018 Zend Technologies
|
478
|
+
|
479
|
+
[vagrant@local etc]$
|
480
|
+
|
481
|
+
```
|
482
|
+
|
483
|
+
※現状、バージョン確認時も同様の`Warning`が表示
|
484
|
+
|
485
|
+
|
486
|
+
|
487
|
+
現在のPHPのバージョンは`7.1.25`
|
488
|
+
|
489
|
+
|
490
|
+
|
491
|
+
`yum list | grep intl`のレスポンスは下記
|
492
|
+
|
493
|
+
```
|
494
|
+
|
495
|
+
[vagrant@local etc]$ yum list | grep intl
|
496
|
+
|
497
|
+
Repository google-chrome is listed more than once in the configuration
|
498
|
+
|
499
|
+
php71-php-intl.x86_64 7.1.25-2.el7.remi @remi-safe
|
500
|
+
|
501
|
+
intltool.noarch 0.50.2-7.el7 base
|
502
|
+
|
503
|
+
perl-libintl.x86_64 1.20-12.el7 base
|
504
|
+
|
505
|
+
php-intl.x86_64 5.4.16-46.el7 base
|
506
|
+
|
507
|
+
php54-php-intl.x86_64 5.4.45-16.el7.remi remi-safe
|
508
|
+
|
509
|
+
php55-php-intl.x86_64 5.5.38-10.el7.remi remi-safe
|
510
|
+
|
511
|
+
php56-php-intl.x86_64 5.6.39-1.el7.remi remi-safe
|
512
|
+
|
513
|
+
php70-php-intl.x86_64 7.0.33-1.el7.remi remi-safe
|
514
|
+
|
515
|
+
php72-php-intl.x86_64 7.2.13-2.el7.remi remi-safe
|
516
|
+
|
517
|
+
php73-php-intl.x86_64 7.3.0-1.el7.remi remi-safe
|
518
|
+
|
519
|
+
[vagrant@local etc]$
|
520
|
+
|
521
|
+
```
|
522
|
+
|
523
|
+
|
524
|
+
|
525
|
+
PHPのバージョンが`7.1.25`の為、`php71-php-intl.x86_64`を選択。
|
4
ログ追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -222,7 +222,7 @@
|
|
222
222
|
|
223
223
|
|
224
224
|
|
225
|
-
##ログ3
|
225
|
+
###ログ3
|
226
226
|
|
227
227
|
|
228
228
|
|
@@ -409,3 +409,31 @@
|
|
409
409
|
一行目に`Warning`
|
410
410
|
|
411
411
|
`/usr/lib64/php/modules/`配下に、`php_intl.dll`が存在していないことによるエラー。
|
412
|
+
|
413
|
+
|
414
|
+
|
415
|
+
|
416
|
+
|
417
|
+
###ログ4
|
418
|
+
|
419
|
+
|
420
|
+
|
421
|
+
`php -m | grep intl`で、`intl`を検索
|
422
|
+
|
423
|
+
※`-m`オプションは、読み込まれているモジュールの一覧を表示する
|
424
|
+
|
425
|
+
レスポンスは下記
|
426
|
+
|
427
|
+
```
|
428
|
+
|
429
|
+
[vagrant@local profile]$ php -m | grep intl
|
430
|
+
|
431
|
+
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/php_intl.dll' - /usr/lib64/php/modules/php_intl.dll: cannot open shared object file: No such file or directory in Unknown on line 0
|
432
|
+
|
433
|
+
[vagrant@local profile]$
|
434
|
+
|
435
|
+
```
|
436
|
+
|
437
|
+
|
438
|
+
|
439
|
+
ログ3の`php --ini`を実行したレスポンスの`Warning`と同様の`Warning`が表示
|
3
ログの追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -140,11 +140,11 @@
|
|
140
140
|
|
141
141
|
|
142
142
|
|
143
|
-
##追記
|
143
|
+
##追記
|
144
|
+
|
145
|
+
|
146
|
+
|
144
|
-
|
147
|
+
###ログ1
|
145
|
-
|
146
|
-
|
147
|
-
|
148
148
|
|
149
149
|
・intlが存在していないので、yumでinstall
|
150
150
|
|
@@ -186,7 +186,7 @@
|
|
186
186
|
|
187
187
|
|
188
188
|
|
189
|
-
##
|
189
|
+
##ログ2
|
190
190
|
|
191
191
|
|
192
192
|
|
@@ -215,3 +215,197 @@
|
|
215
215
|
|
216
216
|
|
217
217
|
`intl`が存在していないという問題は解決してない。
|
218
|
+
|
219
|
+
|
220
|
+
|
221
|
+
|
222
|
+
|
223
|
+
|
224
|
+
|
225
|
+
##ログ3
|
226
|
+
|
227
|
+
|
228
|
+
|
229
|
+
・`sudo yum install php71-php-intl.x86_64`で`intl`をインストール
|
230
|
+
|
231
|
+
・インストール後`sudo service httpd restart`でApacheの再起動
|
232
|
+
|
233
|
+
・再起動後、対象ディレクトリで`composer install`実行
|
234
|
+
|
235
|
+
→実行後、下記のエラー表示
|
236
|
+
|
237
|
+
```
|
238
|
+
|
239
|
+
[vagrant@local profile]$ composer install
|
240
|
+
|
241
|
+
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/php_intl.dll' - /usr/lib64/php/modules/php_intl.dll: cannot open shared object file: No such file or directory in Unknown on line 0
|
242
|
+
|
243
|
+
Loading composer repositories with package information
|
244
|
+
|
245
|
+
Installing dependencies (including require-dev) from lock file
|
246
|
+
|
247
|
+
Your requirements could not be resolved to an installable set of packages.
|
248
|
+
|
249
|
+
|
250
|
+
|
251
|
+
Problem 1
|
252
|
+
|
253
|
+
- cakephp/cakephp 3.1.14 requires ext-intl * -> the requested PHP extension intl is missing from your system.
|
254
|
+
|
255
|
+
- cakephp/cakephp 3.1.14 requires ext-intl * -> the requested PHP extension intl is missing from your system.
|
256
|
+
|
257
|
+
- Installation request for cakephp/cakephp 3.1.14 -> satisfiable by cakephp/cakephp[3.1.14].
|
258
|
+
|
259
|
+
|
260
|
+
|
261
|
+
To enable extensions, verify that they are enabled in your .ini files:
|
262
|
+
|
263
|
+
- /etc/php.ini
|
264
|
+
|
265
|
+
- /etc/php.d/20-bz2.ini
|
266
|
+
|
267
|
+
- /etc/php.d/20-calendar.ini
|
268
|
+
|
269
|
+
- /etc/php.d/20-ctype.ini
|
270
|
+
|
271
|
+
- /etc/php.d/20-curl.ini
|
272
|
+
|
273
|
+
- /etc/php.d/20-dom.ini
|
274
|
+
|
275
|
+
- /etc/php.d/20-exif.ini
|
276
|
+
|
277
|
+
- /etc/php.d/20-fileinfo.ini
|
278
|
+
|
279
|
+
- /etc/php.d/20-ftp.ini
|
280
|
+
|
281
|
+
- /etc/php.d/20-gd.ini
|
282
|
+
|
283
|
+
- /etc/php.d/20-gettext.ini
|
284
|
+
|
285
|
+
- /etc/php.d/20-iconv.ini
|
286
|
+
|
287
|
+
- /etc/php.d/20-json.ini
|
288
|
+
|
289
|
+
- /etc/php.d/20-mbstring.ini
|
290
|
+
|
291
|
+
- /etc/php.d/20-mysqlnd.ini
|
292
|
+
|
293
|
+
- /etc/php.d/20-pdo.ini
|
294
|
+
|
295
|
+
- /etc/php.d/20-phar.ini
|
296
|
+
|
297
|
+
- /etc/php.d/20-simplexml.ini
|
298
|
+
|
299
|
+
- /etc/php.d/20-sockets.ini
|
300
|
+
|
301
|
+
- /etc/php.d/20-sqlite3.ini
|
302
|
+
|
303
|
+
- /etc/php.d/20-tokenizer.ini
|
304
|
+
|
305
|
+
- /etc/php.d/20-xml.ini
|
306
|
+
|
307
|
+
- /etc/php.d/20-xmlwriter.ini
|
308
|
+
|
309
|
+
- /etc/php.d/20-xsl.ini
|
310
|
+
|
311
|
+
- /etc/php.d/30-mysqli.ini
|
312
|
+
|
313
|
+
- /etc/php.d/30-pdo_mysql.ini
|
314
|
+
|
315
|
+
- /etc/php.d/30-pdo_sqlite.ini
|
316
|
+
|
317
|
+
- /etc/php.d/30-wddx.ini
|
318
|
+
|
319
|
+
- /etc/php.d/30-xmlreader.ini
|
320
|
+
|
321
|
+
You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.
|
322
|
+
|
323
|
+
[vagrant@local profile]$
|
324
|
+
|
325
|
+
```
|
326
|
+
|
327
|
+
|
328
|
+
|
329
|
+
`php --ini`で設定ファイル確認
|
330
|
+
|
331
|
+
レスポンスは下記
|
332
|
+
|
333
|
+
```
|
334
|
+
|
335
|
+
[vagrant@local profile]$ php --ini
|
336
|
+
|
337
|
+
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/php_intl.dll' - /usr/lib64/php/modules/php_intl.dll: cannot open shared object file: No such file or directory in Unknown on line 0
|
338
|
+
|
339
|
+
Configuration File (php.ini) Path: /etc
|
340
|
+
|
341
|
+
Loaded Configuration File: /etc/php.ini
|
342
|
+
|
343
|
+
Scan for additional .ini files in: /etc/php.d
|
344
|
+
|
345
|
+
Additional .ini files parsed: /etc/php.d/20-bz2.ini,
|
346
|
+
|
347
|
+
/etc/php.d/20-calendar.ini,
|
348
|
+
|
349
|
+
/etc/php.d/20-ctype.ini,
|
350
|
+
|
351
|
+
/etc/php.d/20-curl.ini,
|
352
|
+
|
353
|
+
/etc/php.d/20-dom.ini,
|
354
|
+
|
355
|
+
/etc/php.d/20-exif.ini,
|
356
|
+
|
357
|
+
/etc/php.d/20-fileinfo.ini,
|
358
|
+
|
359
|
+
/etc/php.d/20-ftp.ini,
|
360
|
+
|
361
|
+
/etc/php.d/20-gd.ini,
|
362
|
+
|
363
|
+
/etc/php.d/20-gettext.ini,
|
364
|
+
|
365
|
+
/etc/php.d/20-iconv.ini,
|
366
|
+
|
367
|
+
/etc/php.d/20-json.ini,
|
368
|
+
|
369
|
+
/etc/php.d/20-mbstring.ini,
|
370
|
+
|
371
|
+
/etc/php.d/20-mysqlnd.ini,
|
372
|
+
|
373
|
+
/etc/php.d/20-pdo.ini,
|
374
|
+
|
375
|
+
/etc/php.d/20-phar.ini,
|
376
|
+
|
377
|
+
/etc/php.d/20-simplexml.ini,
|
378
|
+
|
379
|
+
/etc/php.d/20-sockets.ini,
|
380
|
+
|
381
|
+
/etc/php.d/20-sqlite3.ini,
|
382
|
+
|
383
|
+
/etc/php.d/20-tokenizer.ini,
|
384
|
+
|
385
|
+
/etc/php.d/20-xml.ini,
|
386
|
+
|
387
|
+
/etc/php.d/20-xmlwriter.ini,
|
388
|
+
|
389
|
+
/etc/php.d/20-xsl.ini,
|
390
|
+
|
391
|
+
/etc/php.d/30-mysqli.ini,
|
392
|
+
|
393
|
+
/etc/php.d/30-pdo_mysql.ini,
|
394
|
+
|
395
|
+
/etc/php.d/30-pdo_sqlite.ini,
|
396
|
+
|
397
|
+
/etc/php.d/30-wddx.ini,
|
398
|
+
|
399
|
+
/etc/php.d/30-xmlreader.ini
|
400
|
+
|
401
|
+
|
402
|
+
|
403
|
+
[vagrant@local profile]$
|
404
|
+
|
405
|
+
```
|
406
|
+
|
407
|
+
|
408
|
+
|
409
|
+
一行目に`Warning`
|
410
|
+
|
411
|
+
`/usr/lib64/php/modules/`配下に、`php_intl.dll`が存在していないことによるエラー。
|
2
追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -140,7 +140,7 @@
|
|
140
140
|
|
141
141
|
|
142
142
|
|
143
|
-
##追記
|
143
|
+
##追記1
|
144
144
|
|
145
145
|
|
146
146
|
|
@@ -179,3 +179,39 @@
|
|
179
179
|
・スーパーユーザーで再度実行
|
180
180
|
|
181
181
|
→レスポンスは何もなく
|
182
|
+
|
183
|
+
|
184
|
+
|
185
|
+
|
186
|
+
|
187
|
+
|
188
|
+
|
189
|
+
##追記2
|
190
|
+
|
191
|
+
|
192
|
+
|
193
|
+
Apacheの`error.log`
|
194
|
+
|
195
|
+
|
196
|
+
|
197
|
+
PHP Fatal error: You must enable the intl extension to use CakePHP. in /vagrant/sample.com/profile/config/bootstrap.php on line 38
|
198
|
+
|
199
|
+
|
200
|
+
|
201
|
+
対象箇所のコード
|
202
|
+
|
203
|
+
```php
|
204
|
+
|
205
|
+
// You can remove this if you are confident you have intl installed.
|
206
|
+
|
207
|
+
if (!extension_loaded('intl')) {
|
208
|
+
|
209
|
+
trigger_error('You must enable the intl extension to use CakePHP.', E_USER_ERROR);
|
210
|
+
|
211
|
+
}
|
212
|
+
|
213
|
+
```
|
214
|
+
|
215
|
+
|
216
|
+
|
217
|
+
`intl`が存在していないという問題は解決してない。
|
1
追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -135,3 +135,47 @@
|
|
135
135
|
|
136
136
|
|
137
137
|
よろしくお願い致します。
|
138
|
+
|
139
|
+
|
140
|
+
|
141
|
+
|
142
|
+
|
143
|
+
##追記
|
144
|
+
|
145
|
+
|
146
|
+
|
147
|
+
|
148
|
+
|
149
|
+
・intlが存在していないので、yumでinstall
|
150
|
+
|
151
|
+
・phpのバージョンが7.1.25なのでphp-71を選択
|
152
|
+
|
153
|
+
・`sudo yum install php71-php-intl.x86_64`でインストール
|
154
|
+
|
155
|
+
→正常にインストール完了
|
156
|
+
|
157
|
+
・intl有効化の為に/etc/php.iniファイルのextensionを確認したが、`extension=php_intl.dll`の記載が無かったため、追記。
|
158
|
+
|
159
|
+
→追記後、httpdを再起動`sudo service httpd restart`
|
160
|
+
|
161
|
+
・`php -i | grep intl`コマンドでintlが存在しているか確認
|
162
|
+
|
163
|
+
・PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/php_intl.dll' -
|
164
|
+
|
165
|
+
/usr/lib64/php/modules/php_intl.dll: cannot open shared object file: No such file or directory in Unknown on line 0
|
166
|
+
|
167
|
+
エラーが表示
|
168
|
+
|
169
|
+
・`php_intl.dll`が/usr/lib64/php/modules/配下に存在していない事によるエラー
|
170
|
+
|
171
|
+
・`ll /usr/lib64/php/modules/ | grep php_intl.dll`で再度確認
|
172
|
+
|
173
|
+
→レスポンスは何もないため、存在していない事を確認
|
174
|
+
|
175
|
+
・`find / -name php_intl.dll`でphp_intl.dllを検索
|
176
|
+
|
177
|
+
・色々表示されたが許可が無いというエラーが表示された
|
178
|
+
|
179
|
+
・スーパーユーザーで再度実行
|
180
|
+
|
181
|
+
→レスポンスは何もなく
|