Internal Server Error many times

Whenever I add a new domain, I always get Internal Server Error page.
Checking logs, this is what I see.

[Tue Mar 04 16:11:13.790688 2025] [proxy:error] [pid 3094380:tid 124474840057536] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /run/php/php8.3-fpm-crm3.thakur.com.sock (*:80) failed
[Tue Mar 04 16:11:13.790751 2025] [proxy_fcgi:error] [pid 3094380:tid 124474840057536] [client 122.180.241.64:0] AH01079: failed to make connection to backend: httpd-UDS
[Tue Mar 04 16:11:13.862057 2025] [proxy:error] [pid 3094380:tid 124474808600256] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /run/php/php8.3-fpm-crm3.thakur.com.sock (*:80) failed
[Tue Mar 04 16:11:13.862080 2025] [proxy_fcgi:error] [pid 3094380:tid 124474808600256] [client 122.180.241.64:0] AH01079: failed to make connection to backend: httpd-UDS, referer: http://crm3.thakur.com/


In order to make this go away, I have to restart php-fpm8.3 every single time. Why is this happening?

Ok, So I was using v-add-domain script.

The solution to this is modify v-add-domain script under /usr/local/hestia/bin folder and change the below line

                $BIN/v-add-web-domain "$user" "$domain" "$ip" 'no'

to this

                $BIN/v-add-web-domain "$user" "$domain" "$ip" 'yes'

This will make sure, the PHP fpm service is restarted when the new domain is added.

1 Like