1

我想在共享主机帐户上安装 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

我该怎么做?

4

1 回答 1

0

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

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

于 2013-09-05T03:53:34.123 回答