Follow the instructions to a T on a fresh install after my linux machine crashed and moved to ProxMox and now installing the latest version im geting a bad gateway 502 error
php-fpm is running
php8.3-fpm.service - The PHP 8.3 FastCGI Process Manager
Loaded: loaded (/usr/lib/systemd/system/php8.3-fpm.service; enabled; preset: enabled)
Active: active (running) since Sat 2024-10-05 13:22:20 EDT; 3min 48s ago
Docs: man:php-fpm8.3(8)
Process: 1083 ExecStartPost=/usr/lib/php/php-fpm-socket-helper install /run/php/php-fpm.sock /etc/php/8.3/fpm/pool.d/www.conf 83 (code=exited, status=0/SUCCESS)
Main PID: 945 (php-fpm8.3)
Status: "Processes active: 0, idle: 2, Requests: 0, slow: 0, Traffic: 0req/sec"
Tasks: 3 (limit: 9446)
Memory: 26.9M (peak: 27.8M)
CPU: 85ms
CGroup: /system.slice/php8.3-fpm.service
├─ 945 "php-fpm: master process (/etc/php/8.3/fpm/php-fpm.conf)"
├─1081 "php-fpm: pool www"
└─1082 "php-fpm: pool www"
nginx config ; nginx-t
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
also i can not access the /setup . I believe this to be a php issue. however, I dont know how to fix it. Ive seen several articles that state that nginx isnt passing to php. but no fix as to how to associate the 2 together.
Ok so the solution is if you upgrade from php8.1 to php8.3 you need to change the sites available config to read the php-fpm8.3 sock instead of the php8.1 sock.
Marking this as resolved as of now. but the tutorial might need to be upgraded to use 8.3 since 8.1 is not available via the package manager on ubuntu 22.04
I’ve already created 2 other guides available on the forum, one for upgrading only PHP and the other for upgrading to Ubuntu 24.04, both of which specify the need to update the nginx config, if you’re using nginx and php-fpm.
By the way, for Ubuntu 22.04, PHP8.1 is default. It is not until Ubuntu 24.04 that it was upgraded to version 8.3 as minimum.