nginx and Apache fixes
Server blocks, PHP-FPM sockets, redirects, certificates and upload limits.

nginx 502 Bad Gateway with PHP-FPM: read the error log line first
A 502 means nginx got no usable answer from PHP-FPM. One line in the nginx error log says why: no socket, no permission, a dead worker or a big header.
Install phpMyAdmin on Ubuntu with nginx and PHP-FPM, the manual way
Download and verify the archive, unpack it outside the web root, write a server block with a PHP location, add config.inc.php and lock the address down.
Increase the maximum number of open files on Ubuntu (ulimit -n)
For a service such as nginx or PHP-FPM set LimitNOFILE in a systemd drop-in. The limits.conf file only changes login sessions, which is why edits seem ignored.
Can't install a Let's Encrypt certificate through Plesk after an update
When Plesk cannot reach Let's Encrypt after an update (cURL error 6, could not resolve host), restart its own services, then check DNS and the API host name.
Laravel in a subdirectory: the nginx server block
Serve a Laravel project under /shop with one prefix location that aliases its public folder, a nested PHP location and a named fallback to its index.php.
localhost/phpmyadmin does not open: the checks in order
If localhost/phpmyadmin does not open, check the port, the alias, PHP and then MySQL, in that order. The login is a MySQL account, not a phpMyAdmin one.
PHPSolvedThe fix first, then the reason