質問編集履歴

1

コメントで指摘された箇所を追記・修正しました

2022/05/25 08:21

投稿

teratailuser123
teratailuser123

スコア16

test CHANGED
File without changes
test CHANGED
@@ -15,7 +15,7 @@
15
15
  ```ここに言語を入力
16
16
  $sudo amazon-linux-extras install -y epel
17
17
  $sudo yum install -y https://rpms.remirepo.net/enterprise/remi-release-7.rpm
18
- $sudo yum install -y php56 php71-php-mbstring
18
+ $sudo yum install -y php71 php71-php-mbstring
19
19
  $sudo . /opt/remi/php71/enable
20
20
  sudo: .: コマンドが見つかりません
21
21
  $sudo ln -s /usr/bin/php71 /usr/bin/php
@@ -37,6 +37,47 @@
37
37
  https://qiita.com/minato-naka/items/03f9dbd09eb3919a501f
38
38
  こちらの設定通り行ったつもりです。
39
39
 
40
+ ```httpd.conf
41
+ DocumentRoot "/var/www/html/test"
42
+
43
+ #
44
+ # Relax access to content within /var/www.
45
+ #
46
+ <Directory "/var/www">
47
+ AllowOverride None
48
+ # Allow open access:
49
+ Require all granted
50
+ </Directory>
51
+
52
+ # Further relax access to the default document root:
53
+ <Directory "/var/www/html/test">
54
+ #
55
+ # Possible values for the Options directive are "None", "All",
56
+ # or any combination of:
57
+ # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
58
+ #
59
+ # Note that "MultiViews" must be named *explicitly* --- "Options All"
60
+ # doesn't give it to you.
61
+ #
62
+ # The Options directive is both complicated and important. Please see
63
+ # http://httpd.apache.org/docs/2.4/mod/core.html#options
64
+ # for more information.
65
+ #
66
+ Options Indexes FollowSymLinks
67
+
68
+ #
69
+ # AllowOverride controls what directives may be placed in .htaccess files.
70
+ # It can be "All", "None", or any combination of the keywords:
71
+ # Options FileInfo AuthConfig Limit
72
+ #
73
+ AllowOverride All
74
+
75
+ #
76
+ # Controls who can get stuff from this server.
77
+ #
78
+ Require all granted
79
+ ```
80
+
40
81
 
41
82
  不足情報などありましたらご指摘ください。
42
83
  ご教授いただけますと幸いです…