質問編集履歴

1

追記

2021/12/14 02:43

投稿

beginner_kaito
beginner_kaito

スコア16

test CHANGED
File without changes
test CHANGED
@@ -9,3 +9,59 @@
9
9
 
10
10
 
11
11
  手順は正しく踏めているはずなのに、何故接続できないのか、分かる方がいらっしゃったら、もしくは同様の質問がされて、解決されているのを知っている方がいらしたら、教えて頂けると助かります。
12
+
13
+
14
+
15
+ #エラーが出るまでに行ったこと
16
+
17
+ ご意見頂いたので、エラーが出るまでに行ったことを書いていきます。
18
+
19
+
20
+
21
+ 前提として、PHP5.4が入ったxamppが、C:\pleiadesに入っています。
22
+
23
+ ・[こちら](https://sourceforge.net/projects/xampp/files/XAMPP%20Windows/7.4.26/)にてPHP7.4.26が入ったxamppをダウンロードしました。
24
+
25
+ ・ダウンロードしたxamppの中にある、phpディレクトリと、apache/conf/extraディレクトリにあるhttpd-xampp.confをそれぞれ「php7」、「httpd-xampp7.conf」というようにリネームし、既存のxamppファイルにそれぞれ移動しました。
26
+
27
+ ・既存のxamppファイルも同様に「php5」、「httpd-xampp5.conf」というようにリネームしました。
28
+
29
+ ・管理者権限で開いたコマンドプロンプトにして、以下のようにコマンド実行し、シンボリックリンクが作成されましたことを確認しました。
30
+
31
+ ```
32
+
33
+ mklink C:\pleiades\xampp\apache\conf\extra\httpd-xampp.conf C:\pleiades\xampp\apache\conf\extra\httpd-xampp7.conf
34
+
35
+ mklink /d C:\pleiades\xampp\php C:\pleiades\xampp\php7
36
+
37
+
38
+
39
+ ```
40
+
41
+
42
+
43
+ そしてxamppのコントロールパネルを起動し、ApacheをStartさせたところ、以下のようなエラーが出て、ストップしました。
44
+
45
+
46
+
47
+ ```
48
+
49
+ 11:26:47 [Apache] Error: Apache shutdown unexpectedly.
50
+
51
+ 11:26:47 [Apache] This may be due to a blocked port, missing dependencies,
52
+
53
+ 11:26:47 [Apache] improper privileges, a crash, or a shutdown by another method.
54
+
55
+ 11:26:47 [Apache] Press the Logs button to view error logs and check
56
+
57
+ 11:26:47 [Apache] the Windows Event Viewer for more clues
58
+
59
+ 11:26:47 [Apache] If you need more help, copy and post this
60
+
61
+ 11:26:47 [Apache] entire log window on the forums
62
+
63
+ ```
64
+
65
+
66
+
67
+ 不足がございましたらまた指摘してくださるとうれしいです。