Php fpm

From wikinotes

PHP fastcgi process manager.

Documentation

official docs https://www.php.net/manual/en/install.fpm.php

Notes

Can be configured to listen on a port or socket.

Configure where php-fpm should listen

# /usr/local/etc/php-fpm.d/www.conf

[www]
listen=/var/run/php-fpm/php-fpm.sock

Direct your webserver to that port or socket

# /usr/local/etc/nginx/nginx.conf

http {
  server {
    fastcgi_pass unix:/var/run/php-fpm/php-fpm.sock;  # on socket
    fastcgi_pass 127.0.0.1:9000;                      # on loopback addr
    include /usr/local/etc/nginx/fastcgi_params;
  }
}