質問編集履歴
3
Apacheのログを全て記載
title
CHANGED
File without changes
|
body
CHANGED
@@ -8,16 +8,24 @@
|
|
8
8
|

|
9
9
|
|
10
10
|

|
11
|
-
↓ Apacheのログを記載しておきます。↓
|
11
|
+
↓ Apacheのログを全て記載しておきます。↓
|
12
12
|
```
|
13
|
+
14:44:47 [Apache] Problem detected!
|
14
|
+
14:44:47 [Apache] Port 80 in use by "Unable to open process" with PID 4!
|
15
|
+
14:44:47 [Apache] Apache WILL NOT start without the configured ports free!
|
16
|
+
14:44:47 [Apache] You need to uninstall/disable/reconfigure the blocking application
|
17
|
+
14:44:47 [Apache] or reconfigure Apache and the Control Panel to listen on a different port
|
18
|
+
14:44:47 [Apache] Attempting to start Apache app...
|
19
|
+
14:44:47 [Apache] Status change detected: running
|
13
|
-
|
20
|
+
14:44:48 [Apache] Status change detected: stopped
|
14
|
-
|
21
|
+
14:44:48 [Apache] Error: Apache shutdown unexpectedly.
|
15
|
-
|
22
|
+
14:44:48 [Apache] This may be due to a blocked port, missing dependencies,
|
16
|
-
|
23
|
+
14:44:48 [Apache] improper privileges, a crash, or a shutdown by another method.
|
17
|
-
|
24
|
+
14:44:48 [Apache] Press the Logs button to view error logs and check
|
18
|
-
|
25
|
+
14:44:48 [Apache] the Windows Event Viewer for more clues
|
19
|
-
|
26
|
+
14:44:48 [Apache] If you need more help, copy and post this
|
20
|
-
|
27
|
+
14:44:48 [Apache] entire log window on the forums
|
28
|
+
ms
|
21
29
|
```
|
22
30
|
コードはおそらく間違えてはいないと思いますが、念のため貼っておきます。(ユーザー名は仮です)
|
23
31
|
```
|
2
apacheのログの追加
title
CHANGED
File without changes
|
body
CHANGED
@@ -6,7 +6,19 @@
|
|
6
6
|
画像の通りURL入力欄に「local~」を入れてもエラーになってしまいます。
|
7
7
|
他のファイル名を指定しても変わりませんでした。
|
8
8
|

|
9
|
+
|
9
10
|

|
11
|
+
↓ Apacheのログを記載しておきます。↓
|
12
|
+
```
|
13
|
+
20:38:30 [Apache] Status change detected: stopped
|
14
|
+
20:38:30 [Apache] Error: Apache shutdown unexpectedly.
|
15
|
+
20:38:30 [Apache] This may be due to a blocked port, missing dependencies,
|
16
|
+
20:38:30 [Apache] improper privileges, a crash, or a shutdown by another method.
|
17
|
+
20:38:30 [Apache] Press the Logs button to view error logs and check
|
18
|
+
20:38:30 [Apache] the Windows Event Viewer for more clues
|
19
|
+
20:38:30 [Apache] If you need more help, copy and post this
|
20
|
+
20:38:30 [Apache] entire log window on the forums
|
21
|
+
```
|
10
22
|
コードはおそらく間違えてはいないと思いますが、念のため貼っておきます。(ユーザー名は仮です)
|
11
23
|
```
|
12
24
|
<!doctype html>
|
1
コードを画像からマークダウンに変更
title
CHANGED
File without changes
|
body
CHANGED
@@ -8,8 +8,45 @@
|
|
8
8
|

|
9
9
|

|
10
10
|
コードはおそらく間違えてはいないと思いますが、念のため貼っておきます。(ユーザー名は仮です)
|
11
|
+
```
|
12
|
+
<!doctype html>
|
13
|
+
<html lang="ja">
|
14
|
+
<head>
|
11
|
-
!
|
15
|
+
<!-- Required meta tags -->
|
16
|
+
<meta charset="utf-8">
|
17
|
+
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
12
18
|
|
19
|
+
<!-- Bootstrap CSS -->
|
20
|
+
<link rel="stylesheet" href="css/style.css">
|
21
|
+
|
22
|
+
<title>PHP</title>
|
23
|
+
</head>
|
24
|
+
<body>
|
25
|
+
<header>
|
26
|
+
<h1 class="font-weight-normal">PHP</h1>
|
27
|
+
</header>
|
28
|
+
|
29
|
+
<main>
|
30
|
+
<h2>Practice</h2>
|
31
|
+
<pre>
|
32
|
+
<?php
|
33
|
+
try {
|
34
|
+
$db = new PDO('mysql:dbname=mydb;host=127.0.0.1;charset=utf8','root','');
|
35
|
+
$statement = $db->prepare('INSERT INTO memos SET memo=?,created_at=NOW()');
|
36
|
+
$statement->execute(array($_POST['memo']));
|
37
|
+
echo 'メッセージを送信しました';
|
38
|
+
} catch(PDOException $e) {
|
39
|
+
echo 'DB接続エラー:'.$e->getMessage();
|
40
|
+
}
|
41
|
+
?>
|
42
|
+
</pre>
|
43
|
+
</main>
|
44
|
+
</body>
|
45
|
+
</html>
|
46
|
+
|
47
|
+
|
48
|
+
```
|
49
|
+
|
13
50
|
### 試してみたこと
|
14
51
|
・apacheのポート番号の変更(8888⇒81)
|
15
52
|
・PCの再起動
|