XamppのApacheが起動しない
非常にくだらない原因だったが、忘れないようにメモ。
久しぶりにXamppのApacheを起動しようとしたら以下の様なエラーを吐いて動かなかった。
Error: Apache shutdown unexpectedly. This may be due to a blocked port, missing dependencies, improper privileges, a crash, or a shutdown by another method. Press the Logs button to view error logs and check the Windows Event Viewer for more clues If you need more help, copy and post this entire log window on the forums
エラーに従ってport番号の確認等したけれど、portは使われていない。
Apacheのerror.logにはな~んにも出てない。
試しにDOSから/xampp/apache_start.batをキックしてみたら
Diese Eingabeforderung nicht waehrend des Running beenden Bitte erst bei einem gewollten Shutdown schliessen Please close this command only for Shutdown Apache 2 is starting ... AH00526: Syntax error on line 371 of E:/xampp/apache/conf/httpd.conf: order takes one argument, 'allow,deny', 'deny,allow', or 'mutual-failure' Apache konnte nicht gestartet werden Apache could not be started
ただのSyntax error。
いつかhttpd.confの設定途中で放置していたみたい。
メッセージに従って"deny, allow"となっていたところを"deny,allow"に変更。
無事起動。