Archive for May, 2010

Installing PHP extensions on Mac OS X under xampp

Monday, May 31st, 2010

The other day I installed xampp on a mac os x running snow leopard but I was having an issue installing any extra extensions like xdebug and apc. I found out it was because it was compiling the extensions in 64bit but xampp is compiled in 32bit and I did the following to fix the issue:

  1. Download and extract the source
  2. Run phpize
  3. Adding the following parameters to configure:
    ./configure MACOSX_DEPLOYMENT_TARGET=10.6 CFLAGS="-arch i386 -g -Os -pipe -no-cpp-precomp" CCFLAGS="-arch i386 -g -Os -pipe" CXXFLAGS="-arch i386 -g -Os -pipe" LDFLAGS="-arch i386 -bind_at_load"
  4. make (and make install if required)
  5. done :)

If that doesnt work, try adding:

--with-php-config=/Applications/XAMPP/xamppfiles/bin/php-config-5.3.1

to the configure command.

I hope that will help some people out there, because it was driving me insane!

I got reddited

Monday, May 31st, 2010

Last week my post got posted on reddit and was on the homepage for over 24 hours which I as totally not expecting and the end results was my blog being down for a large amount of time over those couple of days. I had to set my DNS records to 127.0.0.1 as all I had at the time to fix the issue was my phone and since I receive free hosting from my old company (WebClick – http://www.webclick.com.au) the last thing I wanted to do was crash their servers.

I have now installed wp-supercache so hopefully if it every happens again, my blog will handle it 10x better.