Websites are not opening after updating the packages | 502 error

SYSTEM INFORMATION
Operating system Ubuntu Linux 22.04.2
Webmin version 2.021
Virtualmin version 7.7
Apache version 2.4.52
Authentic theme version 20.21

What type of websites?

Can you still ping them? Can you still login to Virtualmin?

502 implies a database problem (not always)

we really need more information → any errors in the logs

wordpress wobsites

yes i am still able to login to virtualmin

Good that at least is a good start.

Oh dear ! my old enemy! again.
You have multiple WP sites? on different domains? so are they all giving 502?
Have you checked that the MariaDB server is running? Indeed is Apache server still running?

Anything in PHP log?

Apache log file

MariaDB server is running

Mariadb is working

please reply

Mariadb is working

Apache log file

please reply

Sorry, diverted to my own problems, and thought someone else might chip in. but it looks very quiet on here today (Black Friday/Thanksgiving possibly)

Anyway MariaDB looks good but from the PHP log it looks like mod_fcgid is shutting down Apache (that would be presented to the user as a 502)

If you go into Virtualmin -> Server Configuration -> PHP Options
you are using FPM - yes?

and which PHP version?
and which PHP modules?

Oh, and you are using Lets Encrypt as your SSL? You are accessing Virtualmin https://domain.tld:10000

@Stegan Thank You For the Solution

My Mentor Saw The Problem and solved it solved it successfully

the problem was with the PHP version , just as you pointed

thank You

I’m a little bit (only a little bit) surprised as you were running PHP-FPM 7.4 (not that far out of date) though possibly one of your WP plugins/themes required PHP 8.

Anyway glad all is fixed.

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