Home >Backend Development >PHP Tutorial >php5 ubuntu 扩展配置

php5 ubuntu 扩展配置

WBOY
WBOYOriginal
2016-06-20 12:54:32951browse

安装扩展如下

pecl install channel://pecl.php.net/libevent-0.1.0

需要配置配置文件,在/etc/php5/mods-available 新建 libevnet.ini 写入行

extension=libevent.so


应用扩展

sudo php5enmod libevent 


使用php5 --ini 查看配置文件情况,


php5 -ini 显示内容比 --ini 多呀,显示

extension_dir => /usr/lib/php5/20121212 => /usr/lib/php5/20121212
extension version => 0.1.0

extension_dir 居然在20121212文件夹中,这是什么意思?

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn