質問編集履歴

5

追記の追加。

2022/10/11 04:18

投稿

sasaki0628
sasaki0628

スコア106

test CHANGED
File without changes
test CHANGED
@@ -154,3 +154,6 @@
154
154
  ```
155
155
 
156
156
  ブラウザでhttp:xxx.xxx.xxx.xxx/pma/index.phpにアクセスしたところ、状況は変わらず真っ白で表示されています。
157
+
158
+ **追記2**
159
+ MariaDBに問題があるのかと思い、MariaDBをアンインストールした後にMySQLをインストールしましたが、状況は変わりませんでした。

4

質問後にした作業を追記

2022/10/11 02:32

投稿

sasaki0628
sasaki0628

スコア106

test CHANGED
File without changes
test CHANGED
@@ -109,3 +109,48 @@
109
109
  </IfModule>
110
110
  </Directory>
111
111
  ```
112
+
113
+ **追記**
114
+ phpとphpMyAdminをアンインストールし、以下のコマンドで再度インストールしました。
115
+
116
+ ```ここに言語を入力
117
+ # rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
118
+ # yum install --enablerepo=remi,remi-php74 php php-devel php-mbstring php-mysqlnd php-pdo php-gd
119
+ # yum install --enablerepo=remi,remi-php74 phpMyAdmin
120
+ ```
121
+
122
+ これにより、php7.4とphpMyAdmin5.2.0が新しくインストールされました。
123
+
124
+ /etc/httpd/conf.d/phpMyAdmin.conf は以下のように編集しています。
125
+
126
+ ```ここに言語を入力
127
+ Alias /pma /usr/share/phpMyAdmin
128
+
129
+ <Directory /usr/share/phpMyAdmin>
130
+ AddDefaultCharset UTF-8
131
+
132
+ Require all granted
133
+ </Directory>
134
+
135
+ <Directory /usr/share/phpMyAdmin/setup/>
136
+ Require local
137
+ </Directory>
138
+
139
+ <Directory /usr/share/phpMyAdmin/libraries/>
140
+ Require all denied
141
+ </Directory>
142
+
143
+ <Directory /usr/share/phpMyAdmin/templates/>
144
+ Require all denied
145
+ </Directory>
146
+
147
+ <Directory /usr/share/phpMyAdmin/setup/lib/>
148
+ Require all denied
149
+ </Directory>
150
+
151
+ <Directory /usr/share/phpMyAdmin/setup/frames/>
152
+ Require all denied
153
+ </Directory>
154
+ ```
155
+
156
+ ブラウザでhttp:xxx.xxx.xxx.xxx/pma/index.phpにアクセスしたところ、状況は変わらず真っ白で表示されています。

3

情報の追記

2022/10/11 01:39

投稿

sasaki0628
sasaki0628

スコア106

test CHANGED
File without changes
test CHANGED
@@ -65,3 +65,47 @@
65
65
  [Tue Oct 11 09:19:38.380694 2022] [mpm_prefork:notice] [pid 5149] AH00163: Apache/2.4.6 (CentOS) PHP/8.2.0RC3 configured -- resuming normal operations
66
66
  [Tue Oct 11 09:19:38.380712 2022] [core:notice] [pid 5149] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
67
67
  ```
68
+
69
+ /etc/httpd/conf.d/phpmyadmin.conf の内容は以下になります。
70
+ (/home/www/html/pma をphpMyAdminのディレクトリにしています。)
71
+
72
+ ```ここに言語を入力
73
+ Alias /pma /home/www/html/pma
74
+
75
+ <Directory /home/www/html/pma>
76
+ AddDefaultCharset UTF-8
77
+
78
+ <IfModule mod_authz_core.c>
79
+ # Apache 2.4
80
+ <RequireAny>
81
+ Require ip 127.0.0.1
82
+ Require ip ::1
83
+ Require all granted
84
+ </RequireAny>
85
+ </IfModule>
86
+ <IfModule !mod_authz_core.c>
87
+ # Apache 2.2
88
+ Order Deny,Allow
89
+ Deny from All
90
+ Allow from 127.0.0.1
91
+ Allow from ::1
92
+ </IfModule>
93
+ </Directory>
94
+
95
+ <Directory /home/www/html/pma/setup/>
96
+ <IfModule mod_authz_core.c>
97
+ # Apache 2.4
98
+ <RequireAny>
99
+ Require ip 127.0.0.1
100
+ Require ip ::1
101
+ </RequireAny>
102
+ </IfModule>
103
+ <IfModule !mod_authz_core.c>
104
+ # Apache 2.2
105
+ Order Deny,Allow
106
+ Deny from All
107
+ Allow from 127.0.0.1
108
+ Allow from ::1
109
+ </IfModule>
110
+ </Directory>
111
+ ```

2

phpファイルの説明を追記

2022/10/11 00:45

投稿

sasaki0628
sasaki0628

スコア106

test CHANGED
File without changes
test CHANGED
@@ -5,7 +5,7 @@
5
5
  phpMyAdmin: 5.2.0
6
6
 
7
7
  CentOS7.9にApacheとMariaDBの設定をした後、phpMyAdminの設定をしています。
8
- 設定完了後の最終確認で、以下のphpファイルブラウザで確認したときに正常に表示されない(真っ白になる)のですが、どういった原因が考えられるでしょうか?
8
+ 設定完了後の最終確認で、以下のphpファイル(デフォルトでダウンロードされるphpMyAdminのログイン画面を表示するindex.phpです。)をブラウザで確認したときに正常に表示されない(真っ白になる)のですが、どういった原因が考えられるでしょうか?
9
9
  同じファイルパス(ファイル名も同じにした場合)の他のphpファイルは正常に表示されるので、このphpファイルの中身の何かがエラーを起こしていると考えています。
10
10
 
11
11
  ```ここに言語を入力

1

Apacheのバージョンを追記

2022/10/11 00:43

投稿

sasaki0628
sasaki0628

スコア106

test CHANGED
File without changes
test CHANGED
@@ -1,4 +1,5 @@
1
1
  OS: CentOS7.9
2
+ Apache: 2.4.6
2
3
  DB: 10.9.3-MariaDB MariaDB-Server
3
4
  php: 8.2.0
4
5
  phpMyAdmin: 5.2.0