无法使Zorba在使用PHP和Nginx的Windows 7上运行 [英] Can't get Zorba working on Windows 7 with PHP and Nginx
问题描述
我试图借助这些说明.我已经完成了验证Zorba"部分,但无法完成在PHP中启用Zorba扩展"部分.当我尝试重新启动PHP时,会弹出一个Windows对话框,提示;
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;
我需要从源代码进行编译吗? 这些说明说要从源代码编译Zorba,而是从Zorba下载页面下载了Windows安装程序包.我还必须从源代码编译吗?当然不是吗?
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?
缺少zorba_api_wrapper.php 说明说找到文件zorba_api_wrapper.php",但找不到该名称的文件.有一个名为zorba_api.php的文件,所以我改用了它.那是正确的文件吗?
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 我正在运行CGI版本的PHP.我从命令提示符启动它;
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
这可能是导致错误对话框的原因吗?我想让Apache启动PHP更常见. (我使用的是Nginx而不是Apache.)
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.)
根据Rodolfo的建议,我已经在PATH
环境变量中添加了C:\Program Files\Zorba XQuery Processor 2.0.2\bin
并卸载了旧版本的Zorba.现在,当我尝试通过做启动PHP时;
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
我得到一个不同的Windows对话框;
I get a different Windows dialog;
问题详细信息中的信息为;
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
如果我从php.ini
中删除行extension=zorba_api.dll
,则PHP可以正常启动.
If I remove the line extension=zorba_api.dll
from php.ini
, PHP starts ok.
推荐答案
>>我需要从源代码编译吗?
Windows安装程序包很好,应该可以使用.
>>缺少zorba_api_wrapper.php
它与zorba_api.dll一起包含在[ZORBA_INSTALL_DIR] \ share \ php
>>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
该错误可能是由于两个原因引起的:
a)zorba_api.dll无法找到zorba_simplestore.dll.确保您的zorba_api.dll能够访问zorba_simplestore.dll,简单的方法是通过PATH环境变量.
b)您有一个与更新的zorba_simplestore.dll不相关的较旧的zorba_api.dll.确保您没有旧版本的zorba与当前版本冲突.
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.
这篇关于无法使Zorba在使用PHP和Nginx的Windows 7上运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!