Since my last post on using Nginx to cache proxied content, they have added proper cache handling via their proxy_cache* directives. These are much more suitable for use, as they capture the HTTP response headers and also use more advanced Cache-Control checks. To start, install the latest stable Nginx avaliable at http://wiki.nginx.org/NginxInstall. Next edit your [...]
Author Archive
mpm-itk on CentOS – run Apache virtual hosts as different users
Posted 5th April 2010 by Andy | 2 Commentsmpm-itk is a fork of mpm-prefork (ironically in both process and project sense), which allows you to configure individual Apache vhosts to run as specified users and groups. This makes it extremely secure if used in a shared hosting environment. I have provided a CentOS RPM for this in the Webtatic yum repository. This should [...]
Facebook XHP RPM on CentOS
Posted 11th February 2010 by Andy | No CommentsA few days ago, Facebook released XHP, a PHP extension, which allows defining XML directly in PHP blocks, allowing you to “use PHP as a stricter templating engine”. It seems a bit strange to be coding XML tags directly in PHP blocks, but it adds features such as automatic escaping, and the ability to manipuate [...]
Recovering a broken Subversion working copy
Posted 2nd December 2009 by Andy | No CommentsThere are times when a Subversion working copy can mess up. This is usually due to human error, for example due to permissions problems or moving files or folders incorrectly These can usually be easily recoverable, although at times it can seem there’s no solution. Here are a few examples and their solutions.
Locked down authoritative versioned code repositories
Posted 12th September 2009 by Andy | No CommentsCentralised versioning systems are inherently authoritative, but when dealing with decentralised systems, either patches are made and applied to the maintainer’s repository, or one repository should be defined as the authoritative one. If the authoritative repository requires commit access, it should be locked down as much as possible, requiring authentication, encryption, and push access without [...]
Git 1.7.2.3 on CentOS 5
Posted 1st September 2009 by Andy | 9 CommentsI’ve been hearing good things about git lately, with many projects which used to use subversion converting to it, so I’ve decided to try it out myself. RPMForge only has version 1.5, so like the other software I’ve been using, I’ve converted Fedora 11′s rpm to CentOS and put it in the Webtatic repository. Update [...]