douzhoulei8959 2011-10-04 15:49
浏览 66
已采纳

无法让Zorba使用PHP和Nginx在Windows 7上运行

I'm trying to install Zorba on a Windows 7 machine with the help of these instructions. I've completed the "Verify Zorba" section ok, but I can't complete the section "Enable Zorba extension in PHP". When I attempt to restart PHP, a Windows dialog box pops up saying;

php-cgi.exe error

Do I need to compile from source? The instructions say to compile Zorba from source but instead have downloaded the Windows installation package from the Zorba download page. Do I also have to compile from source? Surely not?

Missing zorba_api_wrapper.php The instructions say "locate the file zorba_api_wrapper.php" but I can't find a file of that name. There is a file called zorba_api.php so I've used that instead. Is that the correct file?

php-cgi.exe I'm running the CGI version of PHP. I start it from the command prompt by doing;

php-cgi -b 127.0.0.1:9000

Could that be what's causing the error dialog? I guess it's more common to have Apache start PHP. (I'm using Nginx not Apache.)

Update

As suggested by Rodolfo, I've added C:\Program Files\Zorba XQuery Processor 2.0.2\bin to the PATH environment variable and uninstalled an older version of Zorba. Now when I try to start PHP by doing;

php-cgi -b 127.0.0.1:9000

I get a different Windows dialog;

Zorba Crash

The info in the Problem Details is;

Problem signature:
  Problem Event Name:   APPCRASH
  Application Name: php-cgi.exe
  Application Version:  5.3.2.0
  Application Timestamp:    4b8ec866
  Fault Module Name:    php5ts.dll
  Fault Module Version: 5.3.2.0
  Fault Module Timestamp:   4b8ec7e7
  Exception Code:   c0000005
  Exception Offset: 000f56c0
  OS Version:   6.1.7601.2.1.0.768.3
  Locale ID:    2057
  Additional Information 1: 0a9e
  Additional Information 2: 0a9e372d3b4ad19135b953a78882e789
  Additional Information 3: 0a9e
  Additional Information 4: 0a9e372d3b4ad19135b953a78882e789

If I remove the line extension=zorba_api.dll from php.ini, PHP starts ok.

  • 写回答

3条回答 默认 最新

  • douchun1948 2011-10-04 19:13
    关注

    >>Do I need to compile from source?
    Windows Installation Package is fine, this should work.
    >>Missing zorba_api_wrapper.php
    This is included along with zorba_api.dll in [ZORBA_INSTALL_DIR]\share\php

    The error could be caused by two reasons:
    a) zorba_api.dll is not able to locate zorba_simplestore.dll. Make sure your zorba_api.dll is able to reach zorba_simplestore.dll, the easy way is through PATH environment variable.
    b) you have an older zorba_api.dll not related to a newer zorba_simplestore.dll. Make sure you don't have an older version of zorba colliding with your current version.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(2条)

报告相同问题?

悬赏问题

  • ¥15 基于卷积神经网络的声纹识别
  • ¥15 Python中的request,如何使用ssr节点,通过代理requests网页。本人在泰国,需要用大陆ip才能玩网页游戏,合法合规。
  • ¥100 为什么这个恒流源电路不能恒流?
  • ¥15 有偿求跨组件数据流路径图
  • ¥15 写一个方法checkPerson,入参实体类Person,出参布尔值
  • ¥15 我想咨询一下路面纹理三维点云数据处理的一些问题,上传的坐标文件里是怎么对无序点进行编号的,以及xy坐标在处理的时候是进行整体模型分片处理的吗
  • ¥15 CSAPPattacklab
  • ¥15 一直显示正在等待HID—ISP
  • ¥15 Python turtle 画图
  • ¥15 stm32开发clion时遇到的编译问题