Skip to content

Commit 44db6c6

Browse files
authored
Update memo.md
1 parent 79a08b3 commit 44db6c6

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

PHP/memo.md

+12
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,10 @@ php artisan migrate:reset
7979
```bash
8080
php artisan migrate:fresh
8181
```
82+
#### テスト環境
83+
```bash
84+
php artisan migrate --env=testing
85+
```
8286
#### 作り直したあとのキャッシュクリア
8387
```bash
8488
php artisan cache:clear
@@ -188,6 +192,14 @@ composer require aws/aws-sdk-php
188192
```
189193

190194

195+
---
196+
## AWSでELB越しにアクセス元のIPを取得
197+
参考:https://qiita.com/niisan-tokyo/items/264d4e8584ed58536bf4
198+
```php
199+
$_SERVER["HTTP_X_FORWARDED_FOR"]
200+
```
201+
経由しているIPが配列で入っている
202+
191203
---
192204
## dockerのAmazonLinux2にhttpdとphpをインストールしてapacheを起動した際にエラーが発生したときの対処
193205
- エラー: `ERROR: [pool www] failed to read the ACL of the socket '/run/php-fpm/www.sock': Operation not supported (95)`

0 commit comments

Comments
 (0)