ubuntu 16.04 php7.0源里面安装的怎么往里面添加模块?

OSC首席键客 发布于 2016/09/24 12:03
阅读 1K+
收藏 0
PHP

源安装的,用 php-fpm7.0 -m看了下,模块有点少。

缺了我需要的。

加载中
0
eechen
eechen
apt-cache search php7.0
php7.0 - server-side, HTML-embedded scripting language (metapackage)
php7.0-bcmath - Bcmath module for PHP
php7.0-bz2 - bzip2 module for PHP
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-dba - DBA module for PHP
php7.0-dev - Files for PHP7.0 module development
php7.0-enchant - Enchant module for PHP
php7.0-fpm - server-side, HTML-embedded scripting language (FPM-CGI binary)
php7.0-gd - GD module for PHP
php7.0-gmp - GMP module for PHP
php7.0-imap - IMAP module for PHP
php7.0-interbase - Interbase module for PHP
php7.0-intl - Internationalisation module for PHP
php7.0-json - JSON module for PHP
php7.0-ldap - LDAP module for PHP
php7.0-mbstring - MBSTRING module for PHP
php7.0-mcrypt - libmcrypt 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-phpdbg - server-side, HTML-embedded scripting language (PHPDBG binary)
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-soap - SOAP module for PHP
php7.0-sqlite3 - SQLite3 module for PHP
php7.0-sybase - Sybase 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
php7.0-xsl - XSL module for PHP (dummy)
php7.0-zip - Zip module for PHP
libapache2-mod-php7.0 - server-side, HTML-embedded scripting language (Apache 2 module)
libphp7.0-embed - HTML-embedded scripting language (Embedded SAPI library)
没有模块可以用apt-get安装.
eechen
eechen
回复 @OSC首席键客 : 有些PECL扩展还不支持PHP7,比如 http://pecl.php.net/package/memcached
OSC首席键客
OSC首席键客
回复 @eechen : 我知道怎么这样加,我是说源里面没有的模块。我的那个没你这个多。
eechen
eechen
http://mirrors.ustc.edu.cn/ubuntu/pool/main/p/php7.0/
0
eechen
eechen
举例:Ubuntu下通过pecl安装php扩展imagick:
sudo apt-get install imagemagick libmagick9-dev
sudo apt-get install php-pear php5-dev
sudo pecl install imagick
sudo nano /etc/php5/conf.d/imagick.ini添加extension=imagick.so
sudo /etc/init.d/apache2 restart查看phpinfo().
返回顶部
顶部