I'm setting up a web server. I have a freshly installed Ubuntu 22.04,
nginx (welcome page works), and
php-fpm which installed php8.1 and php-fpm8.1.
To test PHP, I created a
/var/www/<my domain>/info.php which just includes:
<?php phpinfo(); ?>
Browsing to this page gives Error 502 - Bad Gateway.
Checking /var/log/nginx/error.log shows this:
connect() to unix: /var/run/php/php7.4-fpm.sock failed (2: No such file or directory)
I verified that
php8.1-fpm.sock but indeed not
What is causing the request to look for php7.4? How can I fully configure 8.1 so as not to be reliant on old/multiple versions of php?