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.

Blocking WordPress xmlrpc.php scans

My server was frying at 100% cpu usage when I saw my apache log filled with these:
x111.com 80.82.78.166 - - [17/Oct/2014:15:28:16 +0200] "POST /xmlrpc.php HTTP/1.0" 200 - "-" "Mozilla/4.0 (compatible: MSIE 7.0; Windows NT 6.0)"
Apparently there are bots going around hammering sites that have WordPress running to try and abuse xmlrpc to ddos other sites.
I tried some xmlrpc plugins but they didn’t do anything for me so I decided to nip in the bud at .htaccess level, thus blocking the requests at apache level and preventing php and mysql from getting hammered by adding this to my .htaccess file:
RewriteCond %{REQUEST_URI} =/xmlrpc.php [NC]
RewriteCond %{HTTP_USER_AGENT} .*Mozilla\/4.0\ \(compatible:\ MSIE\ 7.0;\ Windows\ NT\ 6.0.*
RewriteRule .* - [F,L]

So now all scans get an error 403:
x111.com 93.174.93.203 - - [18/Oct/2014:12:31:54 +0200] "POST /xmlrpc.php HTTP/1.0" 403 275 "-" "Mozilla/4.0 (compatible: MSIE 7.0; Windows NT 6.0)"
And my server is idling again.

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