質問するログイン新規登録

質問編集履歴

6

エラーの内容の修正

2018/03/30 08:18

投稿

T.FUJII
T.FUJII

スコア21

title CHANGED
File without changes
body CHANGED
@@ -40,8 +40,13 @@
40
40
  追記(CHERRY様)
41
41
  【/var/log/nginx/error.log】
42
42
  ```
43
- 2018/03/30 16:59:33 [error] 9404#0: *34 FastCGI sent in stderr: "PHP message: PHP Warning: require(/var/www/html/scraping/public/../vendor/autoload.php): failed to open stream: No such file or directory in /var/www/html/scraping/public/index.php on line 24
44
- PHP message: PHP Fatal error: require(): Failed opening required '/var/www/html/scraping/public/../vendor/autoload.php' (include_path='.:/usr/share/pear:/usr/share/php') in /var/www/html/scraping/public/index.php on line 24" while reading response header from upstream, client: 114.179.83.214, server: , request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/php-fpm.sock:", host: "27.133.152.201"
43
+ PHP message: PHP Fatal error: Uncaught ErrorException: file_put_contents(/var/www/html/scraping/storage/framework/views/0c34c98ae8b1ae9acd904b0fab9fcc1606801835.php): failed to open stream: Permission denied in /var/www/html/scraping/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:122
44
+ Stack trace:
45
+ #0 [internal function]: Illuminate\Foundation\Bootstrap\HandleExceptions->handleError(2, 'file_put_conten...', '/var/www/html/s...', 122, Array)
46
+ #1 /var/www/html/scraping/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php(122): file_put_contents('/var/www/html/s...', '<?php\n $titl...', 0)
47
+ #2 /var/www/html/scraping/vendor/laravel/framework/src/Illuminate/View/Compilers/BladeCompiler.php(121): Illuminate\Filesystem\Filesystem->put('/var/www/html/s...', '<?php\n $titl...')
48
+ #3 /var/www/html/scraping/vendor/laravel/framework/src/Illuminate/View/Engines/CompilerEngine.php(51): Illuminate\View\Compilers\BladeCompiler-
49
+ (END)
45
50
  ```
46
51
 
47
52
  ###該当のソースコード

5

書式の変更

2018/03/30 08:18

投稿

T.FUJII
T.FUJII

スコア21

title CHANGED
File without changes
body CHANGED
@@ -18,6 +18,7 @@
18
18
  初心者なのでわからないですが、yumでnginxを入れ、yum-cronで自動アップデートを(apply_updates = yes)としていて中のconfが書き換わるようなことがあるのでしょうか?以前はdefault.confとしていたはずのものがdefault.comf.rpmsaveとなっていたので、default.confに戻しました。
19
19
 
20
20
  composer installも行いました。
21
+
21
22
  ```
22
23
  $ composer install
23
24
  Loading composer repositories with package information
@@ -26,12 +27,15 @@
26
27
  Generating autoload files
27
28
  ```
28
29
 
30
+
29
31
  ###発生している問題・エラーメッセージ
30
32
 
31
33
  下記のエラーが発生しました
32
34
 
33
35
  【/var/log/nginx/access.log】
34
- ```114.179.83.214 - - [30/Mar/2018:15:40:43 +0900] "GET / HTTP/1.1" 500 5 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36" "-"```
36
+ ```
37
+ 114.179.83.214 - - [30/Mar/2018:15:40:43 +0900] "GET / HTTP/1.1" 500 5 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36" "-"
38
+ ```
35
39
 
36
40
  追記(CHERRY様)
37
41
  【/var/log/nginx/error.log】

4

composer installの追加

2018/03/30 08:13

投稿

T.FUJII
T.FUJII

スコア21

title CHANGED
File without changes
body CHANGED
@@ -17,12 +17,21 @@
17
17
 
18
18
  初心者なのでわからないですが、yumでnginxを入れ、yum-cronで自動アップデートを(apply_updates = yes)としていて中のconfが書き換わるようなことがあるのでしょうか?以前はdefault.confとしていたはずのものがdefault.comf.rpmsaveとなっていたので、default.confに戻しました。
19
19
 
20
+ composer installも行いました。
21
+ ```
22
+ $ composer install
23
+ Loading composer repositories with package information
24
+ Installing dependencies (including require-dev) from lock file
25
+ Nothing to install or update
26
+ Generating autoload files
27
+ ```
28
+
20
29
  ###発生している問題・エラーメッセージ
21
30
 
22
31
  下記のエラーが発生しました
23
32
 
24
33
  【/var/log/nginx/access.log】
25
- 114.179.83.214 - - [30/Mar/2018:15:40:43 +0900] "GET / HTTP/1.1" 500 5 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36" "-"
34
+ ```114.179.83.214 - - [30/Mar/2018:15:40:43 +0900] "GET / HTTP/1.1" 500 5 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36" "-"```
26
35
 
27
36
  追記(CHERRY様)
28
37
  【/var/log/nginx/error.log】

3

内容の修正

2018/03/30 08:09

投稿

T.FUJII
T.FUJII

スコア21

title CHANGED
File without changes
body CHANGED
@@ -27,7 +27,6 @@
27
27
  追記(CHERRY様)
28
28
  【/var/log/nginx/error.log】
29
29
  ```
30
- PHP message: PHP Fatal error: require(): Failed opening required '/var/www/html/scraping/public/../vendor/autoload.php' (include_path='.:/usr/share/pear:/usr/share/php') in /var/www/html/scraping/public/index.php on line 24" while reading response header from upstream, client: 114.179.83.214, server: , request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/php-fpm.sock:", host: "27.133.152.201"
31
30
  2018/03/30 16:59:33 [error] 9404#0: *34 FastCGI sent in stderr: "PHP message: PHP Warning: require(/var/www/html/scraping/public/../vendor/autoload.php): failed to open stream: No such file or directory in /var/www/html/scraping/public/index.php on line 24
32
31
  PHP message: PHP Fatal error: require(): Failed opening required '/var/www/html/scraping/public/../vendor/autoload.php' (include_path='.:/usr/share/pear:/usr/share/php') in /var/www/html/scraping/public/index.php on line 24" while reading response header from upstream, client: 114.179.83.214, server: , request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/php-fpm.sock:", host: "27.133.152.201"
33
32
  ```

2

/var/log/nginx/error.logを追記しました

2018/03/30 08:03

投稿

T.FUJII
T.FUJII

スコア21

title CHANGED
File without changes
body CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  500エラーを何とかしたいです。
4
4
 
5
- [画面上]
5
+ [crome画面上]
6
6
  このページは動作していません
7
7
  27.133.152.201 では現在このリクエストを処理できません。
8
8
  HTTP ERROR 500
@@ -24,6 +24,14 @@
24
24
  【/var/log/nginx/access.log】
25
25
  114.179.83.214 - - [30/Mar/2018:15:40:43 +0900] "GET / HTTP/1.1" 500 5 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36" "-"
26
26
 
27
+ 追記(CHERRY様)
28
+ 【/var/log/nginx/error.log】
29
+ ```
30
+ PHP message: PHP Fatal error: require(): Failed opening required '/var/www/html/scraping/public/../vendor/autoload.php' (include_path='.:/usr/share/pear:/usr/share/php') in /var/www/html/scraping/public/index.php on line 24" while reading response header from upstream, client: 114.179.83.214, server: , request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/php-fpm.sock:", host: "27.133.152.201"
31
+ 2018/03/30 16:59:33 [error] 9404#0: *34 FastCGI sent in stderr: "PHP message: PHP Warning: require(/var/www/html/scraping/public/../vendor/autoload.php): failed to open stream: No such file or directory in /var/www/html/scraping/public/index.php on line 24
32
+ PHP message: PHP Fatal error: require(): Failed opening required '/var/www/html/scraping/public/../vendor/autoload.php' (include_path='.:/usr/share/pear:/usr/share/php') in /var/www/html/scraping/public/index.php on line 24" while reading response header from upstream, client: 114.179.83.214, server: , request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/php-fpm.sock:", host: "27.133.152.201"
33
+ ```
34
+
27
35
  ###該当のソースコード
28
36
 
29
37
  【etc/nginx/conf.d/default.conf】

1

画面に表示されているエラーメッセージの追加

2018/03/30 08:02

投稿

T.FUJII
T.FUJII

スコア21

title CHANGED
File without changes
body CHANGED
@@ -2,6 +2,11 @@
2
2
 
3
3
  500エラーを何とかしたいです。
4
4
 
5
+ [画面上]
6
+ このページは動作していません
7
+ 27.133.152.201 では現在このリクエストを処理できません。
8
+ HTTP ERROR 500
9
+
5
10
  **全体の流れ**
6
11
 
7
12
  itの新人です。お手柔らかにお願いします(T_T)