我已在 Linux 4.0.4-x86_64 (ubuntu14) 计算机上安装了 saprfc-1.4.1。
PHP版本:PHP 5.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 文件中添加了 extension=/usr/local/lib/php/extensions/no-debug-non-zts-20131226/saprfc.so
- sudo 服务 apache2 重新启动
完成这些操作后,phpinfo 页面 saprfc 模块中的所有步骤均未显示。
在 phpinfo 页面的 解析的其他 .ini 文件部分中,提到了 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 文件中添加扩展名 (extension=saprfc.so)
重启apache
sudo 服务 apache2 重新启动
关于linux - phpinfo 页面 saprfc 模块未显示,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31758829/