• 締切済み

XAMPP の Apache がエラーになります

Web初心者です。 ホームページ作成してみようと、以前ダウンロードした XAMPP をアップロードするため、 アンインストールし、新規インストールしました。 しかし、ネットで調べ試してみても、 Apache がエラーになってしまい、先に進めません。 Apache の Stat ボタンを押すと、以下の文章が出てきます。 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 エラーログとチェックを表示するログのボタンを押します、は、どこなのでしょうか? どうか開始出来ますよう、教えて下さい。 どうぞよろしくお願いします。

みんなの回答

noname#247307
noname#247307
回答No.3

>PID80はApache HTTP Server、443はmysqld.exeでした。 それは、XAMPPのApacheですか? XAMPPをアンインストールしても表示されますか? とすると、アンインストールしたXAMPPとは別にApacheが入っている、ということになりますが……。 もしXAMPPのApacheということなら、既にApacheは起動しているわけですから(おそらくサービスとして)、XAMPPのコントロールパネルで見れば起動になっているはずですね。そのへん確認してみましょう。

motimotin
質問者

お礼

XAMPPをアンインストールした時は、表示されませんでした。インストールしてXAMPP起動し、Apacheのstartボタンをクリックした際に表示となりました。 xampp-control.exeのプロパティで「管理者としてこのプログラムを実行する」にチェックをしていなかったので、チェックを入れたところ、無事にApacheをstartをすることが出来ました。 回答をいただき、ほんとうにありがとうございました<(_ _*)>

noname#247307
noname#247307
回答No.2

原因はいろいろ考えられますが、まぁ一番多いのは、80番と443番のポートが既に使われているために起動できない、ということでしょう。このへんを最初に疑ったほうがよいです。 例えば、Skypeが起動している。Windows 10にアップデートして知らないうちにIISがインストールされて動いている。そうしたプログラムがあれば、それを終了することでApacheが起動できるようになります。 まず、コマンドプロンプトを起動し、「netstat -oan」と実行して下さい。これでアクティブな接続の一覧リストが表示されます。この中で、「アドレス:80」というようになっているものがあれば、それが80番ポートを使っています。そのPID(最後に書いてある数字)を確認します。 それからタスクマネージャを起動し、「サービス」タブに切り替えて、先ほど調べたPIDのサービスを探します。見つかったら、それを停止します。 80/443のポートを使っているものがなかったら、別の原因でしょう。この場合は、XAMPPの再インストールぐらいしか思いつきません。

motimotin
質問者

お礼

Skypeがいつの間にか起動していて、なんど終了してみてもしつこく起動してしまう為、アンインストールの上、削除してみました。 PID80はApache HTTP Server、443はmysqld.exeでした。 XAMPPの再インストールを4~5回ほど行いましたが、結果は同じでした。

  • tkf-
  • ベストアンサー率58% (821/1396)
回答No.1

XAMPP Control Panel のApacheのところに、[Logs]ボタンがあり、Apache (errorlog)を選択すると、エラーログが観れますよ。 あと、Windowsの[コントロールパネル] - [管理ツール] - [イベントログ]にも、何かヒントがあるかもしれません、とありますね。

motimotin
質問者

お礼

Apache (errorlog)を選択するして、エラーログは見てみましたが、良くわかりませんでした。 コントロールパネルの管理ツールを見てみたいと思います。 ありがとうございます。

関連するQ&A

  • XAMPP Apache 立ち上がらない…

    XAMPPを再インストールしたのですが、Apacheが起動できなくなりました。 現在、システムの復元ポイントへ巻き戻してはいるのですが、やはり起動できません。 XAMPPのコントロールパネルに表示されたエラー内容は以下です。 17:19:08 [Apache] Status change detected: stopped 17:19:08 [Apache] Error: Apache shutdown unexpectedly. 17:19:08 [Apache] This may be due to a blocked port, missing dependencies, 17:19:08 [Apache] improper privileges, a crash, or a shutdown by another method. 17:19:08 [Apache] Press the Logs button to view error logs and check 17:19:08 [Apache] the Windows Event Viewer for more clues 17:19:08 [Apache] If you need more help, copy and post this 17:19:08 [Apache] entire log window on the forums 考えられる原因はなんでしょうか? ちなみにMySQLは起動できています。 よろしくお願いします。

  • XAMPP エラーメッセージ

    初めまして、 XAMPP win32-1.8.1-VC9-installer.exeをダウンロードして、 XAMPPのコントロールパネルを開いた途端に、パネルの下の操作状況が文字で表示されるところに、 次のようなエラーメッセージが赤文字で Error: Apache shutdown unexpectedly. This may be due to a blocked port, missing dependencies, improper privileges, a crash,or a shutdown by another method. Check the"/xampp/apache/logs/error.log"file and the Windows Event Viewer for more clues と表示され、"start" "stop"ボタンがまったく反応しません! XAMPPのファイルなどは一切クリックとか開いたり、Serviceボタンもクリックしていません。 パネルを開いたら、いきなり上記の赤文字が記述されたパネルが出てきてビックリ!!しました。  英文はまったくわからないし…、ネットワークもまた然り…なもんですから、 これからPHPとMySQLを学習するつもりなのですが、この状況の解決策をどなたかお教えください。 OSはWindows7です。よろしくお願いします。  

  • WindowsXPのパソコンでXAMPP

    こんにちは。 1つ教えてください。 WindowsXPのパソコンでXAMPPを使用したく MergeDoc Projectのサイトから Pleiades日本語化プラグインのZIP FullEdition PHPを ダウンロードしました。Eclipse 4.2 Junoで、ダウンロードファイル名は pleiades-e4.2-php-32bit-jre_20130303.zipとなります。 解凍し、pleiadesフォルダのxampp内のsetup_xampp.batを実行し xampp-control.exeを実行しXAMPP Control Panel v3.1.0 Beta6が 起動しますが、MySQLはStartが出来ますが、ApacheのStartをクリックすると Error: Apache shutdown unexpectedly. This may be due to a blocked port, missing dependencies, improper privileges, a crash, or a shutdown by another method. Check the "/xampp/apache/logs/error.log" file and the Windows Event Viewer for more clues とエラーになってしまいます。 パソコンを入替え、どうにかXAMPPを起動できるようにしたいのですが XPではEclipse 4.2 Junoは実行できないのでしょうか。 またApacheとMySQLを起動したいのですが、Apacheのエラーの対応を わかる方おられましたら教えて頂けないでしょうか。 どうぞよろしくお願いします。

    • ベストアンサー
    • PHP
  • Apache設定変更後、MySQLが動きません。

    XAMPPのv3.1.03.1.0をインストールした直後、Apacheがまず作動しなくなりました。 使用するポートを80→8080に変更したところ、なんとか正常にもどったのですが、今度は入れ替わるようにMySQLがスタートしなくなってしまいました。 再びポートを調べましたが、3306が他で使用されている様子はないため、Apacheの設定を上記のように変更したことと関係があるのでしょうか? ■PCの状況 ・「Windwsファイヤーオール」では、MySqldは許可された状態。 ・「Skype」はアンインストール済み。「IIS」も切っている。 ・過去にMySQLもXAMPPもインストールしたことはない。今回初。 ・3306を他ポートが使用している様子はない。 Apacheの設定を変更したら、連動して必要な動作があるのでしょうか? 勉強をはじめたばかりの初心者なもので、基本的なことも分からずすみません。 また、ほかの方のアドバイスを拝見しているとMySQLを再インストールする方法もあるようですが、その際はまたApacheのポート変更も必要なのでしょうか…? お手数ですがご教授いただけると助かります。 参考までに…コントロールパネルには下記のようなエラーメッセージが出ています。 2:03:51 [mysql] Error: MySQL shutdown unexpectedly. 2:03:51 [mysql] This may be due to a blocked port, missing dependencies, 2:03:51 [mysql] improper privileges, a crash, or a shutdown by another method. 2:03:51 [mysql] Check the "/xampp/mysql/data/mysql_error.log" file 2:03:51 [mysql] and the Windows Event Viewer for more clues

  • fedora core1にapache

    apacheをインストール後、ブラウザでテストすると port80 だけ動きません。 cat /opt/apache/logs/error_log | more をチェックすると すでに80は使われているみたいなのですが、 [Fri May 21 19:08:46 2004] [crit] (98)Address already in use: make_sock: could not bind to port 80 どうしたらいいでしょうか? 改善策をアドバイスお願いします。

  • CentOS + apache で403エラー

    CentOS + apache で403エラー CentOS5.4とapache2.2でwebサーバを構成中ですが、 全てのページで403エラーが返ってきます。 いろいろ試してみましたが、 ルートディレクトリの/var/www/htmlを作成し直した際に、 何故か一度だけ動きました。理由は不明です。 その後OSを再起動した後は また見られない状態にもどっています。 どなたか分かる方、アドバイスをお願いします。 以下の事は試してみました。 ==================================================== 1. apache,osの再起動。 2. iptables停止 3. ブラウザ表示 > You don't have permission to access / on this server. /etc/httpd/logs/error_log 表示 > Permission denied: /var/www/html/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable だったので、ルートディレクトリ以下全てのパーミッションを777に、 それまではディレクトリ755、ファイル644 4. /var/www/htmlから、.htaccessを削除、テスト用index.htmlを作成 ブラウザ表示 > You don't have permission to access / on this server. > Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request. error_log > Permission denied: access to /error/noindex.html denied /var/www/error/noindex.htmlのパーミッションは755です。 ======================================================= 以上です。宜しくお願いします。

  • XAMPPでApacheが起動できない

    WordPressについて勉強し始めたばかりの初心者で、 自分(ローカル)の環境でセットアップをしようとしています。 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. エラーログは下記の通り; [Mon May 12 11:03:06.845172 2014] [ssl:warn] [pid 4612:tid 264] AH01909: RSA certificate configured for www.example.com:443 does NOT include an ID which matches the server name [Mon May 12 11:03:07.500373 2014] [ssl:warn] [pid 4612:tid 264] AH01909: RSA certificate configured for www.example.com:443 does NOT include an ID which matches the server name [Mon May 12 11:03:07.609573 2014] [mpm_winnt:notice] [pid 4612:tid 264] AH00455: Apache/2.4.7 (Win32) OpenSSL/1.0.1e PHP/5.5.9 configured -- resuming normal operations [Mon May 12 11:03:07.609573 2014] [mpm_winnt:notice] [pid 4612:tid 264] AH00456: Apache Lounge VC11 Server built: Nov 21 2013 20:13:01 [Mon May 12 11:03:07.609573 2014] [core:notice] [pid 4612:tid 264] AH00094: Command line: 'C:\\xampp\\apache\\bin\\httpd.exe -d C:/xampp/apache' [Mon May 12 11:03:07.734373 2014] [mpm_winnt:notice] [pid 4612:tid 264] AH00418: Parent: Created child process 6872 [Mon May 12 11:03:09.590776 2014] [ssl:warn] [pid 6872:tid 276] AH01909: RSA certificate configured for www.example.com:443 does NOT include an ID which matches the server name [Mon May 12 11:03:10.199177 2014] [ssl:warn] [pid 6872:tid 276] AH01909: RSA certificate configured for www.example.com:443 does NOT include an ID which matches the server name [Mon May 12 11:03:10.308378 2014] [mpm_winnt:notice] [pid 6872:tid 276] AH00354: Child: Starting 150 worker threads. どなたか解決方法をご教授いただけないでしょうか? よろしくお願いします。

  • Apacheが突然停止した

    OS:windows2003 Oracle:9i Apache:apache_2.0.43-win32-x86-no_ssl.exe イベントビューアのエラー内容 ・ソース内容:Apache Sverice ・イベント:3299 ・説明 THe Apache service named d:\oracle\pra92\Apache\Apache\apache.exe reported the following error >>>曜日 月 日 hh:mm:ss 2010 [warn] pid file d:\oracle\pra92\Apache\Apache\logs\httpd.pid overwritten -- Unclean shutdown of previous Apache run? <<< before the error.log file could be opened. More information may be available in the error.log file.

  • Apache2+JK2でjniを使用するとサーバーエラー(500)

    Tomcat4.1.24+Apache2+JK2を使ってPort 80でも JSP/Servletにアクセス出来るようにはなったのです が、JNIを使った通信がなかなかうまくいきません。例 えば、http://localhost/roller/にアクセスすると、 500 Internal Server Errorが返ってきます。どのよう にしたら解決できるのでしょうか?お願いします。 #workers2.properties [channel.jni:jni] [config:] TOMCAT_HOME=C:/Program Files/Apache Group/Tomcat 4.1 # Java バーチャルマシンのパラメータの定義 [vm:] info=Parameters used to load a JVM in the server process OPT=-Djava.class.path=${TOMCAT_HOME}/lib/tomcat-jni.jar;${TOMCAT_HOME}/lib/tomcat.jar OPT=-Dtomcat.home=${TOMCAT_HOME} OPT=-Dcatalina.home=${TOMCAT_HOME} OPT=-Xmx128M # JNI ワーカの起動時ハンドラ [worker.jni:onStartup] info=Command to be executed by the VM on startup. This one will start tomcat. class=org/apache/jk/apr/TomcatStarter ARG=start stdout=${serverRoot}/logs/stdout.log stderr=${serverRoot}/logs/stderr.log # JNI ワーカの終了時ハンドラ [worker.jni:onShutdown] info=Command to be executed by the VM on shutdown. This one will stop tomcat. class=org/apache/jk/apr/TomcatStarter ARG=stop # Tomcat の examples Web アプリケーションを Web サーバ URI 空間にマップ(関連付け) [uri:/examples/*] [uri:/roller/*] ====Apacheのerror.log========== [[Tue Jul 22 16:02:32 2003] [error] mod_jk.handler() Error connecting to tomcat 120000

  • apache2.0.48のインストール中にエラー

    WINDOWS XPにapache2.0.48をインストールしようとしているんですが、次のエラーが出てしまいます。 (OS 10048)通常、各ソケット アドレスに対してプロトコル、ネットワーク アドレス、ま たはポートのどれか 1 つのみを使用できます。 : make_sock: could not bind to addr ess 0.0.0.0:80 no listening sockets available, shutting down Unable to open logs Note the errors or messages above, and press the <ESC> key to exit. 10... ---------------------------- [Mon Oct 03 15:46:52 2005] [error] (OS 2)指定されたファイルが見つかりません。 : No installed service named "Apache2". Note the errors or messages above, and press the <ESC> key to exit. 23... どのようにすれば解決できるのでしょうか・・。知っている方がいたら教えてください。お願いします。