Shin

No APC on Yosemite

OPcache

After upgrading to Yosemite it turns out APC is gone, and no longer installable. Yosemite comes with PHP5.5 for which there is no APC.
But the new PHP comes with opcache which you just have to enable by adding the following to your php.ini:
zend_extension=opcache omeprazole dosage.so
On my site here it basically cut my page generation times in half straight out of the box. If you like some pretty graphics and an interface to manage it (and you run WordPress as well) grab the ‘OPcache Dashboard‘ plugin.

Back from the dead

mountain lion server

The server is dead, long live the server. Well my trusty old Mac Mini decided to retire to the great beyond and kicked the bucket after 7 years. May it rust in peace. Unfortunately this meant my websites were down, as was my mail. The latter being slightly more important at the moment as I’m still looking for a job. Back in the previous decade I decided against getting the official OsX server software because back then it cost quite a lot (for home users anyway, dirt cheap compared to windows licensing) at $500 for 10 users and $1000 for unlimited users. Fast forward to 2013 and now it’s only $20 for unlimited users for Mountain Lion Server, so I decided to give it a try on my iMac to at least get a working mail server up. Which I did. Neat, and for less money than I’d previously paid for MailServe. Spamassassin, ClamAV, RBL, the works. Still some todo’s in that area, like setting up training for Spamassassin, but nice overall.
So I figured why stop there, let’s see what this puppy can do. Activated the web server, downloaded and installed MySQL which is not included, tweaked PHP a bit (apc is missing from the standard php setup, something I love to boost performance. I had to compile that from source to add it, I should make a follow up post for that) and here we are; back online and faster than before.
I’m sure there’s still a lot b0rked around the site, but so far so good.
Emphasis on the temporary solution as I still need a dedicated server for the lot but at least it’s all running for now.

Installing AMP on Mountain Lion

PHP5 on Snow Leopard

Using PHP5 under Mac OS X 10.6 (Snow Leopard) was a bit of a pain thusfar, because you’re limited to either using the built in PHP5 or building it from scratch. The latter being not for the faint of heart and the first not being ideal either. Although the built in PHP5 is a big improvement over the one supplied with 10.5, it still is lacking some rather standard and useful libraries. With 10.5 this was easily remedied by installing Entropy’s PHP5 package, but that hasn’t been updated for 10.6 and it doesn’t look like it will any time soon.
Luckily someone stepped in to fill the void and built his own using Entropy’s build scripts. So you sort of get the Entropy build, except it works.
So thank you very much Taracque, and for the rest of you; go download it here:
http://taracque.hu/php5/

Work in progress... not home!
Trying to get all/most of the new code working before I start on the eyecandy.