wolf@wolf-HP-ProBook-430-G3:~$ sudo apt-get install --no-install-recommends php-openssl
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package php-openssl
尝试了所有安装命令,包括在源代码中添加新的SSL存储库。列表文件
为什么你会认为有一个单独的包?SSL支持嵌入php中。
php -r 'phpinfo();' | grep -i ssl
Registered Stream Socket Transports => tcp, udp, unix, udg, ssl, tls, tlsv1.0, tlsv1.1, tlsv1.2, tlsv1.3
openssl
OpenSSL support => enabled
OpenSSL Library Version => OpenSSL 1.1.1f 31 Mar 2020
OpenSSL Header Version => OpenSSL 1.1.1f 31 Mar 2020
Openssl default config => /usr/lib/ssl/openssl.cnf
openssl.cafile => no value => no value
openssl.capath => no value => no value
Native OpenSSL support => enabled
这里是我的系统上安装的软件包列表:
aptitude search ~iphp
i A libapache2-mod-php7.4 - server-side, HTML-embedded scripting language (Apach
i A php-common - Common files for PHP packages
i php7.4 - server-side, HTML-embedded scripting language (metap
i php7.4-cli - command-line interpreter for the PHP scripting langu
i A php7.4-common - documentation, examples and common module for PHP
i A php7.4-json - JSON module for PHP
i A php7.4-opcache - Zend OpCache module for PHP
i A php7.4-readline - readline module for PHP