我是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#
从 FreeBSD 9+ 上的 Apache24 版本的 PHP55-5.5.10 开始,必须包含模块 *ports/www/mod_php55*
设置(make config)端口/lang/php55和*ports/www/mod_php55*应该相同。
然后只需构建 ports/lang/php55扩展