- 论坛徽章:
- 1
|
php5.3.12 安装模块提示如下信息:
[root@BJ1 php-5.3.12]# php -v
PHP Warning: Module 'imagick' already loaded in Unknown on line 0
Warning: Module 'imagick' already loaded in Unknown on line 0
事实上,为php安装任何扩展,比如 imagick memcached 都会提示该模块重复加载,我仔细检查过php.ini 配置文件,也排查过 /etc/下是否有其他php配置文件,包括整个php目录可能含有的php.d/ extension.ini 等有可能加载模块的地方,没有任何重复加载的地方。 请问有没有遇到同样问题的朋友,有什么办法可以解决掉这个问题。
之前在不同的服务器上,安装编译安装php , 或者为RPM包安装的php添加扩展,同样也会出现这个问题。
php为编译安装:
--------------------------------------------------
Build Date May 7 2012 13:54:37
Configure Command './configure' '--prefix=/php-5.3.12' '--sysconfdir=/php-5.3.12' '--localstatedir=/php-5.3.12/var' '--with-config-file-path=/php-5.3.12' '--with-config-file-scan-dir=/php-5.3.12' '--enable-magic-quotes' '--enable-libgcc' '--enable-fd-setsize=65500' '--with-mysql=/db/' '--with-mysqli=/db/bin/mysql_config' '--with-pdo-mysql=/db/' '--enable-fpm' '--with-fpm-user=www' '--with-fpm-group=www' '--enable-sigchild' '--with-libxml-dir' '--with-openssl'
Server API FPM/FastCGI
Virtual Directory Support disabled
Configuration File (php.ini) Path /php-5.3.12
Loaded Configuration File /php-5.3.12/php.ini
Scan this dir for additional .ini files /php-5.3.12
Additional .ini files parsed /php-5.3.12/php.ini
PHP API 20090626
PHP Extension 20090626
Zend Extension 220090626
Zend Extension Build API220090626,NTS
PHP Extension Build API20090626,NTS
Debug Build no
Thread Safety disabled
Zend Memory Manager enabled
Zend Multibyte Support disabled
IPv6 Support enabled
Registered PHP Streams compress.zlib, compress.bzip2, tftp, ftp, telnet, dict, ldap, ldaps, http, https, ftps, scp, sftp, php, file, glob, data, phar, zip
Registered Stream Socket Transports tcp, udp, unix, udg, ssl, sslv3, sslv2, tls
Registered Stream Filters zlib.*, bzip2.*, convert.iconv.*, mcrypt.*, mdecrypt.*, string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, dechunk
--------------------------------------- |
|