Note that there are some explanatory texts on larger screens.

plurals
  1. POCan't get Zorba working on Windows 7 with PHP and Nginx
    primarykey
    data
    text
    <p>I'm trying to install Zorba on a Windows 7 machine with the help of these <a href="http://zorba-xquery.com/doc/zorba-2.0/zorba/html/php_windows_tutorial.html" rel="nofollow noreferrer">instructions</a>. 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;</p> <p><img src="https://i.stack.imgur.com/LpARz.jpg" alt="php-cgi.exe error"></p> <p><strong>Do I <em>need</em> to compile from source?</strong> 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?</p> <p><strong>Missing zorba_api_wrapper.php</strong> 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?</p> <p><strong>php-cgi.exe</strong> I'm running the CGI version of PHP. I start it from the command prompt by doing;</p> <pre><code>php-cgi -b 127.0.0.1:9000 </code></pre> <p>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.)</p> <h1>Update</h1> <p>As suggested by Rodolfo, I've added <code>C:\Program Files\Zorba XQuery Processor 2.0.2\bin</code> to the <code>PATH</code> environment variable and uninstalled an older version of Zorba. Now when I try to start PHP by doing;</p> <pre><code>php-cgi -b 127.0.0.1:9000 </code></pre> <p>I get a different Windows dialog;</p> <p><img src="https://i.stack.imgur.com/unUWQ.jpg" alt="Zorba Crash"></p> <p>The info in the Problem Details is;</p> <pre><code>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 </code></pre> <p>If I remove the line <code>extension=zorba_api.dll</code> from <code>php.ini</code>, PHP starts ok.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload