Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I dusted off a G4 Powerbook with OS X 10.5.8 to test. Turns out that the current <a href="https://github.com/mongodb/mongo-php-driver/downloads">precompiled version</a> of mongo.so for PHP 5.3 on github doesn't support PowerPC (the PHP 5.2 build appears to).</p> <p>I downloaded the <a href="http://php.net/releases/index.php">PHP 5.3.1 source</a> to match XAMPP 1.7.3 and compiled my own mongo.so (1.2.12).</p> <p>I did some minimal testing with XAMPP 1.7.3 on PowerPC to confirm this appears to work. Essentially, I just pasted the example from the <a href="http://php.net/manual/en/mongo.tutorial.php">MongoDB PHP Driver Tutorial</a>, and inserted some documents into MongoDB 2.0.6 running on another computer.</p> <p>Note this is an <em>unofficial &amp; unsupported</em> mongo.so build, the same as what you should get building successfully from source with <code>pecl install mongo</code>. As a bonus, this is a much newer driver version than the precompiled OS X ones currently on github. </p> <p>As a warning: I'm not sure about limitations or quirks of using this on PowerPC. Most of the OS X world has moved on to Intel architecture now.</p> <p>So, instructions to use:</p> <ol> <li><p>Download and install <a href="http://www.apachefriends.org/en/xampp-macosx.html#849">XAMPP Mac OS X 1.7.3 universal binary</a>.</p></li> <li><p>Download <code>mongo-ppc-1.2.12.so</code> from my github: <a href="https://github.com/stennie/mongo-php-driver/downloads">mongodb-php-driver/downloads</a></p></li> <li><p>Rename that to <code>mongo.so</code> and copy into <code>/Applications/XAMPP/xamppfiles/lib/php/php-5.3.1/extensions/no-debug-non-zts-20090626/</code></p></li> <li><p>Edit XAMPP/etc/php.ini and add a last line with:</p> <pre><code>extension=mongo.so </code></pre></li> <li><p>Check via phpinfo() that the <code>mongo</code> extension is available. Make sure you stop/start Apache if it was already running when you added the extension.</p></li> </ol>
    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.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      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