やりたいこと
phpバージョン8でxammpを使用できるようにしたい
phpのバージョンを変更するにあたっておこなったこと
1.新しいphp(ver8)をzipでダウンロード (VS16 x86 Thread Safe (2022-Aug-02 14:47:44))
2.古いphpのバックアップを取った(ファイル名:php → php_old_bk )に変更
3.新しいphpをxammpフォルダ内に追加
4.新しいphpのフォルダ内に存在する php.ini-production を php.iniに名前を変更
5.apacheのphpの設定を編集した (php7と書かれているものをphp8に変更)
6.apacheの再起動をしてphpのバージョンを確認(8になっていた)
※6.でバージョンは上手く変更できていたが、起動をするとエラーが表示されてStartできない。
上記のエラーをなくすために行ったこと
・port番号の443あるいは80があるかどうかチェックした 結果なかった。
・apacheのLogsからerror.logに行き、本日出力された内容をチェックし対処を行った。
[Wed Aug 03 10:14:06.918027 2022] [ssl:warn] [pid 16648:tid 428] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name [Wed Aug 03 10:14:06.939509 2022] [core:warn] [pid 16648:tid 428] AH00098: pid file C:/xampp/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run? [Wed Aug 03 10:14:06.939509 2022] [ssl:warn] [pid 16648:tid 428] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name [Wed Aug 03 10:14:07.041783 2022] [mpm_winnt:notice] [pid 16648:tid 428] AH00455: Apache/2.4.53 (Win64) OpenSSL/1.1.1n PHP/7.4.29 configured -- resuming normal operations [Wed Aug 03 10:14:07.041783 2022] [mpm_winnt:notice] [pid 16648:tid 428] AH00456: Apache Lounge VC15 Server built: Mar 16 2022 15:48:38 [Wed Aug 03 10:14:07.041783 2022] [core:notice] [pid 16648:tid 428] AH00094: Command line: 'c:\\xampp\\apache\\bin\\httpd.exe -d C:/xampp/apache' [Wed Aug 03 10:14:07.043383 2022] [mpm_winnt:notice] [pid 16648:tid 428] AH00418: Parent: Created child process 10620 [Wed Aug 03 10:14:07.216170 2022] [ssl:warn] [pid 10620:tid 420] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name [Wed Aug 03 10:14:07.249307 2022] [ssl:warn] [pid 10620:tid 420] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name [Wed Aug 03 10:14:07.276409 2022] [mpm_winnt:notice] [pid 10620:tid 420] AH00354: Child: Starting 150 worker threads.
対処を行ったエラー
- [ssl:warn] [pid 10620:tid 420] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
→ httpd-sslの <VirtualHost _default_:443> 内の ServerNameを ServerName localhostに変更
※ServerName localhost:443も試しました。
2.[core:warn] [pid 16648:tid 428] AH00098: pid file C:/xampp/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
→ log/error.log の中身を削除
どなたかお時間のある方、ご回答いただけると幸甚です。


