質問編集履歴
2
題名の変更
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
ログインができない。
|
test
CHANGED
File without changes
|
1
間違えたので、修正です。
test
CHANGED
File without changes
|
test
CHANGED
@@ -1,103 +1,4 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
'class="fa fa-link"></i></a>解決したいこと</h3>\n'
|
6
|
-
'\n'
|
7
|
-
'<p>AWSの勉強のため、AWSで仮想サーバを構築し、そこに簡単な<br>\n'
|
8
|
-
'WEBサイトを作っています。その工程の中で、phpMyAdminを<br>\n'
|
9
|
-
'インストールし、ブラウザ上でログインしようとしたら<br>\n'
|
10
|
-
'エラーがでました。<br>\n'
|
11
|
-
'どうか解決方法を教えてください。</p>\n'
|
12
|
-
'\n'
|
13
|
-
'<p>エラーが起きるまでの流れとしては、<br>\n'
|
14
|
-
'①AWS EC2でLinuxサーバを構築<br>\n'
|
15
|
-
'②Apacheをインストール<br>\n'
|
16
|
-
'③PHPをインストール<br>\n'
|
17
|
-
'④MySQLをインストール<br>\n'
|
18
|
-
'⑤phpMyAdminをインストール<br>\n'
|
19
|
-
'⑥ブラウザでphpMyAdminにログイン⇒「MySQL サーバにログインできません」</p>\n'
|
20
|
-
'\n'
|
21
|
-
'<p>【環境】<br>\n'
|
22
|
-
'AWS EC2 Amazon Linux 2 AMI<br>\n'
|
23
|
-
'Apache/2.4.51<br>\n'
|
24
|
-
'PHP 5.4.16<br>\n'
|
25
|
-
'mysql Ver 8.0.27<br>\n'
|
26
|
-
'phpMyAdmin</p>\n'
|
27
|
-
'\n'
|
28
|
-
'<h3>\n'
|
29
|
-
'<span id="発生しているエラー" class="fragment"></span><a '
|
30
|
-
'href="#%E7%99%BA%E7%94%9F%E3%81%97%E3%81%A6%E3%81%84%E3%82%8B%E3%82%A8%E3%83%A9%E3%83%BC"><i '
|
31
|
-
'class="fa fa-link"></i></a>発生しているエラー</h3>\n'
|
32
|
-
'\n'
|
33
|
-
'<p><a '
|
34
|
-
'href="https://camo.qiitausercontent.com/16475f320049151d58c44aaf3a895cc0deb8012c/68747470733a2f2f71696974612d696d6167652d73746f72652e73332e61702d6e6f727468656173742d312e616d617a6f6e6177732e636f6d2f302f3234383139312f61333061313064632d353562382d663566372d363664312d6366386534613732646264312e706e67" '
|
35
|
-
'target="_blank" rel="nofollow noopener"><img '
|
36
|
-
'src="https://camo.qiitausercontent.com/16475f320049151d58c44aaf3a895cc0deb8012c/68747470733a2f2f71696974612d696d6167652d73746f72652e73332e61702d6e6f727468656173742d312e616d617a6f6e6177732e636f6d2f302f3234383139312f61333061313064632d353562382d663566372d363664312d6366386534613732646264312e706e67" '
|
37
|
-
'alt="error_phpMyAdmin.png" '
|
38
|
-
'data-canonical-src="https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/248191/a30a10dc-55b8-f5f7-66d1-cf8e4a72dbd1.png" '
|
39
|
-
'loading="lazy"></a></p>\n'
|
40
|
-
'\n'
|
41
|
-
'<h3>\n'
|
42
|
-
'<span id="phpmyadminインストール時の具体的な手順" class="fragment"></span><a '
|
43
|
-
'href="#phpmyadmin%E3%82%A4%E3%83%B3%E3%82%B9%E3%83%88%E3%83%BC%E3%83%AB%E6%99%82%E3%81%AE%E5%85%B7%E4%BD%93%E7%9A%84%E3%81%AA%E6%89%8B%E9%A0%86"><i '
|
44
|
-
'class="fa fa-link"></i></a>phpMyAdminインストール時の具体的な手順</h3>\n'
|
45
|
-
'\n'
|
46
|
-
'<p>①AWSの仮想サーバにbushでアクセス<br>\n'
|
47
|
-
'②yumコマンドの設定変更</p>\n'
|
48
|
-
'\n'
|
49
|
-
'<div class="code-frame" data-lang="text"><div class="code-copy"><div '
|
50
|
-
'class="code-copy__message" style="display: none;">Copied!</div><button '
|
51
|
-
'class="code-copy__button" style="display: none;"><span class="fa fa-fw '
|
52
|
-
'fa-clipboard"></span></button></div><div '
|
53
|
-
'class="highlight"><pre><code>yum-config-manager --enable epel\n'
|
54
|
-
'</code></pre></div></div>\n'
|
55
|
-
'\n'
|
56
|
-
'<p>③phpMyAdminインストール</p>\n'
|
57
|
-
'\n'
|
58
|
-
'<div class="code-frame" data-lang="text"><div class="code-copy"><div '
|
59
|
-
'class="code-copy__message" style="display: none;">Copied!</div><button '
|
60
|
-
'class="code-copy__button" style="display: none;"><span class="fa fa-fw '
|
61
|
-
'fa-clipboard"></span></button></div><div class="highlight"><pre><code>yum '
|
62
|
-
'install -y phpmyadmin\n'
|
63
|
-
'</code></pre></div></div>\n'
|
64
|
-
'\n'
|
65
|
-
'<p>④アクセス制限の設定変更<br>\n'
|
66
|
-
'<code>/etc/httpd/conf.d/phpMyAdmin.conf</code>の中の「127.0.0.1」をグローバルIPに変更</p>\n'
|
67
|
-
'\n'
|
68
|
-
'<p>⑤Webサーバ再起動</p>\n'
|
69
|
-
'\n'
|
70
|
-
'<div class="code-frame" data-lang="text"><div class="code-copy"><div '
|
71
|
-
'class="code-copy__message" style="display: none;">Copied!</div><button '
|
72
|
-
'class="code-copy__button" style="display: none;"><span class="fa fa-fw '
|
73
|
-
'fa-clipboard"></span></button></div><div '
|
74
|
-
'class="highlight"><pre><code>service httpd restart\n'
|
75
|
-
'</code></pre></div></div>\n'
|
76
|
-
'\n'
|
77
|
-
'<p>⑥グローバルIP/phpmyadminでブラウザにアクセス</p>\n'
|
78
|
-
'\n'
|
79
|
-
'<p>➆ログイン「ID:root」時にエラー<br>\n'
|
80
|
-
'※ちなみにMySQLにはログインできます</p>\n'
|
81
|
-
'\n'
|
82
|
-
'<h3>\n'
|
83
|
-
'<span id="試したこと" class="fragment"></span><a '
|
84
|
-
'href="#%E8%A9%A6%E3%81%97%E3%81%9F%E3%81%93%E3%81%A8"><i class="fa '
|
85
|
-
'fa-link"></i></a>試したこと</h3>\n'
|
86
|
-
'\n'
|
87
|
-
'<p>①phpの設定ファイル php.ini の変更<br>\n'
|
88
|
-
'<a href="https://qiita.com/cathei/items/a9854befd25f0562a0b7" '
|
89
|
-
'class="autolink">https://qiita.com/cathei/items/a9854befd25f0562a0b7</a></p>\n'
|
90
|
-
'\n'
|
91
|
-
'<p>②config.inc.phpの変更(IDとPWの設定)</p>\n'
|
92
|
-
'\n'
|
93
|
-
'<div class="code-frame" data-lang="text"><div class="code-copy"><div '
|
94
|
-
'class="code-copy__message" style="display: none;">Copied!</div><button '
|
95
|
-
'class="code-copy__button" style="display: none;"><span class="fa fa-fw '
|
96
|
-
'fa-clipboard"></span></button></div><div '
|
97
|
-
'class="highlight"><pre><code>$cfg[\'Servers\'][$i][\'user\'] = \'root\';\n'
|
98
|
-
"$cfg['Servers'][$i]['password'] = 'abcd1234';\n"
|
99
|
-
'</code></pre></div></div>\n'
|
100
|
-
'\n'
|
101
|
-
'<p>他にもphpMyAdminをアンインストールして再度<br>\n'
|
102
|
-
'インストールし、「解決したいこと」と同じ手順を行いましたが、<br>\n'
|
103
|
-
'ダメでした・・・</p>\n'
|
1
|
+
あああああああ
|
2
|
+
ああああああああああああああああああああああああああああああああああああああああああああああああああ
|
3
|
+
dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd
|
4
|
+
|