I’m putting up a basic website for a friend – just a business-card job really – but I thought I’d see how much I can achieve with PHP available and no database. I found a couple of CMSes that work without a database – GetSimpleCMS and GuppY – but both are presenting a few difficulties.
I wonder if anyone here has had much experience with this type of CMS/blog engine and if so, do you have any recommendations?
There’s always going to be a database. Even a flat-file is still a database, albeit a less capable and probably slow one. But if your real goal is to have a serverless, zero-configuration database, then I recommend SQLite. You get all the benefits of a SQL database, but it reads from and writes to an ordinary disk file.
EDIT: And, it looks like people have already tried – and succeeded – in making the popular CMSs work with SQLite.
First things first, how is a flat file setup slower than running from a database? There is absolutely nothing deployed but flat files.
Secondly, one of the big advantages of using something like Jekyll is that your entire site can be put into source control and deployed, backed up, and moved around with complete ease. It can also go on any server, regardless of setup. You can chuck SQLite into source control, but what is the point if you just want flat files? It’ll be faster to serve files instead of an embedded db.