質問編集履歴

2

ログイン後のURLと原因箇所を修正しました。

2016/08/05 09:44

投稿

smnsmn
smnsmn

スコア175

test CHANGED
File without changes
test CHANGED
@@ -28,15 +28,21 @@
28
28
 
29
29
  その時のURLは
30
30
 
31
+ ※修正しました
32
+
31
- **http://111.111.111.1111/phpMyAdmin/index.php?target=server_databases.php&token=xxxxxxxxx**
33
+ **http://111.111.111.1111/index.php?target=server_databases.php&token=xxxxxxxxx**
34
+
35
+ **http://111.111.111.1111/index.php?token=xxxxxxxxxxxxx**
36
+
37
+
32
38
 
33
39
  のようになっています。
34
40
 
35
- server_databases.php自体は存在します。
36
41
 
37
42
 
43
+ どうやら、ログイン後にphpMyAdmin/以下のディレクトリではないところにアクセスしてしまっているようです。
38
44
 
39
- しかし、その後
45
+
40
46
 
41
47
  **http://111.111.111.1111/phpMyAdmin**
42
48
 

1

設定ファイルの情報追加

2016/08/05 09:44

投稿

smnsmn
smnsmn

スコア175

test CHANGED
File without changes
test CHANGED
@@ -32,6 +32,8 @@
32
32
 
33
33
  のようになっています。
34
34
 
35
+ server_databases.php自体は存在します。
36
+
35
37
 
36
38
 
37
39
  しかし、その後
@@ -55,3 +57,73 @@
55
57
 
56
58
 
57
59
  何卒よろしくお願い致します。
60
+
61
+
62
+
63
+
64
+
65
+ ##追記
66
+
67
+
68
+
69
+ nginx設定ファイルのphpMyAdmin部分です。
70
+
71
+
72
+
73
+ **/etc/nginx/conf.d/default.conf**
74
+
75
+ ```
76
+
77
+ server_name localhost;
78
+
79
+ root /usr/share/nginx/html;
80
+
81
+ 〜〜〜〜〜〜〜〜〜省略〜〜〜〜〜〜〜〜〜〜〜
82
+
83
+ location /phpMyAdmin {
84
+
85
+ alias /usr/share/phpMyAdmin;
86
+
87
+ index index.php;
88
+
89
+
90
+
91
+ location ~ ^/phpMyAdmin/.+\.php$ {
92
+
93
+ fastcgi_pass 127.0.0.1:9000;
94
+
95
+ fastcgi_index index.php;
96
+
97
+ fastcgi_split_path_info ^/phpMyAdmin(.+\.php)(.*)$;
98
+
99
+ fastcgi_param SCRIPT_FILENAME /usr/share/phpMyAdmin/$fastcgi_script_name;
100
+
101
+ include /etc/nginx/fastcgi_params;
102
+
103
+ }
104
+
105
+ }
106
+
107
+ ```
108
+
109
+
110
+
111
+ phpMyAdminの設定ファイル
112
+
113
+ **/etc/phpMyAdmin/config.inc.php**
114
+
115
+ に関して、関係ありそうな部分は下記のようにしています。
116
+
117
+
118
+
119
+ MySQLをインストールした時に設定した
120
+
121
+ `$cfg['Servers'][$i]['controluser'] = 'ユーザー';`
122
+
123
+ `$cfg['Servers'][$i]['controlpass'] = 'パスワード';`
124
+
125
+
126
+
127
+ `$cfg['PmaAbsoluteUri'] = 'http://111.111.111.111/phpMyAdmin/';`
128
+
129
+ `$cfg['blowfish_secret'] = '任意の文字列46文字';`