サーバー,  日記

a2enmod cgid

root@debian:~# a2enmod cgid
bash: a2enmod: コマンドが見つかりません
root@debian:~# apt-get install apache2 libapache2-mod-wsgi
パッケージリストを読み込んでいます… 完了
依存関係ツリーを作成しています
状態情報を読み取っています… 完了
以下の追加パッケージがインストールされます:
apache2-data apache2-utils
以下のパッケージが新たにインストールされます:
apache2 apache2-data apache2-utils libapache2-mod-wsgi
アップグレード: 0 個、新規インストール: 4 個、削除: 0 個、保留: 0 個。
748 kB 中 94.9 kB のアーカイブを取得する必要があります。
この操作後に追加で 2,274 kB のディスク容量が消費されます。
続行しますか? [Y/n] y
取得:1 http://deb.debian.org/debian buster/main amd64 libapache2-mod-wsgi amd64 4.6.5-1 [94.9 kB]
94.9 kB を 0秒 で取得しました (523 kB/s)
以前に未選択のパッケージ apache2-data を選択しています。
(データベースを読み込んでいます … 現在 155852 個のファイルとディレクトリがインストールされています。)
…/apache2-data_2.4.38-3+deb10u3_all.deb を展開する準備をしています …
apache2-data (2.4.38-3+deb10u3) を展開しています…
以前に未選択のパッケージ apache2-utils を選択しています。
…/apache2-utils_2.4.38-3+deb10u3_amd64.deb を展開する準備をしています …
apache2-utils (2.4.38-3+deb10u3) を展開しています…
以前に未選択のパッケージ apache2 を選択しています。
…/apache2_2.4.38-3+deb10u3_amd64.deb を展開する準備をしています …
apache2 (2.4.38-3+deb10u3) を展開しています…
以前に未選択のパッケージ libapache2-mod-wsgi を選択しています。
…/libapache2-mod-wsgi_4.6.5-1_amd64.deb を展開する準備をしています …
libapache2-mod-wsgi (4.6.5-1) を展開しています…
libapache2-mod-wsgi (4.6.5-1) を設定しています …
Package apache2 is not configured yet. Will defer actions by package libapache2-mod-wsgi.
apache2-data (2.4.38-3+deb10u3) を設定しています …
apache2-utils (2.4.38-3+deb10u3) を設定しています …
apache2 (2.4.38-3+deb10u3) を設定しています …
info: Executing deferred ‘a2enmod wsgi’ for package libapache2-mod-wsgi
Enabling module wsgi.
Job for apache2.service failed because the control process exited with error code.
See “systemctl status apache2.service” and “journalctl -xe” for details.
invoke-rc.d: initscript apache2, action “restart” failed.
● apache2.service – The Apache HTTP Server
Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sun 2020-05-31 08:36:30 JST; 9ms ago
Docs: https://httpd.apache.org/docs/2.4/
Process: 13690 ExecStart=/usr/sbin/apachectl start (code=exited, status=1/FAILURE)

5月 31 08:36:30 debian apachectl[13690]: AH00558: apache2: Could not reliably determine the server’s fully qualified domain name, using 127.0.1.1. Set the ‘ServerName’ directive globally to suppress this message
5月 31 08:36:30 debian apachectl[13690]: (98)Address already in use: AH00072: make_sock: could not bind to address [::]:80
5月 31 08:36:30 debian apachectl[13690]: (98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80
5月 31 08:36:30 debian apachectl[13690]: no listening sockets available, shutting down
5月 31 08:36:30 debian apachectl[13690]: AH00015: Unable to open logs
5月 31 08:36:30 debian apachectl[13690]: Action ‘start’ failed.
5月 31 08:36:30 debian apachectl[13690]: The Apache error log may have more information.
5月 31 08:36:30 debian systemd[1]: apache2.service: Control process exited, code=exited, status=1/FAILURE
5月 31 08:36:30 debian systemd[1]: apache2.service: Failed with result ‘exit-code’.
5月 31 08:36:30 debian systemd[1]: Failed to start The Apache HTTP Server.
man-db (2.8.5-2) のトリガを処理しています …
systemd (241-7~deb10u4) のトリガを処理しています …
root@debian:~# a2enmod wsgi
Module wsgi already enabled
root@debian:~# a2enmod cgid
Module cgid already enabled
root@debian:~#

Last Updated on 2022年7月20日6:28 pm by cgishop