All SItes Reporting 110: Connection Timed Out

When I put that simple test.php file in the root of the website. It’s /var/log/apache2/domains/[domainname].error.log file adds this to the end:

2024/03/07 20:16:49 [error] 5798#5798: *4924 upstream timed out (110: Connection timed out) while connecting to upstream, client: 172.12.77.108, server: [domainname].com, request: "GET /test.php HTTP/1.1", upstream: "http://172.26.8.223:8080/test.php", host: "[domainname].com"

Any help, there?

@sahsanu Did I lose you? Is there anything else I can do?

PHPMyAdmin is also throwing an Internal Server Error, so just further confirming that we have a PHP issue on this server. How can I resolve this and get PHP working again??? Anyone?

@eris @Raphael

Do either of you have any insight? Looking for some guidance to get PHP working again. What am I missing? Please, any and all help is greatly appreciated. I really don’t want to re-install this entire server.

Thanks, in advance.

Yes, you did, sorry, was too late here.

Show the conf of one of your domains (replace YourUser and YourDomain with the actual data):

cat /home/YourUser/conf/web/YourDomain/nginx.conf
cat /home/YourUser/conf/web/YourDomain/apache2.conf

Good Morning, Sahsanu. Yeah, I figured. Not sure what country y’all are in…no worries. As mentioned, I appreciate your efforts GREATLY!

 cat apache2.conf
#=========================================================================#
# Default Web Domain Template                                             #
# DO NOT MODIFY THIS FILE! CHANGES WILL BE LOST WHEN REBUILDING DOMAINS   #
# https://hestiacp.com/docs/server-administration/web-templates.html      #
#=========================================================================#

<VirtualHost 172.26.8.223:8080>

    ServerName test.defdev.com

    ServerAdmin [email protected]
    DocumentRoot /home/buxjr/web/test.defdev.com/public_html
    ScriptAlias /cgi-bin/ /home/buxjr/web/test.defdev.com/cgi-bin/
    Alias /vstats/ /home/buxjr/web/test.defdev.com/stats/
    Alias /error/ /home/buxjr/web/test.defdev.com/document_errors/
    #SuexecUserGroup buxjr buxjr
    CustomLog /var/log/apache2/domains/test.defdev.com.bytes bytes
    CustomLog /var/log/apache2/domains/test.defdev.com.log combined
    ErrorLog /var/log/apache2/domains/test.defdev.com.error.log

    IncludeOptional /home/buxjr/conf/web/test.defdev.com/apache2.forcessl.conf*

    <Directory /home/buxjr/web/test.defdev.com/stats>
        AllowOverride All
    </Directory>
    <Directory /home/buxjr/web/test.defdev.com/public_html>
        AllowOverride All
        Options +Includes -Indexes +ExecCGI
    </Directory>

    <FilesMatch \.php$>
        SetHandler "proxy:unix:/run/php/php7.4-fpm-test.defdev.com.sock|fcgi://localhost"
    </FilesMatch>
    SetEnvIf Authorization .+ HTTP_AUTHORIZATION=$0

    IncludeOptional /home/buxjr/conf/web/test.defdev.com/apache2.conf_*
    IncludeOptional /etc/apache2/conf.d/*.inc
</VirtualHost>
cat nginx.conf
#=========================================================================#
# Default Web Domain Template                                             #
# DO NOT MODIFY THIS FILE! CHANGES WILL BE LOST WHEN REBUILDING DOMAINS   #
# https://hestiacp.com/docs/server-administration/web-templates.html      #
#=========================================================================#

server {
        listen      172.26.8.223:80;
        server_name test.defdev.com ;
        error_log   /var/log/apache2/domains/test.defdev.com.error.log error;

        include /home/buxjr/conf/web/test.defdev.com/nginx.forcessl.conf*;

        location ~ /\.(?!well-known\/|file) {
                deny all;
                return 404;
        }

        location / {
                proxy_pass http://172.26.8.223:8080;

                location ~* ^.+\.(css|htm|html|js|json|xml|apng|avif|bmp|cur|gif|ico|jfif|jpg|jpeg|pjp|pjpeg|png|svg|tif|tiff|webp|aac|caf|flac|m4a|midi|mp3|ogg|opus|wav|3gp|av1|avi|m4v|mkv|mov|mpg|mpeg|mp4|mp4v|webm|otf|ttf|woff|woff2|doc|docx|odf|odp|ods|odt|pdf|ppt|pptx|rtf|txt|xls|xlsx|7z|bz2|gz|rar|tar|tgz|zip|apk|appx|bin|dmg|exe|img|iso|jar|msi|webmanifest)$ {
                        try_files  $uri @fallback;

                        root       /home/buxjr/web/test.defdev.com/public_html;
                        access_log /var/log/apache2/domains/test.defdev.com.log combined;
                        access_log /var/log/apache2/domains/test.defdev.com.bytes bytes;

                        expires    max;
                }
        }

        location @fallback {
                proxy_pass http://172.26.8.223:8080;
        }

        location /error/ {
                alias /home/buxjr/web/test.defdev.com/document_errors/;
        }

        include /home/buxjr/conf/web/test.defdev.com/nginx.conf_*;
}

ALL WordPress (read: PHP sites) went down simultaneously, after a scheduled apt update/upgrade, so I don’t think that it has to do with the config of any one site, as much as it has to do with how this server hands off PHP to PHP-FPM from either Nginx or Apache.

I spun up a new user and website last night and added just that most basic/simple PHP file and a simple HTML file. Again, it serves up the HTML without issue, but that simple PHP file, spins out and delivers Internal Error 500.

Are there any components that I can force a reinstall of to try to get this server handling PHP correctly again? I have a good 30+ sites down. It’s major bummer.

Anything you need me to do, I am here and ready to try. Thanks, again.

@sahsanu Is it possible that whatever version of Nginx or Apache, the server is now running, is no longer compatible with PHP 7.4? I’m grabbing at straws here, but I am completely stumped as to why this server can’t handle PHP any more…thoughts?

@sahsanu Did I lose you again?

v-list-sys-php should return a list with all supported versions

If it not listed run v-add-web-php 7.4

Hey @eris , great to hear from you! Sure.

v-list-sys-php
VERSION
--------
7.3
7.4

Hestia is running fine. It is only the websites that don’t run php anymore.

What else can I check/do?

@sahsanu Do you see anything amiss? I can’t for the life of me see anything in these conf files that would point to an issue. Please, what else can it be? I’ve got to get these sites running ASAP.

Why local host?

Never mind:

First the good thing server the server is online but we had to open port 8080 and 8443 in the firewall.

Have no idea why …

1 Like

Confirmed, server is operational again. Kudos to Jaap, for all his efforts in diagnosing this odd issue.

As usual, I thank you, from our whole team. You are a life-saver, Jaap!

1 Like

Sorry for the delay but I had a complicated day. Anyway, glad you finally fixed it.

It was strange:
First of all all /var/run/php/domain.sock files where missing

After recreating a few apache2 wasn’t responding even if I disabled all config except ip.conf

After opening port 8080 and 8443 in the firewall it worked again.

Very strange …

1 Like

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