On 2018-07-06, Teno Deuter <[email protected]> wrote:
> Dear support team,
There is no "support team" ..
> in a OpenBSD 6.3 installation with php packges added, I have the
> following httpd configuartion:
>
> server "domain" {
> listen on * tls port 443
> listen on :: tls port 443
> tls {
> certificate "/etc/ssl/private/server.pem"
> key "/etc/ssl/server.key"
> }
>
> directory index index.php
>
> location "/pub/*" {
> directory auto index
> }
>
> root "/htdocs/domain"
>
> location "*.php" {
> fastcgi socket "/run/php-fpm.sock"
> }
> }
>
> the above generates a 500 error!
Other replies explain this, but one extra:
> Also, no '/run/php-fpm.sock' exists!
This is relative to the chroot jail, by default /var/www, so it would
look like this:
$ ls -l /var/www/run/php-fpm.sock
srw-rw---- 1 www www 0 Jul 5 21:42 /var/www/run/php-fpm.sock