I have built PHP based "health check" scripts for several projects in the past, but they were always custom-made for the occasion and not written for abstraction as an independent product. I would like to know whether such a solution exists.
What I meam by "health check" is a protected web page that functions much like a suite of unit tests, but on a more operational level, showing red/yellow/green statuses for things like
- Are the cache directories writable?
- Is the PHP version correct, are required extensions installed?
- Is the database server reachable?
- Do the necessary tables exist in the database?
- Is there enough disk space available?
- Is the site's front page reachable and renders fully ( = no PHP errors)?
- Do the project's libraries' MD5 checksums match the original ones?
- Does the front page's output pass the W3C validator?
Do you do this - or parts of it - in your applications and web sites?
Are there any standardized tools for this that bring along all the functionality to perform the tests (ideally as plugins), and just need to be configured accordingly?
I am talking about a lightweight solution that can run even on the tiniest of PHP-based web packages with no extensions and server access.
Is there, maybe, a way to set this up using one of the Unit Testing frameworks available for PHP (preferably PHPUnit)? If so, do you know any resources / tutorials outlining how?
Update: There does not seem to be a popular ready-made solution for this, otherwise, with more than 100 views, I'm sure there would have been some mention of it. Seeing as there's some initial interest in building such a tool as an open source project, please feel free to post what an ideal solution for you would look like, and what features it would have to have.