質問編集履歴
4
修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -40,7 +40,7 @@
|
|
40
40
|
|
41
41
|
Require ip ::1
|
42
42
|
|
43
|
-
Require ip 192.168.33.10/24
|
43
|
+
Require ip ::192.168.33.10/24
|
44
44
|
|
45
45
|
</RequireAny>
|
46
46
|
|
3
追記、修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
```
|
6
6
|
|
7
|
-
|
7
|
+
phpMyAdmin - Web based MySQL browser written in php
|
8
8
|
|
9
9
|
#
|
10
10
|
|
@@ -40,7 +40,7 @@
|
|
40
40
|
|
41
41
|
Require ip ::1
|
42
42
|
|
43
|
-
Require ip 192.
|
43
|
+
Require ip 192.168.33.10/24
|
44
44
|
|
45
45
|
</RequireAny>
|
46
46
|
|
@@ -52,107 +52,7 @@
|
|
52
52
|
|
53
53
|
Order Deny,Allow
|
54
54
|
|
55
|
-
-- INSERT --
|
56
|
-
|
57
|
-
# Apache 2.2
|
58
|
-
|
59
|
-
Order Deny,Allow
|
60
|
-
|
61
|
-
Deny from All
|
62
|
-
|
63
|
-
Allow from 127.0.0.1
|
64
|
-
|
65
|
-
Allow from ::1
|
66
|
-
|
67
|
-
Allow from::192.***.**.**/24
|
68
|
-
|
69
|
-
</IfModule>
|
70
|
-
|
71
|
-
</Directory>
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
<Directory /usr/share/phpMyAdmin/setup/>
|
76
|
-
|
77
|
-
<IfModule mod_authz_core.c>
|
78
|
-
|
79
|
-
# Apache 2.4
|
80
|
-
|
81
|
-
<RequireAny>
|
82
|
-
|
83
|
-
Require ip 127.0.0.1
|
84
|
-
|
85
|
-
Require ip ::1
|
86
|
-
|
87
|
-
Require ip::192.***.**.**/24
|
88
|
-
|
89
|
-
</RequireAny>
|
90
|
-
|
91
|
-
</IfModule>
|
92
|
-
|
93
|
-
<IfModule !mod_authz_core.c>
|
94
|
-
|
95
|
-
# Apache 2.2
|
96
|
-
|
97
|
-
Order Deny,Allow
|
98
|
-
|
99
|
-
Deny from All
|
100
|
-
|
101
|
-
Allow from 127.0.0.1
|
102
|
-
|
103
|
-
Allow from ::1
|
104
|
-
|
105
|
-
-- INSERT --
|
106
|
-
|
107
|
-
Allow from 127.0.0.1
|
108
|
-
|
109
|
-
Allow from ::1
|
110
|
-
|
111
|
-
Allow from::192.***.**.**/24
|
112
|
-
|
113
|
-
</IfModule>
|
114
|
-
|
115
|
-
</Directory>
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
# These directories do not require access over HTTP - taken from the original
|
120
|
-
|
121
|
-
# phpMyAdmin upstream tarball
|
122
|
-
|
123
|
-
#
|
124
|
-
|
125
|
-
<Directory /usr/share/phpMyAdmin/libraries/>
|
126
|
-
|
127
|
-
Order Deny,Allow
|
128
|
-
|
129
|
-
Deny from All
|
130
|
-
|
131
|
-
Allow from None
|
132
|
-
|
133
|
-
</Directory>
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
55
|
+
"/etc/httpd/conf.d/phpMyAdmin.conf" [readonly] 79L, 1921C
|
138
|
-
|
139
|
-
Order Deny,Allow
|
140
|
-
|
141
|
-
Deny from All
|
142
|
-
|
143
|
-
Allow from None
|
144
|
-
|
145
|
-
</Directory>
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
<Directory /usr/share/phpMyAdmin/setup/frames/>
|
150
|
-
|
151
|
-
Order Deny,Allow
|
152
|
-
|
153
|
-
Deny from All
|
154
|
-
|
155
|
-
-- INSERT --
|
156
56
|
|
157
57
|
```
|
158
58
|
|
@@ -185,3 +85,47 @@
|
|
185
85
|
と出てしまった為、設定ファイルを書き換えたのですが、それがまずかったのでしょうか...?
|
186
86
|
|
187
87
|
phpmyadminへのアクセスが出来ない状況な為、ご助言いただけましたら幸いです。
|
88
|
+
|
89
|
+
|
90
|
+
|
91
|
+
### 追記
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
以下は```apachectl configtest ```を実行した結果です
|
96
|
+
|
97
|
+
> AH00526: Syntax error on line 38 of /etc/httpd/conf.d/phpMyAdmin.conf:
|
98
|
+
|
99
|
+
Invalid command '\xe3\x80\x80\xe3\x80\x80\xe3\x80\x80', perhaps misspelled or defined by a module not included in the server configuration
|
100
|
+
|
101
|
+
|
102
|
+
|
103
|
+
以下は```systemctl status httpd.service```とした時の結果です。
|
104
|
+
|
105
|
+
> httpd.service - The Apache HTTP Server
|
106
|
+
|
107
|
+
Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
|
108
|
+
|
109
|
+
Active: failed (Result: exit-code) since 日 2019-10-13 09:17:28 UTC; 2h 22min ago
|
110
|
+
|
111
|
+
Docs: man:httpd(8)
|
112
|
+
|
113
|
+
man:apachectl(8)
|
114
|
+
|
115
|
+
Process: 23945 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=1/FAILURE)
|
116
|
+
|
117
|
+
Process: 23866 ExecReload=/usr/sbin/httpd $OPTIONS -k graceful (code=exited, status=0/SUCCESS)
|
118
|
+
|
119
|
+
Process: 23944 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
|
120
|
+
|
121
|
+
|
122
|
+
|
123
|
+
以下は```journalctl -xe```を実行した結果です
|
124
|
+
|
125
|
+
> Hint: You are currently not seeing messages from other users and the system.
|
126
|
+
|
127
|
+
Users in the 'systemd-journal' group can see all messages. Pass -q to
|
128
|
+
|
129
|
+
turn off this notice.
|
130
|
+
|
131
|
+
No journal files were opened due to insufficient permissions.
|
2
修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -174,7 +174,7 @@
|
|
174
174
|
|
175
175
|
との表示が出力されます。
|
176
176
|
|
177
|
-
phpmyadminの
|
177
|
+
phpmyadminへのアクセスの為、http://ipアドレス/phpmyadmin/へアクセスしますと、
|
178
178
|
|
179
179
|
> Forbidden
|
180
180
|
|
1
修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
CentOS7にて
|
1
|
+
CentOS7にてインストールしたphpmyadminへのアクセスに失敗してしまいます。
|
2
2
|
|
3
3
|
以下は、```vi /etc/httpd/conf.d/phpMyAdmin.conf```として、表示した設定ファイルの中身となります。
|
4
4
|
|