我是Apache24 + PHP55,扩展名在目录中但不在Apache上加载。 扩展名位于以下目录中:/usr/local/etc/php/extensions.ini。即使在包含该文件的php_info()中,也不会加载扩展名。
有人遇到同样的问题吗?
kamihouse# service apache24 configtest
Performing sanity check on apache24 configuration:
Syntax OK
kamihouse#
kamihouse#
kamihouse# apachectl -v
Server version: Apache/2.4.9 (FreeBSD)
Server built: Apr 1 2014 22:36:46
kamihouse#
kamihouse#
kamihouse# /usr/local/bin/php-cgi -v
PHP 5.5.10 (cgi-fcgi) (built: Apr 1 2014 23:18:48)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies
with Zend OPcache v7.0.3, Copyright (c) 1999-2014, by Zend Technologies
kamihouse#
kamihouse#
kamihouse# php -v
PHP 5.5.10 (cli) (built: Apr 1 2014 23:18:45)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies
with Zend OPcache v7.0.3, Copyright (c) 1999-2014, by Zend Technologies
kamihouse#
kamihouse#
kamihouse# apachectl -v
Server version: Apache/2.4.9 (FreeBSD)
Server built: Apr 1 2014 22:36:46
kamihouse#
答案 0 :(得分:3)
从 FreeBSD 9 + 上的 Apache24 版本 PHP55-5.5.10 开始,需要包含模块* ports / www / mod_php55 *
设置(make config) ports / lang / php55 和* ports / www / mod_php55 *应该相同。
然后只需构建 ports / lang / php55-extensions