dtkmejg127475
2012-07-30 20:15
浏览 39
已采纳

无法找到Phalanger PhpNetCore

I am trying to setup Phalanger to run on a remote IIS using the

http://www.php-compiler.net/?p=354

guide. Because I am trying to override the server configuration from the web.config, I have the following line added in:

<system.webServer>
  <handlers>
    <add name="PhalangerHandler" path="*.php" verb="*" type="PHP.Core.RequestHandler, PhpNetCore, Version=3.0.0.0, Culture=neutral, PublicKeyToken=0a8e8c4c76728c71" resourceType="Unspecified" preCondition="integratedMode" />
  </handlers>
</system.webServer>

which makes the ISS server recognize the .php extention. The issue I have is that it cannot find the "PhpNetCore". I am guessing this is happening because it is going off the root location of the server which I don't need. I have the dll inside the

 /bin

folder. Any idea on how to make the server look in the correct directory? I have tried to add bin/ to the filename but it does not work. According to their documentation, I need to add

    <paths>
        <set name="DynamicWrappers" value=".\Dynamic"/>
        <set name="Libraries" value=".\Bin"/>
        <set name="ExtWrappers" value=".\Bin"/>
        <set name="ExtNatives" value=".\Bin\Extensions"/>
    </paths>

to the which I have done so. However it is still not recognizing properly. Any idea on what is going on? Any help is truly appreciated!

图片转代码服务由CSDN问答提供 功能建议

我正在尝试使用 http://www.php-compiler.net/?p=354 < / p>

指南。 因为我试图从web.config覆盖服务器配置,所以我添加了以下行:

 &lt; system.webServer&gt; 
&lt; handlers&gt; \  n&lt; add name =“PhalangerHandler”path =“* .php”verb =“*”type =“PHP.Core.RequestHandler,PhpNetCore,Version = 3.0.0.0,Culture = neutral,PublicKeyToken = 0a8e8c4c76728c71”resourceType =“Unspecified  “preCondition =”integratedMode“/&gt; 
&lt; / handlers&gt; 
&lt; /system.webServer> 
   
 
 

使ISS服务器识别.php 推广。 我遇到的问题是它找不到“PhpNetCore”。 我猜这种情况正在发生,因为它离开了我不需要的服务器的根位置。 我在

  / bin 
   
 
 

文件夹中有dll。 有关如何使服务器看起来正确的目录的任何想法? 我试图将bin /添加到文件名但它不起作用。 根据他们的文档,我需要添加

 &lt; paths&gt; 
&lt; set name =“DynamicWrappers”value =“。\ Dynamic”/&gt; 
&lt  ; set name =“Libraries”value =“。\ Bin”/&gt; 
&lt; set name =“ExtWrappers”value =“。\ Bin”/&gt; 
&lt; set name =“ExtNatives”value =“  。\ Bin \ Extensions“/&gt; 
&lt; / paths&gt; 
   
 
 

我已经这样做了。 但它仍然无法正确识别。 对于发生了什么有什么想法? 任何帮助都非常感谢!

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 邀请回答

1条回答 默认 最新

  • doushichun9409 2012-07-31 15:44
    已采纳

    I see the similar question at http://support.devsense.com/viewtopic.php?t=748

    Try to ensure the Application Pool is set to ASP.NET 4.0 integrated (not 2.0, not classic) and the virtual directory is configured as IIS application.

    点赞 评论

相关推荐 更多相似问题