【问题标题】:Installing xcache on a shared hosting account在共享主机帐户上安装 xcache
【发布时间】:2013-01-30 12:04:34
【问题描述】:

我想在共享主机帐户上安装 xcache。我已按照此处的说明进行操作:http://xcache.lighttpd.net/wiki/InstallFromSource 但请注意差异:

  • 您不能在共享主机上运行“su”,因为 make install 想要将 xcache.* 文件移动到共享模块目录。
  • 但是,您可以将 xcache.* 文件复制到您帐户的目录中,然后告诉 php.ini 使用该库

我遇到的问题是以下 php 错误:

[30-Jan-2013 04:35:52 America/Denver] PHP Warning:  PHP Startup: XCache: Unable to    initialize module
Module compiled with module API=20060613
PHP    compiled with module API=20090626
These options need to match
in Unknown on line 0

此共享主机使用多个 php 版本。我想将特定的 php 二进制文件作为编译参考。

在我的服务器上:

Configuration File (php.ini) Path   /usr/php/53/etc
Loaded Configuration File   /home4/scoobydo/public_html/php.ini
Scan this dir for additional .ini files /usr/php/53/etc/php.d

我该怎么做?

【问题讨论】:

    标签: php apache shared-hosting opcode xcache


    【解决方案1】:

    很简单,如果你不能运行 'su',那么你就不能 make & make install xcache 来从源安装。

    您也许可以为您的发行版使用预编译的二进制文件,但同样,这些可能需要安装“su”或“sudo”命令。

    【讨论】:

      猜你喜欢
      • 2011-07-16
      • 1970-01-01
      • 1970-01-01
      • 2011-01-21
      • 2018-08-05
      • 2013-07-05
      • 2011-12-14
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多