php5 ubuntu 扩展配置

WBOY
Release: 2016-06-20 12:54:32
Original
908 people have browsed it

安装扩展如下

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文件夹中,这是什么意思?

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!