質問編集履歴

2

編集

2018/08/19 04:38

投稿

kkkkkkimkkk
kkkkkkimkkk

スコア12

test CHANGED
File without changes
test CHANGED
@@ -16,15 +16,15 @@
16
16
 
17
17
 
18
18
 
19
+ vagrant up後のターミナル結果です。
20
+
19
- ![vagrant up後のターミナル結果です。](f9a20d1e7b8b567af6a1125475afe370.png)
21
+ ![vagrant up後のターミナル結果です。](067371155191d9cf0e0cf2520968702e.png)
22
+
23
+
24
+
20
-
25
+ vagrant statusです。
21
-
22
-
26
+
23
- ![vagrant statusです。](1e6faeb398d5478cdc9f21a17da61ac7.png)
27
+ ![![vagrant statusです。](e01b51587a653a084e0a81be34147dd9.png)](09c2cc8b967317dec032a3804a8d78f9.png)
24
-
25
-
26
-
27
-
28
28
 
29
29
 
30
30
 

1

追記実行後 結果

2018/08/19 04:38

投稿

kkkkkkimkkk
kkkkkkimkkk

スコア12

test CHANGED
File without changes
test CHANGED
@@ -65,3 +65,139 @@
65
65
  bootstrap.shも同様です。
66
66
 
67
67
  ![bootstrap.sh](5185cfa5a731b3f2b6f40ce071ec2a7f.png)
68
+
69
+
70
+
71
+
72
+
73
+
74
+
75
+ ###追記 実施後
76
+
77
+ 回答ありがとうございます。
78
+
79
+ vagrant up
80
+
81
+ vagrant ssh
82
+
83
+
84
+
85
+ $ sudo apt update -y
86
+
87
+ $ sudo apt install -y apache2
88
+
89
+ $ sudo apachectl status を実施しました。
90
+
91
+
92
+
93
+ 下記が実行結果です。
94
+
95
+ ターミナル
96
+
97
+ vagrant@vagrant-ubuntu-trusty-64:~$ sudo apachectl status
98
+
99
+ Apache Server Status for localhost (via 127.0.0.1)
100
+
101
+
102
+
103
+ Server Version: Apache/2.4.7 (Ubuntu)
104
+
105
+ Server MPM: event
106
+
107
+ Server Built: Apr 18 2018 15:36:26
108
+
109
+
110
+
111
+ -------------------------------------------------------------------------------
112
+
113
+
114
+
115
+ Current Time: Saturday, 18-Aug-2018 14:58:42 UTC
116
+
117
+ Restart Time: Saturday, 18-Aug-2018 14:58:23 UTC
118
+
119
+ Parent Server Config. Generation: 1
120
+
121
+ Parent Server MPM Generation: 0
122
+
123
+ Server uptime: 19 seconds
124
+
125
+ Server load: 0.15 0.07 0.06
126
+
127
+ Total accesses: 0 - Total Traffic: 0 kB
128
+
129
+ CPU Usage: u0 s0 cu0 cs0
130
+
131
+ 0 requests/sec - 0 B/second -
132
+
133
+ 1 requests currently being processed, 49 idle workers
134
+
135
+
136
+
137
+ PID Connections Threads Async connections
138
+
139
+ total accepting busy idle writing keep-alive closing
140
+
141
+ 10369 0 yes 0 25 0 0 0
142
+
143
+ 10370 0 yes 1 24 0 0 0
144
+
145
+ Sum 0 1 49 0 0 0
146
+
147
+
148
+
149
+ ______________________________W___________________..............
150
+
151
+ ................................................................
152
+
153
+ ......................
154
+
155
+
156
+
157
+ Scoreboard Key:
158
+
159
+ "_" Waiting for Connection, "S" Starting up, "R" Reading Request,
160
+
161
+ "W" Sending Reply, "K" Keepalive (read), "D" DNS Lookup,
162
+
163
+ "C" Closing connection, "L" Logging, "G" Gracefully finishing,
164
+
165
+ "I" Idle cleanup of worker, "." Open slot with no current process
166
+
167
+ vagrant@vagrant-ubuntu-trusty-64:~$
168
+
169
+
170
+
171
+ 以上です。
172
+
173
+ already runningが出ているかは不明ですが
174
+
175
+
176
+
177
+ Apace2 Ubuntu Default Pageへはアクセスできました。
178
+
179
+ ![![イメージ説明](82b0526a5db211868febfe045e57e3e0.png)](314109cdb0df847130dcd2cf24a1909e.png)
180
+
181
+
182
+
183
+ ここから下の階層へアクセスするにはどうすればいいんでしょうか?
184
+
185
+
186
+
187
+ 現在
188
+
189
+ ホーム→vagrantフォルダ→htmlフォルダ(vagrantFile,bootstrap.sh同階層)→phpフォルダ→chapter2フォルダ→phpファイル
190
+
191
+ という構造になっています。
192
+
193
+
194
+
195
+ 参考書では
196
+
197
+ http://localhost:8080/php/chapter2/welcome.php
198
+
199
+ とブラウザで開くとphpファイルが開くようなのですがApace2 Ubuntu Default Pageのページからurlを追加してみてもNot Foundでした。
200
+
201
+
202
+
203
+ これはファイルの保存先が間違えているのでしょうか?