I’ve been struggling with getting nginx and php to be friendly to each other in OpenBSD.
Read all the wonderful allocates for nginx and thought it was time to test the waters when OpenBSD embraced the web server by incorporating it into the Base build.
Successfully deployed html serving nginx, reverse proxy nginx, and now I really really need to get PHP hosting, and SSL hosting to work. All the documentation out there says it is sooo simple, but why haven’t I been able to do it for the 1st 3 tries?
As always, the key thing to (L)earning something new is, not to chew off more than you can.
So, if you’re going to try something new. Take a list of the minimal ingredients, and only work with those ingredients.
Like the fool I am, I tried the new install using a mix of the base install of nginx with the package install.
Keep your above, simplified environment, sane.
Don’t be like me, where I’m mixing things randomly.
When I finally realised:
My random behaving system isn’t so random after all. It just took a long time to realise this.
The php-fpm sample configuration file is chroot (just like the default Apache 1.3 chroot base install.)
Don’t get ahead of myself. Why am I installing the nginx package?
OpenBSD systems are relatively easy to rebuild, reinstall, just build the basic, feature complete system you require and nothing more.