I just spent a couple of hours installing and configuring PHP 7.2 on my OpenBSD server. Set up a new site in httpd and tried to install Kirby 3, only to be greeted by an error telling my I need Apache, Nginx, or Caddy.
I’m wondering why this hard requirement is there? I could understand if it’d be a strong recommendation, but now I simply can’t use Kirby on this server. Is there a reason for this? And can this check perhaps be disabled somewhere?
my guess its a matter of having the time/ressources to check if everything is ok on another server. but you can give it a try with a hack. you need to return true here:
but please keep in mind that unexpected things might happen when using a hack like that.
Thanks for your answer I usually read such requirements as ‘we tested with these configurations, if you’re using anything else we won’t support you with it’. But because of the check in the codebase this turns into a hard requirement.
The reason I’m asking for a ‘why’ is because I want to know if something really depends on any of these servers, making (part of) Kirby unusable if I go through with httpd. Because in that case I’ll just spin up a second server with Apache to save me a headache later on.
Thanks for the pointer to the code If I don’t get the why answered I’ll try this and see if something breaks beyond repair.
Apache and Nginx have lots more features than httpd, so I can imagine some part of the codebase really depends on these webservers. I just want to know what will break if not using any of these
The reason why this server check made it into the code is that in the past we had developers who, when finally trying to deploy their projects on a client’s server, suddenly ran into issues because the server wasn’t compatible and the screaming was big.
We are currently discussing the possibility to disable this check via a config setting. But we will then make it very clear that we do not support any servers that are not listed in our requirements and that it is the developers’ problem if they run into any issues.
If you find Kirby running without any issues on other servers than the ones listed in our requirements, please feel free to report your experiences.
I understand the reasoning and assumed this was it, but it’s good to have it confirmed. I won’t promise that I’ll dive into this, but if I do I’ll be sure to let you know how it goes.