質問編集履歴

11

fix

2017/08/11 06:33

投稿

vitabrevisarsl1
vitabrevisarsl1

スコア57

test CHANGED
File without changes
test CHANGED
@@ -82,7 +82,9 @@
82
82
 
83
83
  <本番HP>
84
84
 
85
+ https://aaaaa.jp/admin/index.php/admins ログイン
86
+
85
- https://aaaaa.jp/admin/index.php/admins ログイン → https://aaaaa.jp/admin/index.php/companies/index#forward o
87
+ → https://aaaaa.jp/admin/index.php/companies/index#forward o
86
88
 
87
89
 
88
90
 
@@ -162,6 +164,10 @@
162
164
 
163
165
  という経過(プロンプトにて root@locaohostにパスワード 設定)をその後辿り、ローカル環境としての表示に辿り着きました。
164
166
 
167
+
168
+
169
+ [= Conclusion =]
170
+
165
171
  ①外部ファイル化:勉強の課題。
166
172
 
167
173
  ②root@locaohostにパスワードが要るということは、明白だったと思いますが、浅学のためまだ判断がつきません。これも課題です。

10

修正

2017/08/11 06:33

投稿

vitabrevisarsl1
vitabrevisarsl1

スコア57

test CHANGED
File without changes
test CHANGED
@@ -59,6 +59,10 @@
59
59
 
60
60
 
61
61
  ---
62
+
63
+
64
+
65
+ ▼ ▼ ▼ ▼ ▼ ▼ ▼
62
66
 
63
67
 
64
68
 

9

修せお

2017/08/11 06:30

投稿

vitabrevisarsl1
vitabrevisarsl1

スコア57

test CHANGED
File without changes
test CHANGED
@@ -92,15 +92,15 @@
92
92
 
93
93
  └admin
94
94
 
95
- └application
95
+ └application
96
96
 
97
- └config
97
+ └config
98
98
 
99
- └config.php
99
+ └config.php
100
100
 
101
- └controllers
101
+ └controllers
102
102
 
103
- └Admins.php
103
+ └Admins.php
104
104
 
105
105
  ```
106
106
 

8

かいけつ

2017/08/11 06:28

投稿

vitabrevisarsl1
vitabrevisarsl1

スコア57

test CHANGED
File without changes
test CHANGED
@@ -60,7 +60,11 @@
60
60
 
61
61
  ---
62
62
 
63
+
64
+
65
+ ---
66
+
63
- [追記0811 暫定解決]
67
+ [追記0811 momf様0809後の暫定解決]
64
68
 
65
69
  <仮想環境のリダイレクト>
66
70
 

7

ka

2017/08/11 06:26

投稿

vitabrevisarsl1
vitabrevisarsl1

スコア57

test CHANGED
File without changes
test CHANGED
@@ -38,33 +38,11 @@
38
38
 
39
39
  と表示されます。
40
40
 
41
- [(追記)
42
-
43
- http://localhost:80/sos/html/admin/test.html → http://localhost/sos/html/admin/test.html o
44
-
45
- http://localhost:80/sos/html/admin/index.php → http://localhost/aaaaa/html/admin/index.php/admins x
46
-
47
- localhost:80/ → localhost/dashboard/ o
48
-
49
- localhost/ → localhost/dashboard/ o]
50
-
51
41
 
52
42
 
53
43
  わからないのは、本番のファイル構成で、index.phpというファイルがフォルダ扱いになっていて、下の階層にadminsというファイルらしきものがあることです。
54
44
 
55
- [(追記)
56
-
57
45
  ~index.php/adminsとはどういう意味なのでしょう?
58
-
59
- 本番ページで
60
-
61
- 「http://localhost/aaaaa/admin/index.php/admins」
62
-
63
- でログインしますと、URLは
64
-
65
- https://aaaaa.jp/admin/index.php/companies/index#forward
66
-
67
- となります。]
68
46
 
69
47
 
70
48
 
@@ -77,3 +55,105 @@
77
55
 
78
56
 
79
57
  ご教授いただけますと幸いです。
58
+
59
+
60
+
61
+ ---
62
+
63
+ [追記0811 暫定解決]
64
+
65
+ <仮想環境のリダイレクト>
66
+
67
+ http://localhost:80/APP/html/admin/test.html → http://localhost/APP/html/admin/test.html o
68
+
69
+ http://localhost:80/APP/html/admin/index.php → http://localhost/aaaaa/html/admin/index.php/admins x(Object not found!)
70
+
71
+ localhost:80/ → localhost/dashboard/ o
72
+
73
+ localhost/ → localhost/dashboard/ o
74
+
75
+ <本番HP>
76
+
77
+ https://aaaaa.jp/admin/index.php/admins ログイン → https://aaaaa.jp/admin/index.php/companies/index#forward o
78
+
79
+
80
+
81
+ ①「 ~ /index.php/admins」について
82
+
83
+ ```
84
+
85
+ html
86
+
87
+ └index.php
88
+
89
+ └admin
90
+
91
+ └application
92
+
93
+ └config
94
+
95
+ └config.php
96
+
97
+ └controllers
98
+
99
+ └Admins.php
100
+
101
+ ```
102
+
103
+ これは、恐らく、index.php内でadmin配下のAdmins.php内の記述
104
+
105
+ ```php
106
+
107
+ public function index() { $data['site_name'] = "login";
108
+
109
+ $this->load->view('admins/index',$data); }
110
+
111
+ ```
112
+
113
+ あたりが働いているための表示と思われました。ブラウザ検証でindex.phpディレクトリ下にadminsなるファイルが有るように見えるのは、シンボル的な表示に過ぎず、物理的なディレクトリ構造を必ずしも示さないのでしょう。
114
+
115
+
116
+
117
+
118
+
119
+
120
+
121
+ ②URLが解消したと思いきや、次に「Database Error」が立ちはだかりました。
122
+
123
+ phpMyAdmin(localhost / 127.0.0.1)で下記手順にてrootパスワードは無しにしておいておりました。
124
+
125
+ A) xampp ー MySQL / [Admin] ー 特権 root ー Edit Priviliges ー パスワードを変更する
126
+
127
+ B) C:\xampp\phpMyAdmin\config.inc.php 「$cfg['Servers'][$i]['password'] = 'oooo';」
128
+
129
+ rootのpassとしてAとBを合わせる。
130
+
131
+
132
+
133
+ しかしここで、root@locaohostにパスワードを付ける必要があるとのことを先輩から言われました。
134
+
135
+
136
+
137
+ ```
138
+
139
+ use APP;
140
+
141
+ select * from USER_PRIVILEGES; // 現状確認
142
+
143
+ set password for root@localhost = password('Passoooooo'); // 設定
144
+
145
+ select * from USER_PRIVILEGES; // 再確認
146
+
147
+ mysql -u root -pPassoooooo // 有効であることを確認
148
+
149
+
150
+
151
+ ```
152
+
153
+
154
+
155
+ という経過(プロンプトにて root@locaohostにパスワード 設定)をその後辿り、ローカル環境としての表示に辿り着きました。
156
+
157
+ ①外部ファイル化:勉強の課題。
158
+
159
+ ②root@locaohostにパスワードが要るということは、明白だったと思いますが、浅学のためまだ判断がつきません。これも課題です。

6

変更

2017/08/11 06:23

投稿

vitabrevisarsl1
vitabrevisarsl1

スコア57

test CHANGED
@@ -1 +1 @@
1
- URLとファイル構造について
1
+ URLとディレクトリ構造について
test CHANGED
File without changes

5

tuiki

2017/08/09 15:33

投稿

vitabrevisarsl1
vitabrevisarsl1

スコア57

test CHANGED
File without changes
test CHANGED
@@ -14,7 +14,7 @@
14
14
 
15
15
  ```php
16
16
 
17
- $config['base_url'] = 'http://localhost:80/aaaaa/admin/';
17
+ $config['base_url'] = 'http://localhost:80/aaaaa/html/admin/';
18
18
 
19
19
  $config['index_page'] = 'index.php';
20
20
 
@@ -34,11 +34,41 @@
34
34
 
35
35
  「Object not found! 要求された URL は本サーバでは見つかりませんでした。 もし手入力で URL を入力した場合は、綴りを確認して再度お試し下さい。 サーバーの障害と思われる場合は、ウェブ管理者までご連絡ください。
36
36
 
37
- Error 404 localhost Apache/2.4.26 (Win32) OpenSSL/1.0.2l PHP/5.6.31」と表示されます。
37
+ Error 404 localhost Apache/2.4.26 (Win32) OpenSSL/1.0.2l PHP/5.6.31」
38
+
39
+ と表示されます。
40
+
41
+ [(追記)
42
+
43
+ http://localhost:80/sos/html/admin/test.html → http://localhost/sos/html/admin/test.html o
44
+
45
+ http://localhost:80/sos/html/admin/index.php → http://localhost/aaaaa/html/admin/index.php/admins x
46
+
47
+ localhost:80/ → localhost/dashboard/ o
48
+
49
+ localhost/ → localhost/dashboard/ o]
38
50
 
39
51
 
40
52
 
41
- わからないのは、本番のファイル構成で、index.phpというファイルがフォルダ扱いになっていて、下の階層にadminsというファイルらしきものがあることです。外部ファイルの呼び出しについて復習しておりますが、判然としません。
53
+ わからないのは、本番のファイル構成で、index.phpというファイルがフォルダ扱いになっていて、下の階層にadminsというファイルらしきものがあることです。
54
+
55
+ [(追記)
56
+
57
+ ~index.php/adminsとはどういう意味なのでしょう?
58
+
59
+ 本番ページで
60
+
61
+ 「http://localhost/aaaaa/admin/index.php/admins」
62
+
63
+ でログインしますと、URLは
64
+
65
+ https://aaaaa.jp/admin/index.php/companies/index#forward
66
+
67
+ となります。]
68
+
69
+
70
+
71
+ 外部ファイルの呼び出しについて復習しておりますが、判然としません。
42
72
 
43
73
 
44
74
 

4

s

2017/08/09 05:03

投稿

vitabrevisarsl1
vitabrevisarsl1

スコア57

test CHANGED
File without changes
test CHANGED
@@ -14,7 +14,7 @@
14
14
 
15
15
  ```php
16
16
 
17
- $config['base_url'] = 'http://localhost:80/aaaaa.jp/admin/';
17
+ $config['base_url'] = 'http://localhost:80/aaaaa/admin/';
18
18
 
19
19
  $config['index_page'] = 'index.php';
20
20
 
@@ -24,11 +24,11 @@
24
24
 
25
25
  ブラウザURLに
26
26
 
27
- 「http://localhost/APP/html/admin/index.php」
27
+ 「http://localhost:80/APP/html/admin/index.php」
28
28
 
29
29
  と入力しenterしますと
30
30
 
31
- 「http://localhost/aaaaa.jp/admin/index.php/admins」
31
+ 「http://localhost/aaaaa/admin/index.php/admins」
32
32
 
33
33
  にリダイレクトされ、
34
34
 

3

修正

2017/08/09 03:50

投稿

vitabrevisarsl1
vitabrevisarsl1

スコア57

test CHANGED
File without changes
test CHANGED
@@ -22,9 +22,15 @@
22
22
 
23
23
  としました。
24
24
 
25
- ブラウザURLに「http://localhost/APP/html/admin/index.php」と入力しenterしますと
25
+ ブラウザURLに
26
26
 
27
+ 「http://localhost/APP/html/admin/index.php」
28
+
29
+ と入力しenterしますと
30
+
27
- 「http://localhost/aaaaa.jp/admin/index.php/admins」にリダイレクトされ、
31
+ 「http://localhost/aaaaa.jp/admin/index.php/admins」
32
+
33
+ にリダイレクトされ、
28
34
 
29
35
  「Object not found! 要求された URL は本サーバでは見つかりませんでした。 もし手入力で URL を入力した場合は、綴りを確認して再度お試し下さい。 サーバーの障害と思われる場合は、ウェブ管理者までご連絡ください。
30
36
 

2

追記

2017/08/09 03:03

投稿

vitabrevisarsl1
vitabrevisarsl1

スコア57

test CHANGED
File without changes
test CHANGED
@@ -14,7 +14,7 @@
14
14
 
15
15
  ```php
16
16
 
17
- $config['base_url'] = 'http://localhost:80/aaaaa/admin/';
17
+ $config['base_url'] = 'http://localhost:80/aaaaa.jp/admin/';
18
18
 
19
19
  $config['index_page'] = 'index.php';
20
20
 
@@ -24,7 +24,7 @@
24
24
 
25
25
  ブラウザURLに「http://localhost/APP/html/admin/index.php」と入力しenterしますと
26
26
 
27
- 「http://localhost/aaaaa/admin/index.php/admins」にリダイレクトされ、
27
+ 「http://localhost/aaaaa.jp/admin/index.php/admins」にリダイレクトされ、
28
28
 
29
29
  「Object not found! 要求された URL は本サーバでは見つかりませんでした。 もし手入力で URL を入力した場合は、綴りを確認して再度お試し下さい。 サーバーの障害と思われる場合は、ウェブ管理者までご連絡ください。
30
30
 

1

修正

2017/08/09 02:34

投稿

vitabrevisarsl1
vitabrevisarsl1

スコア57

test CHANGED
File without changes
test CHANGED
@@ -22,7 +22,7 @@
22
22
 
23
23
  としました。
24
24
 
25
- ブラウザURLに「http://localhost/aaaaa/html/admin/index.php」と入力しenterしますと
25
+ ブラウザURLに「http://localhost/APP/html/admin/index.php」と入力しenterしますと
26
26
 
27
27
  「http://localhost/aaaaa/admin/index.php/admins」にリダイレクトされ、
28
28