Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>As Nerdling points out, PHP must be compiled with the GD extension enabled, therefore there's no <em>clean</em> way of adding GD2 to the version of PHP that ships with Mac OS X.</p> <p>This solution worked for me (Mac OS X 10.5.2, should work with any 10.5), but you'll have to make a new PHP installation. However, <strong>this will not undo your other installs of PEAR and MySQL</strong>, you'll just have to <code>sudo</code> one extra line.</p> <p>Before we start, if you've already enabled the built in PHP, you'll have to re-comment the PHP line (LoadModule php5_module libexec/apache2/libphp5.so) in (/etc/apache2/)httpd.conf. And now, the steps:</p> <ol> <li>In Terminal.app, type <code>sudo ln -s /etc/apache2 /etc/httpd</code><br /> This makes a symlink so entropy's package can install and function correctly.<br /><br /></li> <li>Download entropy's <a href="http://www2.entropy.ch/download/entropy-php-5.2.4-1-apache2.tar.gz" rel="nofollow noreferrer">PHP 5.2.4 for Apache 2</a> package and install it.<br /><br /></li> <li>Again in Terminal, type:<br /><br /> <code>sudo cp /usr/sbin/httpd /usr/sbin/httpd-fat<br /> sudo lipo /usr/sbin/httpd -thin i386 -output /usr/sbin/httpd</code><br /> This downgrades Apache 2 to 32 bits so it can play nice with entropy's PHP package.<br /><br /> <code>sudo ln -s /usr/local/php5 /usr/local/apache2<br /> sudo ln -s /usr/lib/libexpat.dylib /usr/local/apache2/lib/libexpat.0.dylib</code><br /> This fixes a misplaced file.<br /><br /> <code>sudo mv /usr/bin/php /usr/bin/php_back<br /> sudo ln -s /usr/local/php5/bin/php /usr/bin/php</code><br /> This fixes possible errors with PEAR/PHP extensions.<br /><br /></li> <li>Restart Apache (can be done typing <code>sudo apachectl restart</code>).<br /><br /></li> <li>Upvote ;)<br /><br /></li> <li>Done.<br /><br /></li> </ol> <p><em>Some reference: <a href="http://www.entropy.ch/phpbb2/viewtopic.php?t=3074" rel="nofollow noreferrer">http://www.entropy.ch/phpbb2/viewtopic.php?t=3074</a></em></p>
 

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