質問編集履歴
3
Apacheのログを全て記載
test
CHANGED
File without changes
|
test
CHANGED
@@ -18,25 +18,41 @@
|
|
18
18
|
|
19
19
|
![イメージ説明](09e6bcb558883c2b6abc56fecd7d1fbb.png)
|
20
20
|
|
21
|
-
↓ Apacheのログを記載しておきます。↓
|
21
|
+
↓ Apacheのログを全て記載しておきます。↓
|
22
22
|
|
23
23
|
```
|
24
24
|
|
25
|
-
|
25
|
+
14:44:47 [Apache] Problem detected!
|
26
26
|
|
27
|
-
|
27
|
+
14:44:47 [Apache] Port 80 in use by "Unable to open process" with PID 4!
|
28
28
|
|
29
|
-
|
29
|
+
14:44:47 [Apache] Apache WILL NOT start without the configured ports free!
|
30
30
|
|
31
|
-
|
31
|
+
14:44:47 [Apache] You need to uninstall/disable/reconfigure the blocking application
|
32
32
|
|
33
|
-
|
33
|
+
14:44:47 [Apache] or reconfigure Apache and the Control Panel to listen on a different port
|
34
34
|
|
35
|
-
|
35
|
+
14:44:47 [Apache] Attempting to start Apache app...
|
36
36
|
|
37
|
-
|
37
|
+
14:44:47 [Apache] Status change detected: running
|
38
38
|
|
39
|
+
14:44:48 [Apache] Status change detected: stopped
|
40
|
+
|
41
|
+
14:44:48 [Apache] Error: Apache shutdown unexpectedly.
|
42
|
+
|
43
|
+
14:44:48 [Apache] This may be due to a blocked port, missing dependencies,
|
44
|
+
|
45
|
+
14:44:48 [Apache] improper privileges, a crash, or a shutdown by another method.
|
46
|
+
|
47
|
+
14:44:48 [Apache] Press the Logs button to view error logs and check
|
48
|
+
|
49
|
+
14:44:48 [Apache] the Windows Event Viewer for more clues
|
50
|
+
|
51
|
+
14:44:48 [Apache] If you need more help, copy and post this
|
52
|
+
|
39
|
-
|
53
|
+
14:44:48 [Apache] entire log window on the forums
|
54
|
+
|
55
|
+
ms
|
40
56
|
|
41
57
|
```
|
42
58
|
|
2
apacheのログの追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -14,7 +14,31 @@
|
|
14
14
|
|
15
15
|
![イメージ説明](e134cb3439f80ce4dfab4e80ea6733db.png)
|
16
16
|
|
17
|
+
|
18
|
+
|
17
19
|
![イメージ説明](09e6bcb558883c2b6abc56fecd7d1fbb.png)
|
20
|
+
|
21
|
+
↓ Apacheのログを記載しておきます。↓
|
22
|
+
|
23
|
+
```
|
24
|
+
|
25
|
+
20:38:30 [Apache] Status change detected: stopped
|
26
|
+
|
27
|
+
20:38:30 [Apache] Error: Apache shutdown unexpectedly.
|
28
|
+
|
29
|
+
20:38:30 [Apache] This may be due to a blocked port, missing dependencies,
|
30
|
+
|
31
|
+
20:38:30 [Apache] improper privileges, a crash, or a shutdown by another method.
|
32
|
+
|
33
|
+
20:38:30 [Apache] Press the Logs button to view error logs and check
|
34
|
+
|
35
|
+
20:38:30 [Apache] the Windows Event Viewer for more clues
|
36
|
+
|
37
|
+
20:38:30 [Apache] If you need more help, copy and post this
|
38
|
+
|
39
|
+
20:38:30 [Apache] entire log window on the forums
|
40
|
+
|
41
|
+
```
|
18
42
|
|
19
43
|
コードはおそらく間違えてはいないと思いますが、念のため貼っておきます。(ユーザー名は仮です)
|
20
44
|
|
1
コードを画像からマークダウンに変更
test
CHANGED
File without changes
|
test
CHANGED
@@ -18,7 +18,81 @@
|
|
18
18
|
|
19
19
|
コードはおそらく間違えてはいないと思いますが、念のため貼っておきます。(ユーザー名は仮です)
|
20
20
|
|
21
|
+
```
|
22
|
+
|
23
|
+
<!doctype html>
|
24
|
+
|
25
|
+
<html lang="ja">
|
26
|
+
|
27
|
+
<head>
|
28
|
+
|
29
|
+
<!-- Required meta tags -->
|
30
|
+
|
31
|
+
<meta charset="utf-8">
|
32
|
+
|
33
|
+
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
34
|
+
|
35
|
+
|
36
|
+
|
37
|
+
<!-- Bootstrap CSS -->
|
38
|
+
|
39
|
+
<link rel="stylesheet" href="css/style.css">
|
40
|
+
|
41
|
+
|
42
|
+
|
43
|
+
<title>PHP</title>
|
44
|
+
|
45
|
+
</head>
|
46
|
+
|
47
|
+
<body>
|
48
|
+
|
49
|
+
<header>
|
50
|
+
|
51
|
+
<h1 class="font-weight-normal">PHP</h1>
|
52
|
+
|
53
|
+
</header>
|
54
|
+
|
55
|
+
|
56
|
+
|
57
|
+
<main>
|
58
|
+
|
59
|
+
<h2>Practice</h2>
|
60
|
+
|
61
|
+
<pre>
|
62
|
+
|
63
|
+
<?php
|
64
|
+
|
65
|
+
try {
|
66
|
+
|
67
|
+
$db = new PDO('mysql:dbname=mydb;host=127.0.0.1;charset=utf8','root','');
|
68
|
+
|
69
|
+
$statement = $db->prepare('INSERT INTO memos SET memo=?,created_at=NOW()');
|
70
|
+
|
71
|
+
$statement->execute(array($_POST['memo']));
|
72
|
+
|
73
|
+
echo 'メッセージを送信しました';
|
74
|
+
|
75
|
+
} catch(PDOException $e) {
|
76
|
+
|
21
|
-
|
77
|
+
echo 'DB接続エラー:'.$e->getMessage();
|
78
|
+
|
79
|
+
}
|
80
|
+
|
81
|
+
?>
|
82
|
+
|
83
|
+
</pre>
|
84
|
+
|
85
|
+
</main>
|
86
|
+
|
87
|
+
</body>
|
88
|
+
|
89
|
+
</html>
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
```
|
22
96
|
|
23
97
|
|
24
98
|
|