質問編集履歴

4

回答者の解決策を試した結果を追加

2018/09/22 03:26

投稿

HearthXml
HearthXml

スコア51

test CHANGED
File without changes
test CHANGED
@@ -421,3 +421,25 @@
421
421
  "error_log" 502L, 97475C
422
422
 
423
423
  ```
424
+
425
+
426
+
427
+ sudo chown -R apache:apache /var/www/html/testlaravelを試した場合のエラーログ
428
+
429
+ ```sh
430
+
431
+ [Sat Sep 22 12:22:04.132316 2018] [php7:warn] [pid 1360] [client 182.171.170.190:63302] PHP Warning: Unknown: failed to open stream: Permission denied in Unknown on line 0
432
+
433
+ [Sat Sep 22 12:22:04.132370 2018] [php7:error] [pid 1360] [client 182.171.170.190:63302] PHP Fatal error: Unknown: Failed opening required '/var/www/html/testlaravel/public/index.php' (include_path='.:/usr/share/pear:/usr/share/php') in Unknown on line 0
434
+
435
+ [Sat Sep 22 12:22:04.347741 2018] [php7:warn] [pid 1361] [client 182.171.170.190:63303] PHP Warning: Unknown: failed to open stream: Permission denied in Unknown on line 0
436
+
437
+ [Sat Sep 22 12:22:04.347810 2018] [php7:error] [pid 1361] [client 182.171.170.190:63303] PHP Fatal error: Unknown: Failed opening required '/var/www/html/testlaravel/public/index.php' (include_path='.:/usr/share/pear:/usr/share/php') in Unknown on line 0
438
+
439
+ [Sat Sep 22 12:22:04.481511 2018] [php7:warn] [pid 1362] [client 182.171.170.190:63304] PHP Warning: Unknown: failed to open stream: Permission denied in Unknown on line 0
440
+
441
+ [Sat Sep 22 12:22:04.481572 2018] [php7:error] [pid 1362] [client 182.171.170.190:63304] PHP Fatal error: Unknown: Failed opening required '/var/www/html/testlaravel/public/index.php' (include_path='.:/usr/share/pear:/usr/share/php') in Unknown on line 0
442
+
443
+
444
+
445
+ ```

3

資料修正

2018/09/22 03:26

投稿

HearthXml
HearthXml

スコア51

test CHANGED
File without changes
test CHANGED
@@ -332,6 +332,8 @@
332
332
 
333
333
  /var/www/html/testlaravel/public/.htaccess
334
334
 
335
+ (今回.htaccessは別名に変えて無効化していました。)
336
+
335
337
 
336
338
 
337
339
  ```sh
@@ -386,42 +388,36 @@
386
388
 
387
389
  ```sh
388
390
 
389
- [Fri Sep 21 21:19:38.071202 2018] [autoindex:error] [pid 7102] [client 196.52.43.84:58378] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php,index.php) found, and server-generated directory index forbidden by Options directive
390
-
391
- [Fri Sep 21 21:25:27.282629 2018] [autoindex:error] [pid 7021] [client 201.13.92.142:56390] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php,index.php) found, and server-generated directory index forbidden by Options directive
392
-
393
- [Fri Sep 21 21:31:32.218697 2018] [autoindex:error] [pid 7022] [client 91.231.40.197:40209] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php,index.php) found, and server-generated directory index forbidden by Options directive
394
-
395
- [Fri Sep 21 22:13:22.550930 2018] [autoindex:error] [pid 7024] [client 143.137.150.6:59975] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php,index.php) found, and server-generated directory index forbidden by Options directive
396
-
397
- [Fri Sep 21 22:44:46.823945 2018] [autoindex:error] [pid 7020] [client 182.171.170.190:52283] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php,index.php) found, and server-generated directory index forbidden by Options directive
398
-
399
- [Fri Sep 21 22:45:02.970961 2018] [php7:warn] [pid 7154] [client 182.171.170.190:52309] PHP Warning: require_once(/var/www/html/testlaravel/public/index.php): failed to open stream: Permission denied in /var/www/html/testlaravel/server.php on line 21, referer: http://ドメイン名/testlaravel/
400
-
401
- [Fri Sep 21 22:45:02.971027 2018] [php7:error] [pid 7154] [client 182.171.170.190:52309] PHP Fatal error: require_once(): Failed opening required '/var/www/html/testlaravel/public/index.php' (include_path='.:/usr/share/pear:/usr/share/php') in /var/www/html/testlaravel/server.php on line 21, referer: http://ドメイン名/testlaravel/
402
-
403
- [Fri Sep 21 22:45:10.273226 2018] [php7:error] [pid 7155] [client 182.171.170.190:52327] PHP Fatal error: Uncaught Error: Class 'Illuminate\Foundation\Application' not found in /var/www/html/testlaravel/bootstrap/app.php:14\nStack trace:\n#0 {main}\n thrown in /var/www/html/testlaravel/bootstrap/app.php on line 14, referer: http://ドメイン名/testlaravel/bootstrap/
404
-
405
- [Fri Sep 21 23:21:40.714683 2018] [core:crit] [pid 7022] (13)Permission denied: [client 182.171.170.190:62714] AH00529: /var/www/html/testlaravel/public/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable and that '/var/www/html/testlaravel/public/' is executable
406
-
407
- [Fri Sep 21 23:21:51.812937 2018] [core:crit] [pid 7021] (13)Permission denied: [client 182.171.170.190:62715] AH00529: /var/www/html/testlaravel/public/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable and that '/var/www/html/testlaravel/public/' is executable
408
-
409
- [Fri Sep 21 23:22:00.999988 2018] [core:crit] [pid 7154] (13)Permission denied: [client 182.171.170.190:62716] AH00529: /var/www/html/testlaravel/public/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable and that '/var/www/html/testlaravel/public/' is executable
410
-
411
- [Fri Sep 21 23:22:28.391049 2018] [core:crit] [pid 7024] (13)Permission denied: [client 182.171.170.190:62717] AH00529: /var/www/html/testlaravel/public/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable and that '/var/www/html/testlaravel/public/' is executable
412
-
413
- [Fri Sep 21 23:23:45.622874 2018] [core:crit] [pid 7023] (13)Permission denied: [client 182.171.170.190:62718] AH00529: /var/www/html/testlaravel/public/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable and that '/var/www/html/testlaravel/public/' is executable
414
-
415
- [Fri Sep 21 23:23:46.369612 2018] [core:crit] [pid 7023] (13)Permission denied: [client 182.171.170.190:62718] AH00529: /var/www/html/testlaravel/public/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable and that '/var/www/html/testlaravel/public/' is executable
416
-
417
- [Fri Sep 21 23:24:07.334536 2018] [core:crit] [pid 7153] (13)Permission denied: [client 182.171.170.190:62719] AH00529: /var/www/html/testlaravel/public/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable and that '/var/www/html/testlaravel/public/' is executable
418
-
419
- [Fri Sep 21 23:24:10.422601 2018] [core:crit] [pid 7153] (13)Permission denied: [client 182.171.170.190:62719] AH00529: /var/www/html/testlaravel/public/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable and that '/var/www/html/testlaravel/public/' is executable
420
-
421
- [Fri Sep 21 23:25:56.050417 2018] [php7:warn] [pid 7155] [client 182.171.170.190:62721] PHP Warning: Unknown: failed to open stream: Permission denied in Unknown on line 0, referer: http://ドメイン名/testlaravel/
422
-
423
- [Fri Sep 21 23:25:56.050504 2018] [php7:error] [pid 7155] [client 182.171.170.190:62721] PHP Fatal error: Unknown: Failed opening required '/var/www/html/testlaravel/public/index.php' (include_path='.:/usr/share/pear:/usr/share/php') in Unknown on line 0, referer: http://ドメイン名/testlaravel/
424
-
425
- "error_log" 446L, 85463C
426
-
427
- ```
391
+ [Fri Sep 21 23:25:56.050417 2018] [php7:warn] [pid 7155] [client 182.171.170.190:62721] PHP Warning: Unknown: failed to open stream: Permission denied in Unknown on line 0, referer: http://ドメイン名.com/testlaravel/
392
+
393
+ [Fri Sep 21 23:25:56.050504 2018] [php7:error] [pid 7155] [client 182.171.170.190:62721] PHP Fatal error: Unknown: Failed opening required '/var/www/html/testlaravel/public/index.php' (include_path='.:/usr/share/pear:/usr/share/php') in Unknown on line 0, referer: http://ドメイン名.com/testlaravel/
394
+
395
+ [Fri Sep 21 23:54:51.166902 2018] [php7:warn] [pid 7102] [client 182.171.170.190:62760] PHP Warning: Unknown: failed to open stream: Permission denied in Unknown on line 0
396
+
397
+ [Fri Sep 21 23:54:51.167001 2018] [php7:error] [pid 7102] [client 182.171.170.190:62760] PHP Fatal error: Unknown: Failed opening required '/var/www/html/testlaravel/public/index.php' (include_path='.:/usr/share/pear:/usr/share/php') in Unknown on line 0
398
+
399
+ [Fri Sep 21 23:54:51.665052 2018] [php7:warn] [pid 7020] [client 182.171.170.190:62761] PHP Warning: Unknown: failed to open stream: Permission denied in Unknown on line 0
400
+
401
+ [Fri Sep 21 23:54:51.665149 2018] [php7:error] [pid 7020] [client 182.171.170.190:62761] PHP Fatal error: Unknown: Failed opening required '/var/www/html/testlaravel/public/index.php' (include_path='.:/usr/share/pear:/usr/share/php') in Unknown on line 0
402
+
403
+ [Fri Sep 21 23:54:52.179743 2018] [php7:warn] [pid 7022] [client 182.171.170.190:62762] PHP Warning: Unknown: failed to open stream: Permission denied in Unknown on line 0
404
+
405
+ [Fri Sep 21 23:54:52.179834 2018] [php7:error] [pid 7022] [client 182.171.170.190:62762] PHP Fatal error: Unknown: Failed opening required '/var/www/html/testlaravel/public/index.php' (include_path='.:/usr/share/pear:/usr/share/php') in Unknown on line 0
406
+
407
+ [Fri Sep 21 23:54:52.337944 2018] [php7:warn] [pid 7021] [client 182.171.170.190:62763] PHP Warning: Unknown: failed to open stream: Permission denied in Unknown on line 0
408
+
409
+ [Fri Sep 21 23:54:52.338010 2018] [php7:error] [pid 7021] [client 182.171.170.190:62763] PHP Fatal error: Unknown: Failed opening required '/var/www/html/testlaravel/public/index.php' (include_path='.:/usr/share/pear:/usr/share/php') in Unknown on line 0
410
+
411
+ [Fri Sep 21 23:54:52.606840 2018] [php7:warn] [pid 7154] [client 182.171.170.190:62764] PHP Warning: Unknown: failed to open stream: Permission denied in Unknown on line 0
412
+
413
+ [Fri Sep 21 23:54:52.606919 2018] [php7:error] [pid 7154] [client 182.171.170.190:62764] PHP Fatal error: Unknown: Failed opening required '/var/www/html/testlaravel/public/index.php' (include_path='.:/usr/share/pear:/usr/share/php') in Unknown on line 0
414
+
415
+ [Fri Sep 21 23:54:52.751345 2018] [php7:warn] [pid 7024] [client 182.171.170.190:62765] PHP Warning: Unknown: failed to open stream: Permission denied in Unknown on line 0
416
+
417
+ [Fri Sep 21 23:54:52.751439 2018] [php7:error] [pid 7024] [client 182.171.170.190:62765] PHP Fatal error: Unknown: Failed opening required '/var/www/html/testlaravel/public/index.php' (include_path='.:/usr/share/pear:/usr/share/php') in Unknown on line 0
418
+
419
+ [Fri Sep 21 23:54:52.891017 2018] [php7:warn] [pid 7023] [client 182.171.170.190:62766] PHP Warning: Unknown: failed to open stream: Permission denied in Unknown on line 0
420
+
421
+ "error_log" 502L, 97475C
422
+
423
+ ```

2

資料追加

2018/09/21 15:03

投稿

HearthXml
HearthXml

スコア51

test CHANGED
File without changes
test CHANGED
@@ -44,6 +44,10 @@
44
44
 
45
45
 
46
46
 
47
+ /etc/httpd/conf/httpd.conf
48
+
49
+
50
+
47
51
  ```sh
48
52
 
49
53
 
@@ -375,3 +379,49 @@
375
379
  </IfModule>
376
380
 
377
381
  ```
382
+
383
+
384
+
385
+ /var/log/httpd/error_log
386
+
387
+ ```sh
388
+
389
+ [Fri Sep 21 21:19:38.071202 2018] [autoindex:error] [pid 7102] [client 196.52.43.84:58378] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php,index.php) found, and server-generated directory index forbidden by Options directive
390
+
391
+ [Fri Sep 21 21:25:27.282629 2018] [autoindex:error] [pid 7021] [client 201.13.92.142:56390] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php,index.php) found, and server-generated directory index forbidden by Options directive
392
+
393
+ [Fri Sep 21 21:31:32.218697 2018] [autoindex:error] [pid 7022] [client 91.231.40.197:40209] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php,index.php) found, and server-generated directory index forbidden by Options directive
394
+
395
+ [Fri Sep 21 22:13:22.550930 2018] [autoindex:error] [pid 7024] [client 143.137.150.6:59975] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php,index.php) found, and server-generated directory index forbidden by Options directive
396
+
397
+ [Fri Sep 21 22:44:46.823945 2018] [autoindex:error] [pid 7020] [client 182.171.170.190:52283] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php,index.php) found, and server-generated directory index forbidden by Options directive
398
+
399
+ [Fri Sep 21 22:45:02.970961 2018] [php7:warn] [pid 7154] [client 182.171.170.190:52309] PHP Warning: require_once(/var/www/html/testlaravel/public/index.php): failed to open stream: Permission denied in /var/www/html/testlaravel/server.php on line 21, referer: http://ドメイン名/testlaravel/
400
+
401
+ [Fri Sep 21 22:45:02.971027 2018] [php7:error] [pid 7154] [client 182.171.170.190:52309] PHP Fatal error: require_once(): Failed opening required '/var/www/html/testlaravel/public/index.php' (include_path='.:/usr/share/pear:/usr/share/php') in /var/www/html/testlaravel/server.php on line 21, referer: http://ドメイン名/testlaravel/
402
+
403
+ [Fri Sep 21 22:45:10.273226 2018] [php7:error] [pid 7155] [client 182.171.170.190:52327] PHP Fatal error: Uncaught Error: Class 'Illuminate\Foundation\Application' not found in /var/www/html/testlaravel/bootstrap/app.php:14\nStack trace:\n#0 {main}\n thrown in /var/www/html/testlaravel/bootstrap/app.php on line 14, referer: http://ドメイン名/testlaravel/bootstrap/
404
+
405
+ [Fri Sep 21 23:21:40.714683 2018] [core:crit] [pid 7022] (13)Permission denied: [client 182.171.170.190:62714] AH00529: /var/www/html/testlaravel/public/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable and that '/var/www/html/testlaravel/public/' is executable
406
+
407
+ [Fri Sep 21 23:21:51.812937 2018] [core:crit] [pid 7021] (13)Permission denied: [client 182.171.170.190:62715] AH00529: /var/www/html/testlaravel/public/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable and that '/var/www/html/testlaravel/public/' is executable
408
+
409
+ [Fri Sep 21 23:22:00.999988 2018] [core:crit] [pid 7154] (13)Permission denied: [client 182.171.170.190:62716] AH00529: /var/www/html/testlaravel/public/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable and that '/var/www/html/testlaravel/public/' is executable
410
+
411
+ [Fri Sep 21 23:22:28.391049 2018] [core:crit] [pid 7024] (13)Permission denied: [client 182.171.170.190:62717] AH00529: /var/www/html/testlaravel/public/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable and that '/var/www/html/testlaravel/public/' is executable
412
+
413
+ [Fri Sep 21 23:23:45.622874 2018] [core:crit] [pid 7023] (13)Permission denied: [client 182.171.170.190:62718] AH00529: /var/www/html/testlaravel/public/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable and that '/var/www/html/testlaravel/public/' is executable
414
+
415
+ [Fri Sep 21 23:23:46.369612 2018] [core:crit] [pid 7023] (13)Permission denied: [client 182.171.170.190:62718] AH00529: /var/www/html/testlaravel/public/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable and that '/var/www/html/testlaravel/public/' is executable
416
+
417
+ [Fri Sep 21 23:24:07.334536 2018] [core:crit] [pid 7153] (13)Permission denied: [client 182.171.170.190:62719] AH00529: /var/www/html/testlaravel/public/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable and that '/var/www/html/testlaravel/public/' is executable
418
+
419
+ [Fri Sep 21 23:24:10.422601 2018] [core:crit] [pid 7153] (13)Permission denied: [client 182.171.170.190:62719] AH00529: /var/www/html/testlaravel/public/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable and that '/var/www/html/testlaravel/public/' is executable
420
+
421
+ [Fri Sep 21 23:25:56.050417 2018] [php7:warn] [pid 7155] [client 182.171.170.190:62721] PHP Warning: Unknown: failed to open stream: Permission denied in Unknown on line 0, referer: http://ドメイン名/testlaravel/
422
+
423
+ [Fri Sep 21 23:25:56.050504 2018] [php7:error] [pid 7155] [client 182.171.170.190:62721] PHP Fatal error: Unknown: Failed opening required '/var/www/html/testlaravel/public/index.php' (include_path='.:/usr/share/pear:/usr/share/php') in Unknown on line 0, referer: http://ドメイン名/testlaravel/
424
+
425
+ "error_log" 446L, 85463C
426
+
427
+ ```

1

タイトル修正

2018/09/21 14:35

投稿

HearthXml
HearthXml

スコア51

test CHANGED
@@ -1 +1 @@
1
- apacheで500エラーが解決できな
1
+ apacheで500エラーが解決できな
test CHANGED
File without changes