/ Last updated : 2025年4月17日
yoshichi
waf onの実行エラー
TOP › Forums › バグ報告と提案(Requests and Feedback) › waf onの実行エラー
waf onの実行エラー
- This topic has 2 replies, 2 voices, and was last updated 1 day, 4 hours ago by
yoshichi.
Viewing 2 reply threads
-
AuthorPosts
-
-
2025年4月17日 at 17:50 #1531
kusanagi waf on
実行時に下記エラーが表示され、onになりません。[root@**********]# kusanagi waf on Last metadata expiration check: 1:32:57 ago on Thu Apr 17 15:50:58 2025. Package kusanagi-httpd24-mod_security-2.4.63-1.el9.x86_64 is already installed. Dependencies resolved. Nothing to do. Complete! Last metadata expiration check: 1:32:58 ago on Thu Apr 17 15:50:58 2025. Package kusanagi-mod_security available, but not installed. No match for argument: kusanagi-mod_security Error: No packages marked for upgrade. Execution failed: dnf -y upgrade kusanagi-mod_security Return code was 1 /etc/opt/kusanagi/httpd/conf.d/0_mod_security.conf: No such file or directory. restart completed. waf completed.
kusanagi status
の結果[root@**********]# kusanagi status Profile: ********** FQDN: ********** Type: wp KUSANAGI Version 9.6.9-1.el9 xserver AlmaLinux 9 *** (active) nginx : nginx127 *** * nginx127@with_httpd.service - The NGINX HTTP and reverse proxy server (with_httpd) Loaded: loaded (/usr/lib/systemd/system/nginx127@.service; enabled; preset: disabled) Active: active (running) since Thu 2025-04-17 17:27:10 JST; 29s ago *** (active) httpd : httpd24 *** * httpd@with_nginx.service - The Apache HTTP Server (with_nginx) Loaded: loaded (/usr/lib/systemd/system/httpd@.service; enabled; preset: disabled) Active: active (running) since Thu 2025-04-17 17:27:10 JST; 29s ago *** (active) php : php83 *** * php-fpm.service - The PHP FastCGI Process Manager Loaded: loaded (/usr/lib/systemd/system/php-fpm.service; enabled; preset: disabled) Active: active (running) since Thu 2025-04-17 17:24:59 JST; 2min 40s ago *** (active) mariadb : mariadb10.11 *** * mariadb.service - MariaDB 10.11.11 database server Loaded: loaded (/usr/lib/systemd/system/mariadb.service; enabled; preset: disabled) Active: active (running) since Thu 2025-04-17 13:45:12 JST; 3h 42min ago *** (inactive) psql : *** *** (inactive) pgpool-II : *** *** python *** Python 3.9.22 *** Cache status *** bcache on fcache on *** WAF *** off *** SELinux *** off status completed.
-
2025年4月17日 at 18:51 #1532
yoshichi さん
報告ありがとうございます。
確認したところ、KUSANAGIのリポジトリの不具合であることが分かりました。kusanagi-mod_security の代わりに kusanagi-httpd24-mod_security がインストールされているのが原因です。
リポジトリの不具合を解消しましたので、kusanagi-httpd24-mod_securityをアンインストールして、再度waf onを実行してみてください。dnf erase kusanagi-httpd24-mod_security
dnf makecache --refresh
kusanagi waf on
-
2025年4月18日 at 09:53 #1534
hideishiさん
ご回答いただきありがとうございます。
ご教示いただいた手順にて無事にwaf onをする事ができました。
-
-
AuthorPosts
Viewing 2 reply threads
- You must be logged in to reply to this topic.