TOP › Forums › バグ報告と提案(Requests and Feedback) › KUSANAGI 9のPHP 8.4でsodium拡張が利用できない
- This topic has 6 replies, 2 voices, and was last updated 2 weeks, 5 days ago by
di-rt-admin.
-
AuthorPosts
-
-
2026年11月16日 at 13:58 #1741
di-rt-admin
Participantお世話になっております。
KUSANAGI 9のPHP 8.4におけるsodium拡張モジュールについて、仕様を確認させてください。PHP 8.2.35からPHP 8.4.27にアップデートしたところ、sodium拡張が利用できない状態になっていることを確認しました。
PHPのビルドオプションを比較したところ、PHP 8.2.35では –with-sodium が指定されていましたが、PHP 8.4.27では指定がありませんでした。
複数のKUSANAGI 9環境で同様の状態を確認しています。WordPressのプラグインでもsodiumを使用するものがあるため、以下についてご教示いただけますでしょうか。
1. KUSANAGIのPHP 8.4でsodium拡張が利用できないのは仕様でしょうか。それともパッケージの不具合でしょうか。
2. 今後、PHP 8.4でsodium拡張を利用できるようにする修正予定はありますでしょうか。
3. 現時点で、KUSANAGIの公式パッケージを使用してsodium拡張を有効にする方法はありますでしょうか。よろしくお願いいたします。
-
2026年11月16日 at 18:38 #1744
hideishi
Participantdi-rt-admin様
ご指摘ありがとうございます。
KUSANAGI PHP 8.4の不具合でした。
sodium拡張を有効にして再リリースしますので、お待ちください。 -
2026年11月16日 at 19:15 #1745
di-rt-admin
Participantご回答ありがとうございます。
PHP 8.4の不具合とのこと、承知いたしました。
修正版のリリースをお待ちしております。なお、PHP 8.3についても、sodium拡張に関するパッケージ構成が同様の状態に見受けられます。
PHP 8.3についても同様の問題がないか、あわせてご確認いただけますでしょうか。よろしくお願いいたします。
-
2026年11月16日 at 19:35 #1746
hideishi
Participantdi-rt-admin様
KUSANAGIのバージョンとPHPのバージョン、kusanagi-php83のバージョン (rpm -q kusanagi-php83) の結果を貼っていただけますか。
手元のPHP 8.3ではsodiumは有効になっています。
# php -v
PHP 8.3.36 (cli) (built: Oct 24 2026 17:24:02) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.3.36, Copyright (c) Zend Technologies
with Zend OPcache v8.3.36, Copyright (c), by Zend Technologies
# php -i | grep sodium
Configure Command => ‘./configure’ ‘PKG_CONFIG_PATH=/opt/rh/gcc-toolset-14/root/usr/lib64/pkgconfig:/opt/kusanagi/lib64/pkgconfig:/opt/kusanagi/openssl/lib64/pkgconfig::/opt/kusanagi/php-8.3/lib64/pkgconfig:/opt/kusanagi/php-8.3/share/pkgconfig:/usr/lib64/pkgconfig’ ‘–prefix=/opt/kusanagi/php-8.3’ ‘–sysconfdir=/etc/opt/kusanagi’ ‘–datadir=/opt/kusanagi/php-8.3/share’ ‘–libdir=/opt/kusanagi/php-8.3/lib64’ ‘–with-libdir=lib64’ ‘–localstatedir=/var/opt/kusanagi’ ‘–mandir=/opt/kusanagi/php-8.3/share/man’ ‘–with-config-file-path=/etc/opt/kusanagi/php.d’ ‘–with-config-file-scan-dir=/etc/opt/kusanagi/php.d/extensions’ ‘–with-pear=/opt/kusanagi/php-8.3/lib64/php’ ‘–enable-dtrace’ ‘–enable-fpm’ ‘–with-fpm-group=www’ ‘–with-fpm-user=httpd’ ‘–with-fpm-selinux’ ‘–enable-bcmath’ ‘–enable-calendar’ ‘–enable-embed’ ‘–enable-exif’ ‘–enable-ftp’ ‘–enable-gd’ ‘–enable-intl=shared’ ‘–enable-mbregex’ ‘–enable-mbstring’ ‘–enable-opcache’ ‘–enable-pcntl’ ‘–enable-re2c-cgoto’ ‘–enable-soap’ ‘–enable-sockets’ ‘–enable-sysvsem’ ‘–enable-sysvshm’ ‘–with-bz2’ ‘–with-curl=/opt/kusanagi’ ‘–with-external-gd’ ‘–with-external-pcre’ ‘–with-ffi’ ‘–with-gettext’ ‘–with-gmp’ ‘–with-imap’ ‘–with-imap-ssl’ ‘–with-kerberos=/opt/kusanagi’ ‘–with-ldap-sasl’ ‘–with-ldap=/opt/kusanagi’ ‘–with-password-argon2’ ‘–with-mhash’ ‘–with-mysqli’ ‘–with-openssl=/opt/kusanagi/openssl’ ‘–with-pcre-jit’ ‘–with-pic’ ‘–with-pdo-mysql’ ‘–with-pdo-pgsql’ ‘–with-pgsql’ ‘–with-readline’ ‘–with-sodiu’ ‘–with-tidy’ ‘–with-xsl’ ‘–with-zip’ ‘–with-zlib’ ‘–with-zlib-dir’
sodium
sodium support => enabled
libsodium headers version => 1.0.18
libsodium library version => 1.0.18
# php -i | grep configure
Configure Command => ‘./configure’ ‘PKG_CONFIG_PATH=/opt/rh/gcc-toolset-14/root/usr/lib64/pkgconfig:/opt/kusanagi/lib64/pkgconfig:/opt/kusanagi/openssl/lib64/pkgconfig::/opt/kusanagi/php-8.3/lib64/pkgconfig:/opt/kusanagi/php-8.3/share/pkgconfig:/usr/lib64/pkgconfig’ ‘–prefix=/opt/kusanagi/php-8.3’ ‘–sysconfdir=/etc/opt/kusanagi’ ‘–datadir=/opt/kusanagi/php-8.3/share’ ‘–libdir=/opt/kusanagi/php-8.3/lib64’ ‘–with-libdir=lib64’ ‘–localstatedir=/var/opt/kusanagi’ ‘–mandir=/opt/kusanagi/php-8.3/share/man’ ‘–with-config-file-path=/etc/opt/kusanagi/php.d’ ‘–with-config-file-scan-dir=/etc/opt/kusanagi/php.d/extensions’ ‘–with-pear=/opt/kusanagi/php-8.3/lib64/php’ ‘–enable-dtrace’ ‘–enable-fpm’ ‘–with-fpm-group=www’ ‘–with-fpm-user=httpd’ ‘–with-fpm-selinux’ ‘–enable-bcmath’ ‘–enable-calendar’ ‘–enable-embed’ ‘–enable-exif’ ‘–enable-ftp’ ‘–enable-gd’ ‘–enable-intl=shared’ ‘–enable-mbregex’ ‘–enable-mbstring’ ‘–enable-opcache’ ‘–enable-pcntl’ ‘–enable-re2c-cgoto’ ‘–enable-soap’ ‘–enable-sockets’ ‘–enable-sysvsem’ ‘–enable-sysvshm’ ‘–with-bz2’ ‘–with-curl=/opt/kusanagi’ ‘–with-external-gd’ ‘–with-external-pcre’ ‘–with-ffi’ ‘–with-gettext’ ‘–with-gmp’ ‘–with-imap’ ‘–with-imap-ssl’ ‘–with-kerberos=/opt/kusanagi’ ‘–with-ldap-sasl’ ‘–with-ldap=/opt/kusanagi’ ‘–with-password-argon2’ ‘–with-mhash’ ‘–with-mysqli’ ‘–with-openssl=/opt/kusanagi/openssl’ ‘–with-pcre-jit’ ‘–with-pic’ ‘–with-pdo-mysql’ ‘–with-pdo-pgsql’ ‘–with-pgsql’ ‘–with-readline’ ‘–with-sodium’ ‘–with-tidy’ ‘–with-xsl’ ‘–with-zip’ ‘–with-zlib’ ‘–with-zlib-dir’ -
2026年11月16日 at 20:03 #1747
di-rt-admin
Participantご確認ありがとうございます。
PHP 8.3については、PHP 8.4でsodiumが利用できないことを確認した際に、代替バージョンとして導入を検討し、事前にパッケージ情報を調査したものでした。
具体的には、KUSANAGIリポジトリの
kusanagi-php83-8.3.36-2.el9に対して、以下のコマンドでsodium関連ファイルの有無を確認しました。dnf repoquery --latest-limit=1 --list kusanagi-php83 | grep -i sodiumその結果、該当するファイルが見つからなかったため、PHP 8.3でもsodiumが利用できない可能性があると考えておりました。
ただし、PHP 8.3を実際にインストールして確認したわけではなく、sodiumがPHP本体に組み込まれている場合、この方法では有効・無効を判断できないことを理解しました。
PHP 8.3.36ではsodiumが有効とのこと、承知いたしました。ご確認いただきありがとうございました。お手数をお掛けいたしました。
PHP 8.4の修正版リリースをお待ちしております。よろしくお願いいたします。
-
2026年11月17日 at 09:18 #1748
hideishi
Participantdi-rt-admin様
kusanagi-php84 8.4.27-3 をリリースしました。
ご確認ください。この度はご指摘いただきまして、ありがとうございました。
いただいたフィードバックは迅速に反映して参りますので、
今後ともKUSANAGIをどうぞよろしくお願いいたします。 -
2026年11月17日 at 13:07 #1750
di-rt-admin
Participantご対応いただきありがとうございます。
リリースいただいた kusanagi-php84 8.4.27-3 を、KUSANAGI 9環境の複数台のサーバーに適用し、いずれもsodium拡張が正常に有効化されることを確認しました。
また、PHP-FPMの再起動後も、WordPressの動作やサイトのHTTP応答に、今回の更新に起因する問題は確認されておりません。
迅速にご対応いただき、ありがとうございました。
引き続き、他のサーバーにも順次適用していく予定です。
今後ともよろしくお願いいたします。
-
-
AuthorPosts
- You must be logged in to reply to this topic.