質問編集履歴

2

WEBサーバのバージョンを追記

2016/12/01 10:12

投稿

hidepon
hidepon

スコア206

test CHANGED
File without changes
test CHANGED
@@ -149,3 +149,17 @@
149
149
  #</IfModule>
150
150
 
151
151
  ```
152
+
153
+ 追記
154
+
155
+
156
+
157
+ httpd -v の実行結果
158
+
159
+ ```
160
+
161
+ Server version: Apache/2.4.6 (CentOS)
162
+
163
+ Server built: Jul 18 2016 15:30:14
164
+
165
+ ```

1

phpMyAdmin\.confの内容を追記

2016/12/01 10:12

投稿

hidepon
hidepon

スコア206

test CHANGED
File without changes
test CHANGED
@@ -7,3 +7,145 @@
7
7
  パーミッションは「755」です。理由が分からず困っています。
8
8
 
9
9
  宜しくお願いいたします
10
+
11
+
12
+
13
+
14
+
15
+ /etc/httpd/conf.d/phpMyAdmin.confの内容です
16
+
17
+ ```
18
+
19
+ Alias /phpMyAdmin /usr/share/phpMyAdmin
20
+
21
+ Alias /phpmyadmin /usr/share/phpMyAdmin
22
+
23
+
24
+
25
+ <Directory /usr/share/phpMyAdmin/>
26
+
27
+ AddDefaultCharset UTF-8
28
+
29
+
30
+
31
+ <IfModule mod_authz_core.c>
32
+
33
+ # Apache 2.4
34
+
35
+ <RequireAny>
36
+
37
+ Require ip 127.0.0.1
38
+
39
+ Require ip ::1
40
+
41
+ </RequireAny>
42
+
43
+ </IfModule>
44
+
45
+ <IfModule !mod_authz_core.c>
46
+
47
+ # Apache 2.2
48
+
49
+ Order Deny,Allow
50
+
51
+ Deny from All
52
+
53
+ Allow from All
54
+
55
+ </IfModule>
56
+
57
+ </Directory>
58
+
59
+ <Directory /usr/share/phpMyAdmin/setup/>
60
+
61
+ <IfModule mod_authz_core.c>
62
+
63
+ # Apache 2.4
64
+
65
+ <RequireAny>
66
+
67
+ Require ip 127.0.0.1
68
+
69
+ Require ip ::1
70
+
71
+ </RequireAny>
72
+
73
+ </IfModule>
74
+
75
+ <IfModule !mod_authz_core.c>
76
+
77
+ # Apache 2.2
78
+
79
+ Order Deny,Allow
80
+
81
+ Deny from All
82
+
83
+ Allow from 127.0.0.1
84
+
85
+ Allow from ::1
86
+
87
+ </IfModule>
88
+
89
+ </Directory>
90
+
91
+
92
+
93
+ # These directories do not require access over HTTP - taken from the original
94
+
95
+ # phpMyAdmin upstream tarball
96
+
97
+ #
98
+
99
+ <Directory /usr/share/phpMyAdmin/libraries/>
100
+
101
+ Order Deny,Allow
102
+
103
+ Deny from All
104
+
105
+ Allow from None
106
+
107
+ </Directory>
108
+
109
+
110
+
111
+ <Directory /usr/share/phpMyAdmin/setup/lib/>
112
+
113
+ Order Deny,Allow
114
+
115
+ Deny from All
116
+
117
+ Allow from None
118
+
119
+ </Directory>
120
+
121
+
122
+
123
+ <Directory /usr/share/phpMyAdmin/setup/frames/>
124
+
125
+ Order Deny,Allow
126
+
127
+ Deny from All
128
+
129
+ Allow from None
130
+
131
+ </Directory>
132
+
133
+
134
+
135
+ # This configuration prevents mod_security at phpMyAdmin directories from
136
+
137
+ # filtering SQL etc. This may break your mod_security implementation.
138
+
139
+ #
140
+
141
+ #<IfModule mod_security.c>
142
+
143
+ # <Directory /usr/share/phpMyAdmin/>
144
+
145
+ # SecRuleInheritance Off
146
+
147
+ # </Directory>
148
+
149
+ #</IfModule>
150
+
151
+ ```