質問編集履歴
1
追記
title
CHANGED
File without changes
|
body
CHANGED
@@ -3,4 +3,32 @@
|
|
3
3
|
[こちら](https://techmemo.biz/web-cheat-sheet/xampp-php-version-change/)のページを参考に手順を進めていたのですが、シンボリックリンクを作成するところまで成功したのは良いのですが、いざローカルホストにアクセスしてみると、「このサイトにアクセスできません」と出てきました。
|
4
4
|
それまで接続できた別の環境にもアクセスできなくなりました。
|
5
5
|
|
6
|
-
手順は正しく踏めているはずなのに、何故接続できないのか、分かる方がいらっしゃったら、もしくは同様の質問がされて、解決されているのを知っている方がいらしたら、教えて頂けると助かります。
|
6
|
+
手順は正しく踏めているはずなのに、何故接続できないのか、分かる方がいらっしゃったら、もしくは同様の質問がされて、解決されているのを知っている方がいらしたら、教えて頂けると助かります。
|
7
|
+
|
8
|
+
#エラーが出るまでに行ったこと
|
9
|
+
ご意見頂いたので、エラーが出るまでに行ったことを書いていきます。
|
10
|
+
|
11
|
+
前提として、PHP5.4が入ったxamppが、C:\pleiadesに入っています。
|
12
|
+
・[こちら](https://sourceforge.net/projects/xampp/files/XAMPP%20Windows/7.4.26/)にてPHP7.4.26が入ったxamppをダウンロードしました。
|
13
|
+
・ダウンロードしたxamppの中にある、phpディレクトリと、apache/conf/extraディレクトリにあるhttpd-xampp.confをそれぞれ「php7」、「httpd-xampp7.conf」というようにリネームし、既存のxamppファイルにそれぞれ移動しました。
|
14
|
+
・既存のxamppファイルも同様に「php5」、「httpd-xampp5.conf」というようにリネームしました。
|
15
|
+
・管理者権限で開いたコマンドプロンプトにして、以下のようにコマンド実行し、シンボリックリンクが作成されましたことを確認しました。
|
16
|
+
```
|
17
|
+
mklink C:\pleiades\xampp\apache\conf\extra\httpd-xampp.conf C:\pleiades\xampp\apache\conf\extra\httpd-xampp7.conf
|
18
|
+
mklink /d C:\pleiades\xampp\php C:\pleiades\xampp\php7
|
19
|
+
|
20
|
+
```
|
21
|
+
|
22
|
+
そしてxamppのコントロールパネルを起動し、ApacheをStartさせたところ、以下のようなエラーが出て、ストップしました。
|
23
|
+
|
24
|
+
```
|
25
|
+
11:26:47 [Apache] Error: Apache shutdown unexpectedly.
|
26
|
+
11:26:47 [Apache] This may be due to a blocked port, missing dependencies,
|
27
|
+
11:26:47 [Apache] improper privileges, a crash, or a shutdown by another method.
|
28
|
+
11:26:47 [Apache] Press the Logs button to view error logs and check
|
29
|
+
11:26:47 [Apache] the Windows Event Viewer for more clues
|
30
|
+
11:26:47 [Apache] If you need more help, copy and post this
|
31
|
+
11:26:47 [Apache] entire log window on the forums
|
32
|
+
```
|
33
|
+
|
34
|
+
不足がございましたらまた指摘してくださるとうれしいです。
|