如何安装php-sodium
军哥,我的系统 是centos 8, php7.4, 请问如何增加php-sodium补充内容 (2021-3-1 22:34):
This is not implemented, as it is not possible to implement Argon2i with ac
ceptable performance in pure-PHP . 我安装magento2.4.2时遇到这个问题。 已经通过pecl方式安装扩展成功了。 最简单的方法直接先安装好依赖包libsodium,rhel系先安装epel再 yum install libsodium-devel debian系的就 apt-get install libsodium-dev
最后 pecl install libsodium
也可以安装常见问题里的说明安装php模块 root@debian:~# pecl install libsodium
WARNING: channel "pecl.php.net" has updated its protocols, use "pecl channel-upd ate pecl.php.net" to update
PHP Fatal error:Uncaught Error: Call to undefined function popen() in /usr/loc al/php/lib/php/OS/Guess.php:254
Stack trace:
#0 /usr/local/php/lib/php/OS/Guess.php(152): OS_Guess->_detectGlibcVersion()
#1 /usr/local/php/lib/php/OS/Guess.php(107): OS_Guess->parseSignature()
#2 /usr/local/php/lib/php/PEAR/Dependency2.php(109): OS_Guess->__construct()
#3 /usr/local/php/lib/php/PEAR/Downloader.php(277): PEAR_Dependency2->__construc t()
#4 /usr/local/php/lib/php/PEAR/Downloader.php(556): PEAR_Downloader->getDependen cy2Object()
#5 /usr/local/php/lib/php/PEAR/Downloader.php(458): PEAR_Downloader->analyzeDepe ndencies()
#6 /usr/local/php/lib/php/PEAR/Command/Install.php(671): PEAR_Downloader->downlo ad()
#7 /usr/local/php/lib/php/PEAR/Command/Common.php(270): PEAR_Command_Install->do Install()
#8 /usr/local/php/lib/php/pearcmd.php(317): PEAR_Command_Common->run()
#9 /usr/local/php/lib/php/peclcmd.php(32): require_once('...')
#10 {main}
thrown in /usr/local/php/lib/php/OS/Guess.php on line 254
root@debian:~# /etc/init.d/php-fpm restart
Gracefully shutting down php-fpm . done
Starting php-fpm NOTICE: PHP message: PHP Warning:PHP S tartup: Unable to load dynamic library 'sodium' (tried: /usr/local/php/lib/php/e xtensions/no-debug-non-zts-20200930/sodium (/usr/local/php/lib/php/extensions/no -debug-non-zts-20200930/sodium: cannot open shared object file: No such file or directory), /usr/local/php/lib/php/extensions/no-debug-non-zts-20200930/sodium.s o (/usr/local/php/lib/php/extensions/no-debug-non-zts-20200930/sodium.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
done
root@debian:~# ^C
安装不了, apt-get install libsodium-dev,Debian10.9 erer 发表于 2021-6-5 18:15
root@debian:~# pecl install libsodium
WARNING: channel "pecl.php.net" has updated its protocols, use ...
popen、readlink、exec 函数从php禁用函数里删除
apt-get install libsodium-dev 肯定是不会有问题的,不清楚目前什么错误信息没法说
页:
[1]