Nginx 包含多个phar文件时发生Php5 FPM错误

Nginx 包含多个phar文件时发生Php5 FPM错误,nginx,php,phing,phar,Nginx,Php,Phing,Phar,我们在服务器上使用Ubuntu+nginx+php5 fpm组合,PHP版本为5.5。我们正在尝试运行index.php,其中包含一系列phar文件。比如: <?php include "a.phar"; include "b.phar"; //... ?> include("api/LogUtils.inc.php"); // Other relative include statements 我没有一个名为Extract_Phar的类,所以我假设我的构建过程正在添加它。我用p

我们在服务器上使用Ubuntu+nginx+php5 fpm组合,PHP版本为5.5。我们正在尝试运行index.php,其中包含一系列phar文件。比如:

<?php
include "a.phar";
include "b.phar";
//...
?>
include("api/LogUtils.inc.php");
// Other relative include statements
我没有一个名为Extract_Phar的类,所以我假设我的构建过程正在添加它。我用phing来建造同样的东西,以防万一。phing的目标是:

<target name="phar" depends="prepare">
  <pharpackage destfile="./build/phar/LogUtils.phar" 
  basedir="./build/intophar"
  compression="bzip2">
  <fileset dir="./build/intophar/">
    <include name="*.*" />
    <include name="**/**" />
  </fileset>
  <metadata>
    <element name="version" value="1.0" />
    <element name="authors">
       <element name="Shreeni">
         <element name="e-mail" value="test@test.com" />
       </element>
    </element>
  </metadata>
  </pharpackage>
</target>
我根据其他答案使用了apc标志,并设置了以下内容:

apc.include_once_override = 0 
apc.canonicalize = 0 
apc.stat = 0
apc.enabled=0 
apc.enabled_cli=0
apc.cache_by_default = 0

所有这些都没有帮助,我们无法运行代码。有什么建议吗

由于各种phar文件中的存根冲突,可能会出现此问题。尝试:

<?php
include "phar://a.phar/index.php"; // Assuming that the stub is index.php
include "phar://b.phar/index.php"; // Assuming that the stub is index.php
//...
?>


如果看不到您的构建过程,没有人可以帮助您。@cweiske添加了构建过程的更多细节。如果您认为需要更多信息,请告诉我。您的fpm版本的php中是否启用了phar?来自phpinfo:phar phar:php存档支持启用phar EXT版本2.0.1 phar API版本1.1.1基于phar的phar存档启用基于Tar的phar存档启用基于ZIP的phar存档启用gzip压缩启用bzip2压缩启用指令Local Value Master Value phar.cache\u list no Value no Value phar.readonly Off Off phar.require\u hash On On上一条注释的格式有点不正确,但似乎已启用-bz2也已启用。
<?php
include "phar://a.phar/index.php"; // Assuming that the stub is index.php
include "phar://b.phar/index.php"; // Assuming that the stub is index.php
//...
?>