【问题标题】:phpinfo page saprfc module not shownphpinfo 页面 saprfc 模块未显示
【发布时间】:2015-10-23 21:07:16
【问题描述】:

我已经在 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 中执行了以下命令
    • php化
    • ./配置
    • 制作
    • 进行安装
  • 在 php.ini 文件中添加了 extension=/usr/local/lib/php/extensions/no-debug-non-zts-20131226/saprfc.so
  • sudo service apache2 重启

完成这些步骤后,phpinfo 页面 saprfc 模块中的所有步骤均未显示。

Additional .ini files parsed 部分中提到了 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

【问题讨论】:

    标签: php linux ubuntu phpinfo saprfc


    【解决方案1】:

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

    有 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 重启

    【讨论】:

      猜你喜欢
      • 2016-01-09
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-06-27
      • 1970-01-01
      • 2013-09-29
      • 1970-01-01
      相关资源
      最近更新 更多