哈希

哈希

当我执行:

sudo apt-get install php7.0-mhash php7.0-openssl

我得到:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package php7.0-mhash
E: Couldn't find any package by regex 'php7.0-mhash'
E: Unable to locate package php7.0-openssl
E: Couldn't find any package by regex 'php7.0-openssl'

有什么建议吗?

答案1

您必须先实际检查包裹。

sudo apt-cache search php7.0- |more

哈希

apt-cache search php7.0 | more
libapache2-mod-php7.0 - server-side, HTML-embedded scripting language (Apache 2 module)
php-all-dev - package depending on all supported PHP development packages
php7.0 - server-side, HTML-embedded scripting language (metapackage)
php7.0-cgi - server-side, HTML-embedded scripting language (CGI binary)
php7.0-cli - command-line interpreter for the PHP scripting language
php7.0-common - documentation, examples and common module for PHP
php7.0-curl - CURL module for PHP
php7.0-dev - Files for PHP7.0 module development
php7.0-gd - GD module for PHP
php7.0-gmp - GMP module for PHP
php7.0-json - JSON module for PHP
php7.0-ldap - LDAP module for PHP
php7.0-mysql - MySQL module for PHP
php7.0-odbc - ODBC module for PHP
php7.0-opcache - Zend OpCache module for PHP
php7.0-pgsql - PostgreSQL module for PHP
php7.0-pspell - pspell module for PHP
php7.0-readline - readline module for PHP
php7.0-recode - recode module for PHP
php7.0-snmp - SNMP module for PHP
php7.0-sqlite3 - SQLite3 module for PHP
php7.0-tidy - tidy module for PHP
php7.0-xml - DOM, SimpleXML, WDDX, XML, and XSL module for PHP
php7.0-xmlrpc - XMLRPC-EPI module for PHP
libphp7.0-embed - HTML-embedded scripting language (Embedded SAPI library)
php7.0-bcmath - Bcmath module for PHP
php7.0-bz2 - bzip2 module for PHP
php7.0-enchant - Enchant module for PHP
php7.0-fpm - server-side, HTML-embedded scripting language (FPM-CGI binary)
php7.0-imap - IMAP module for PHP
php7.0-interbase - Interbase module for PHP
php7.0-intl - Internationalisation module for PHP
php7.0-mbstring - MBSTRING module for PHP
php7.0-mcrypt - libmcrypt module for PHP
php7.0-phpdbg - server-side, HTML-embedded scripting language (PHPDBG binary)
php7.0-soap - SOAP module for PHP
php7.0-sybase - Sybase module for PHP
php7.0-xsl - XSL module for PHP (dummy)
php7.0-zip - Zip module for PHP
php7.0-dba - DBA module for PHP

您可能在列表中看到没有 openssl 或 mhash。因此,您可以放心地假设它们是默认安装的,或者对于该版本的 php 不存在。

根据这个https://github.com/roots/trellis/issues/501Php7.0 没有附带 mhash,但您可以按照 php 指南使用它:http://php.net/manual/en/mhash.requirements.php


开放SSL

安装在 libapache2-mod-php7.0 下

  sudo apt-get install libapache2-mod-php7.0

要检查它,您必须构建一个 phpinfo() 并搜索 openssl。

相关内容