Internal Server Error Error Code: 500 (hestia-php.sock failed)


Ufter release upgrade from Ubuntu 20.04 to 22.04 I got error on site

Internal Server Error Error Code: 500. (Status Code: 502 Bad Gateway on request from server)

Other sites are working fine.

Reboot and restart nginx and php7.4-fpm service not help.


023/02/01 06:29:38 [crit] 912#0: *1 connect() to unix:/var/run/hestia-php.sock failed (2: No such file or directory) while connecting to upstream, client:, server: _, request: “GET / HTTP/1.1”, upstream: “fastcgi://unix:/var/run/hestia-php.sock:”, host: “”

conf files

; origin-src: deb/templates/web/php-fpm/default.tpl

listen = /run/php/
listen.owner = admin = www-data
listen.mode = 0660

user = admin
group = admin


server_name ;
root        /home/admin/web/;
index       index.php index.html index.htm;
access_log  /var/log/nginx/domains/ combined;
access_log  /var/log/nginx/domains/ bytes;
error_log   /var/log/nginx/domains/ error;

include /home/admin/conf/web/*;

location / {

    location ~* ^.+\.(jpeg|jpg|png|webp|gif|bmp|ico|svg|css|js)$ {
        expires     max;
        fastcgi_hide_header "Set-Cookie";

    location ~ [^/]\.php(/|$) {
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        if (!-f $document_root$fastcgi_script_name) {
            return  404;

        fastcgi_pass    unix:/run/php/;
        fastcgi_index   index.php;
        include         /etc/nginx/fastcgi_params;
        include     /home/admin/conf/web/*;

File /run/php/ exist and recreating

Please help

See link


It works.
Many thanks!

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.