未显示 phpinfo 页面 saprfc 模块
phpinfo page saprfc module not shown
我已经在 linux 4.0.4-x86_64 (ubuntu14) 机器上安装了 saprfc-1.4.1。
PHP版本:PHP5.6.11
已完成的步骤
- 已下载 rfcsdk 7.20 并在 /usr/local/rfcsdk
中上传
- 已在 rfcsdk/lib
中上传 librfccm.so 补丁
- 在我的根目录中提取 saprfc-1.4.1
- 编辑文件 saprfc-1.4.1/saprfc.c(第 47 行将 function_entry 更改为 zend_function_entry)
- 在 saprfc-1.4.1 中执行了以下命令
- phpize
- ./配置
- 制作
- 进行安装
- 在 php.ini 文件中添加了扩展名=/usr/local/lib/php/extensions/no-debug-non-zts-20131226/saprfc.so
- sudo service apache2 restart
执行完这些之后,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
我已经在 linux 4.0.4-x86_64 (ubuntu14) 机器上安装了 saprfc-1.4.1。
PHP版本:PHP5.6.11
已完成的步骤
- 已下载 rfcsdk 7.20 并在 /usr/local/rfcsdk 中上传
- 已在 rfcsdk/lib 中上传 librfccm.so 补丁
- 在我的根目录中提取 saprfc-1.4.1
- 编辑文件 saprfc-1.4.1/saprfc.c(第 47 行将 function_entry 更改为 zend_function_entry)
- 在 saprfc-1.4.1 中执行了以下命令
- phpize
- ./配置
- 制作
- 进行安装
- 在 php.ini 文件中添加了扩展名=/usr/local/lib/php/extensions/no-debug-non-zts-20131226/saprfc.so
- sudo service apache2 restart
执行完这些之后,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