誤ってプライマリWebサーバーにPiholeをインストールした後にアンインストールしましたが、Apacheは起動しません。

誤ってプライマリWebサーバーにPiholeをインストールした後にアンインストールしましたが、Apacheは起動しません。

今日は何も考えずに愚かなことをしました。 Ubuntu Server LTS 18.04を実行しているヘッドレスホームサーバーがあります。

私もApacheを運営しており、すべての文書を保持するWikiなど、ホームネットワーク内でのみアクセスできるいくつかのWebサイトを運営しています。

Ubuntu仮想マシンにログインしてPyholeインストールスクリプトを実行したと思いました。作業が終わったら、間違ったサーバーにいることに気づき、それをホームサーバーにインストールしました。

私のホームサーバーのIPが192.168.1.7であるとしましょう。

IPを指すと、Pyholeのロゴと管理パネルのリンクが表示されます。

ロードしようとすると192.168.1.7/wiki(Wikiページにアクセスする方法)、Pyholeロゴが再び表示され、管理パネルへのリンクが表示されます。

それからピホールを取り除くことにしました。

今すぐロードしようとすると、次のように192.168.1.7/wikiなります。

404 見つかりません

apache2を再起動しようとしましたが、/etc/init.d/apache2 restart次のエラーメッセージが表示されました。

[....] Restarting apache2 (via systemctl): apache2.serviceJob for apache2.service failed because the control process exited with error code.
See "systemctl status apache2.service" and "journalctl -xe" for details.
 failed!

apache sudo systemctl status apache2.service状態を確認しようとすると、次のように表示されます。

● apache2.service - The Apache HTTP Server
   Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
  Drop-In: /lib/systemd/system/apache2.service.d
           └─apache2-systemd.conf
   Active: failed (Result: exit-code) since Fri 2020-01-10 12:09:51 CET; 1min 50s ago
  Process: 1881 ExecStart=/usr/sbin/apachectl start (code=exited, status=1/FAILURE)

Jan 10 12:09:51 server apachectl[1881]: (98)Address already in use: AH00072: make_sock: could not bind to address [::]:80
Jan 10 12:09:51 server apachectl[1881]: (98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80
Jan 10 12:09:51 server apachectl[1881]: no listening sockets available, shutting down
Jan 10 12:09:51 server apachectl[1881]: AH00015: Unable to open logs
Jan 10 12:09:51 server apachectl[1881]: Action 'start' failed.
Jan 10 12:09:51 server apachectl[1881]: The Apache error log may have more information.
Jan 10 12:09:51 server systemd[1]: apache2.service: Control process exited, code=exited status=1
Jan 10 12:09:51 server systemd[1]: apache2.service: Failed with result 'exit-code'.
Jan 10 12:09:51 server systemd[1]: Failed to start The Apache HTTP Server.

/var/log/apache2/error.log現在空です。

Webサーバーをバックアップして実行する方法がわかりません。

ベストアンサー1

おすすめ記事