質問編集履歴
2
編集
title
CHANGED
File without changes
|
body
CHANGED
@@ -7,12 +7,12 @@
|
|
7
7
|
何をどうしたらいいのかお教え頂きたいです。
|
8
8
|

|
9
9
|
|
10
|
+
vagrant up後のターミナル結果です。
|
10
|
-

|
11
12
|
|
13
|
+
vagrant statusです。
|
12
|
-
](09c2cc8b967317dec032a3804a8d78f9.png)
|
13
15
|
|
14
|
-
|
15
|
-
|
16
16
|
### 該当のソースコード
|
17
17
|
|
18
18
|
```ここに言語名を入力
|
1
追記実行後 結果
title
CHANGED
File without changes
|
body
CHANGED
@@ -31,4 +31,72 @@
|
|
31
31
|

|
32
32
|
|
33
33
|
bootstrap.shも同様です。
|
34
|
-

|
34
|
+

|
35
|
+
|
36
|
+
|
37
|
+
|
38
|
+
###追記 実施後
|
39
|
+
回答ありがとうございます。
|
40
|
+
vagrant up
|
41
|
+
vagrant ssh
|
42
|
+
|
43
|
+
$ sudo apt update -y
|
44
|
+
$ sudo apt install -y apache2
|
45
|
+
$ sudo apachectl status を実施しました。
|
46
|
+
|
47
|
+
下記が実行結果です。
|
48
|
+
ターミナル
|
49
|
+
vagrant@vagrant-ubuntu-trusty-64:~$ sudo apachectl status
|
50
|
+
Apache Server Status for localhost (via 127.0.0.1)
|
51
|
+
|
52
|
+
Server Version: Apache/2.4.7 (Ubuntu)
|
53
|
+
Server MPM: event
|
54
|
+
Server Built: Apr 18 2018 15:36:26
|
55
|
+
|
56
|
+
-------------------------------------------------------------------------------
|
57
|
+
|
58
|
+
Current Time: Saturday, 18-Aug-2018 14:58:42 UTC
|
59
|
+
Restart Time: Saturday, 18-Aug-2018 14:58:23 UTC
|
60
|
+
Parent Server Config. Generation: 1
|
61
|
+
Parent Server MPM Generation: 0
|
62
|
+
Server uptime: 19 seconds
|
63
|
+
Server load: 0.15 0.07 0.06
|
64
|
+
Total accesses: 0 - Total Traffic: 0 kB
|
65
|
+
CPU Usage: u0 s0 cu0 cs0
|
66
|
+
0 requests/sec - 0 B/second -
|
67
|
+
1 requests currently being processed, 49 idle workers
|
68
|
+
|
69
|
+
PID Connections Threads Async connections
|
70
|
+
total accepting busy idle writing keep-alive closing
|
71
|
+
10369 0 yes 0 25 0 0 0
|
72
|
+
10370 0 yes 1 24 0 0 0
|
73
|
+
Sum 0 1 49 0 0 0
|
74
|
+
|
75
|
+
______________________________W___________________..............
|
76
|
+
................................................................
|
77
|
+
......................
|
78
|
+
|
79
|
+
Scoreboard Key:
|
80
|
+
"_" Waiting for Connection, "S" Starting up, "R" Reading Request,
|
81
|
+
"W" Sending Reply, "K" Keepalive (read), "D" DNS Lookup,
|
82
|
+
"C" Closing connection, "L" Logging, "G" Gracefully finishing,
|
83
|
+
"I" Idle cleanup of worker, "." Open slot with no current process
|
84
|
+
vagrant@vagrant-ubuntu-trusty-64:~$
|
85
|
+
|
86
|
+
以上です。
|
87
|
+
already runningが出ているかは不明ですが
|
88
|
+
|
89
|
+
Apace2 Ubuntu Default Pageへはアクセスできました。
|
90
|
+
](314109cdb0df847130dcd2cf24a1909e.png)
|
91
|
+
|
92
|
+
ここから下の階層へアクセスするにはどうすればいいんでしょうか?
|
93
|
+
|
94
|
+
現在
|
95
|
+
ホーム→vagrantフォルダ→htmlフォルダ(vagrantFile,bootstrap.sh同階層)→phpフォルダ→chapter2フォルダ→phpファイル
|
96
|
+
という構造になっています。
|
97
|
+
|
98
|
+
参考書では
|
99
|
+
http://localhost:8080/php/chapter2/welcome.php
|
100
|
+
とブラウザで開くとphpファイルが開くようなのですがApace2 Ubuntu Default Pageのページからurlを追加してみてもNot Foundでした。
|
101
|
+
|
102
|
+
これはファイルの保存先が間違えているのでしょうか?
|