更新php扩展Ubuntu


updating php extensions Ubuntu

我在更新pecl-inotify扩展时遇到问题。但我认为它适用于所有的扩展。

我最近更新了我的服务器。首先我得到了inotify.so没有找到的错误。所以我把它复制到新的php扩展目录

@server:~# locate inotify.so
/usr/lib/php5/20100525/inotify.so
/usr/lib/php5/20121212/inotify.so

但现在我得到了错误:

PHP Warning:  PHP Startup: inotify: Unable to initialize module
Module compiled with module API=20100525
PHP    compiled with module API=20121212
These options need to match

那么我该如何更新/重新安装/重新配置这些扩展呢?

"长"路。

pecl uninstall inotify
pecl install inotify

应该有更好的方法来重新配置php扩展。对吧
但这目前有效!