いつもお世話になっています。
apacheをSRPMファイルを元にビルドし、test-httpdという別名のサービスとして実行させようとしているのですが、標題のエラーに引っかかり、ここ数日どうにもできず、どう対処すればよいか途方に暮れています。
どなたかお知恵を拝借できれば有難いです。
エラーログ内容
ブラウザからサイトにアクセスしてもエラーで何も表示されず、エラーメッセージを確認したところ下記のエラーが出力されていました。
httpd-error.logの内容
[Tue Apr 19 12:16:23.862092 2022] [socache_dbm:error] [pid 963309:tid 139844270008640] (120021)APR does not understand this error code: AH00804: Cannot create socache DBM file `/var/cache/test-httpd/ssl'
[Tue Apr 19 12:16:23.862214 2022] [ssl:emerg] [pid 963309:tid 139844270008640] AH01874: Could not initialize session cache. Exiting.
[Tue Apr 19 12:16:23.862223 2022] [ssl:emerg] [pid 963309:tid 139844270008640] AH02312: Fatal error initialising mod_ssl, exiting.
[Tue Apr 19 12:16:23.862227 2022] [:emerg] [pid 963309:tid 139844270008640] AH00020: Configuration Failed, exiting
journalctl -xe -u test-httpd実行結果
-- The unit test-httpd.service has entered the 'failed' state with result 'exit>
Apr 19 12:28:09 rhel85 systemd[1]: Starting Customize Web Server>
-- Subject: Unit test-httpd.service has begun start-up
-- Defined-By: systemd
-- Support: https://access.redhat.com/support
-- Unit test-httpd.service has begun starting up.
Apr 19 12:28:09 rhel85 systemd[1]: Started Customize Web Server
-- Subject: Unit test-httpd.service has finished start-up
-- Defined-By: systemd
-- Support: https://access.redhat.com/support
-- Unit test-httpd.service has finished starting up.
-- The start-up result is done.
Apr 19 12:28:09 rhel85 systemd[1]: test-httpd.service: Main process exited, cod>
Apr 19 12:29:39 rhel85 systemd[1]: test-httpd.service: Reload operation timed o>
Apr 19 12:29:39 rhel85 systemd[1]: test-httpd.service: Failed with result 'exit>
-- Subject: Unit failed
-- Defined-By: systemd
-- Support: https://access.redhat.com/support
-- The unit test-httpd.service has entered the 'failed' state with result 'exit>
環境
OS:Red Hat Enterprise Linux 8.5
apache2.4.37-41
seLinux:オフ
詳細
apache2.4.37-41のSRPMを元に、別名のサービスとして起動できるよう、SPECファイル、その他ファイルを修正し、rpmファイルを作成しました。
rpmファイルをインストールし、想定通りのディレクトリに各種ファイルが存在していることを確認。systemctlコマンドで起動、起動時にエラーは特に表示されません。
systemctl status test-httpd.serviceを実行すると画面上は下記の様に緑色になっているため、起動したかに見えますが、最後の行には「httpd.service: Main process exited, code=exited, status=1/FAILURE」とあります。
数分後再度statusを確認すると緑色から赤色のエラー表示に変わっていました。
[socache_dbm:error] [pid 963309:tid 139844270008640] (120021)APR does not understand this error code: AH00804: Cannot create socache DBM file `/var/cache/test-httpd/ssl'
このログを元に、該当のディレクトリを確認しましたが、ディレクトリは存在し、SPECファイルで指定したuser、groupが設定されていました。
属性はdrwx------でしたが、念のためにdrwxrwxrwxに変更しても結果は同じでした。
/usr/lib64/test-httpd/module下に mod_socache_dbm.soが存在することも確認しています。
英語が苦手なため、Google翻訳機能を使って情報を探していますが、なかなかヒントを見つけることができず、ここでお力を拝借できれば助かります。
またLinuxの知識も浅いため、質問内容に不足情報等ありましたらご指摘頂けると有難いです。
どうぞよろしくお願いいたします。
回答1件
あなたの回答
tips
プレビュー