未显示 phpinfo 页面 saprfc 模块

phpinfo page saprfc module not shown

我已经在 linux 4.0.4-x86_64 (ubuntu14) 机器上安装了 saprfc-1.4.1。

PHP版本:PHP5.6.11

已完成的步骤

执行完这些之后,phpinfo 页面中的所有步骤都没有显示 saprfc 模块。

已解析的其他 .ini 文件 部分中的 phpinfo 页面 saprfc.ini 提到了路径

/etc/php5/apache2/conf.d/20-saprfc.ini

当我检查 /var/log/apache2/error.log 文件时出现以下错误

caught SIGTERM, shutting down
PHP Warning:  PHP Startup: saprfc: Unable to initialize module\nModule
compiled with module API=20131226\nPHP    
compiled with module API=20121212\nThese options need to match\n in Unknown on line 0
PHP Warning:  PHP Startup: saprfc: Unable to initialize module\nModule
compiled with module API=20131226\nPHP    compiled with module
API=20121212\nThese options need to match\n in Unknown on line 0

我终于找到了解决这个问题的方法。

安装了 2 PHP php 5.5.9 和 5.6.11。

运行which php(查找php正在被使用) 它返回了我 /usr/bin/

在 saprfc 中执行了以下命令:

/usr/bin/phpize
./configure --with-php-config=/usr/bin/php-config
make
make test
make install

在 php.ini 文件

中添加扩展名(扩展名=saprfc.so)

重启apache

sudo service apache2 restart