21

「a2ensite」「a2dissite」が機能しない

エコー:

エラー: サイト XXXXXX は存在しません!

サイトで利用可能なフォルダーに存在することを誓います。

ボタンを入力a2ensiteしてダブルクリックすると、ディレクトリが表示されます。Tab/root

a2en/dissite スクリプトに問題があるはずです。

どうすれば仕事に戻ることができますか?

===================== エラー ログの最後の行は次のとおりです。

[Sun Aug 04 22:59:31.406192 2013] [mpm_event:notice] [pid 5378:tid 140459282536256] AH00489: Apache/2.4.6 (Ubuntu) configured -- resuming normal operations
[Sun Aug 04 22:59:31.406433 2013] [core:notice] [pid 5378:tid 140459282536256] AH00094: Command line: '/usr/sbin/apache2'
[Sun Aug 04 23:09:44.648984 2013] [mpm_event:notice] [pid 5378:tid 140459282536256] AH00491: caught SIGTERM, shutting down
[Sun Aug 04 23:09:46.001182 2013] [mpm_event:notice] [pid 5692:tid 139671144335168] AH00489: Apache/2.4.6 (Ubuntu) configured -- resuming normal operations
[Sun Aug 04 23:09:46.001490 2013] [core:notice] [pid 5692:tid 139671144335168] AH00094: Command line: '/usr/sbin/apache2'
4

2 に答える 2

34

サイト構成ファイルの名前を に変更するの/etc/apache2/sites-available/**.conf役立ちました。

たとえば、サイトを有効にする場合dummy.com、構成ファイルの名前は にする必要がありますdummy.com.conf

于 2013-08-05T09:42:14.067 に答える
14

別の解決策は、この行を/etc/apache2/apache2.conf次のように変更することです。

IncludeOptional sites-enabled/*.conf

に:

IncludeOptional sites-enabled/*
于 2013-10-30T13:15:00.020 に答える