質問編集履歴
2
httpd.conf の設定の記載を追加致しました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -25,3 +25,96 @@
|
|
25
25
|
```ここに言語を入力
|
26
26
|
sudo amazon-linux-extras enable php8.0
|
27
27
|
```
|
28
|
+
|
29
|
+
■httpd.conf は下記のようになっています。
|
30
|
+
```ServerRoot "/etc/httpd"
|
31
|
+
|
32
|
+
Listen 80
|
33
|
+
|
34
|
+
Include conf.modules.d/*.conf
|
35
|
+
|
36
|
+
User apache
|
37
|
+
Group apache
|
38
|
+
|
39
|
+
ServerAdmin root@localhost
|
40
|
+
|
41
|
+
<Directory />
|
42
|
+
AllowOverride none
|
43
|
+
Require all denied
|
44
|
+
</Directory>
|
45
|
+
|
46
|
+
DocumentRoot "/var/www/html"
|
47
|
+
|
48
|
+
<VirtualHost *:80>
|
49
|
+
DocumentRoot "/var/www/html/test"
|
50
|
+
</VirtualHost>
|
51
|
+
|
52
|
+
<Directory "/var/www">
|
53
|
+
AllowOverride None
|
54
|
+
Require all granted
|
55
|
+
</Directory>
|
56
|
+
|
57
|
+
<Directory "/var/www/html">
|
58
|
+
Options Indexes FollowSymLinks
|
59
|
+
|
60
|
+
AllowOverride None
|
61
|
+
|
62
|
+
Require all granted
|
63
|
+
</Directory>
|
64
|
+
|
65
|
+
<IfModule dir_module>
|
66
|
+
DirectoryIndex index.html
|
67
|
+
</IfModule>
|
68
|
+
|
69
|
+
<Files ".ht*">
|
70
|
+
Require all denied
|
71
|
+
</Files>
|
72
|
+
|
73
|
+
ErrorLog "logs/error_log"
|
74
|
+
|
75
|
+
LogLevel warn
|
76
|
+
|
77
|
+
<IfModule log_config_module>
|
78
|
+
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
|
79
|
+
LogFormat "%h %l %u %t \"%r\" %>s %b" common
|
80
|
+
|
81
|
+
<IfModule logio_module>
|
82
|
+
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
|
83
|
+
</IfModule>
|
84
|
+
|
85
|
+
CustomLog "logs/access_log" combined
|
86
|
+
</IfModule>
|
87
|
+
|
88
|
+
<IfModule alias_module>
|
89
|
+
|
90
|
+
ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"
|
91
|
+
|
92
|
+
</IfModule>
|
93
|
+
|
94
|
+
<Directory "/var/www/cgi-bin">
|
95
|
+
AllowOverride None
|
96
|
+
Options None
|
97
|
+
Require all granted
|
98
|
+
</Directory>
|
99
|
+
|
100
|
+
<IfModule mime_module>
|
101
|
+
TypesConfig /etc/mime.types
|
102
|
+
|
103
|
+
AddType application/x-compress .Z
|
104
|
+
AddType application/x-gzip .gz .tgz
|
105
|
+
AddType application/x-httpd-php .php
|
106
|
+
AddType application/x-httpd-php-source .phps
|
107
|
+
AddType text/html .shtml
|
108
|
+
AddOutputFilter INCLUDES .shtml
|
109
|
+
</IfModule>
|
110
|
+
|
111
|
+
AddDefaultCharset UTF-8
|
112
|
+
|
113
|
+
<IfModule mime_magic_module>
|
114
|
+
MIMEMagicFile conf/magic
|
115
|
+
</IfModule>
|
116
|
+
|
117
|
+
EnableSendfile off
|
118
|
+
|
119
|
+
IncludeOptional conf.d/*.conf
|
120
|
+
```
|
1
件名変更
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
amazon linux2 で
|
1
|
+
vagrantで入れたamazon linux2 でphp8.1がapacheで動かない
|
test
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
amazon linux2
|
1
|
+
vagrantで入れたamazon linux2でphp8.1をapacheで動作させたいです。
|
2
2
|
※httpdのバージョンは2.4になります。
|
3
3
|
|
4
4
|
vagrantでamazon linux2の環境を構築して下記コマンドでphp8.1を入れた所、
|