• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Resolved WordPress website showing 502 error

AboodHamwi

New Pleskian
Server operating system version
Ubuntu 20.04.5 LTS
Plesk version and microupdate number
Plesk Obsidian 18.0.52 Update #3
Hi,

My server has restarted, and after that the WordPress website not opening and showing 502 error, I check the logs, this is what I'm getting
16075#0: *54 connect() failed (111: Connection refused) while connecting to upstream
also, in Plesk repair, it's showing error for the web
Checking Plesk version .............................................. [OK]

Checking Apache configuration
AH00112: Warning: DocumentRoot
[/usr/share/plesk-service.localdomain] does not exist
AH00112: Warning: DocumentRoot
[/usr/share/plesk-service.localdomain] does not exist
AH00526: Syntax error on line 38 of
/etc/apache2/plesk.conf.d/vhosts/feds.ae.conf:
SuexecUserGroup configured, but suEXEC is disabled: Missing suexec
binary /usr/lib/apache2/suexec
.................................................................. [ERROR]

Checking for custom configuration templates ......................... [OK]

Checking associations between domains and IP addresses .............. [OK]

Checking for corrupted reference between IP collections and
IPaddresses ......................................................... [OK]

Checking for links between APS applications and subscriptions ....... [OK]

Checking for nginx ULIMIT value ..................................... [OK]

Checking for extra configurations in database not owned by any object
................................................................... [OK]
Checking the status of the required Apache modules
There is a disabled required Apache module: mpm_event ............. [ERROR]
There is a disabled required Apache module: mpm_prefork ........... [ERROR]
Checking the configuration of Apache modules ........................ [OK]


and even if try to repair, it's not, any help in this regards
 
Some basic checks to do:

What's the output of
# service apache2 status
?

In Tools & Settings > General Settings > Apache Webserver what is the setting in Apache modules for the MPM mode?

1685724593481.png

The symptoms sound like a part of Apache is missing. As if someone manually intervened and removed part of it or updated it. Maybe try to fix it with

# sudo apt-get install apache2-bin
# sudo a2enmod mpm_prefork

?
 
Hi,

The output of # service apache2 status
● apache2.service - The Apache HTTP Server
Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Fri 2023-06-02 16:32:10 UTC; 24min ago
Docs: Apache HTTP Server Version 2.4 Documentation - Apache HTTP Server Version 2.4

Jun 02 16:32:10 Feds-new2 systemd[1]: Starting The Apache HTTP Server...
Jun 02 16:32:10 Feds-new2 apachectl[25007]: AH00112: Warning: DocumentRoot [/usr/share/plesk-service.localdomain] does not exist
Jun 02 16:32:10 Feds-new2 apachectl[25007]: AH00112: Warning: DocumentRoot [/usr/share/plesk-service.localdomain] does not exist
Jun 02 16:32:10 Feds-new2 apachectl[25007]: AH00526: Syntax error on line 38 of /etc/apache2/plesk.conf.d/vhosts/feds.ae.conf:
Jun 02 16:32:10 Feds-new2 apachectl[25007]: SuexecUserGroup configured, but suEXEC is disabled: Missing suexec binary /usr/lib/apache2/suexec
Jun 02 16:32:10 Feds-new2 apachectl[25004]: Action 'start' failed.
Jun 02 16:32:10 Feds-new2 apachectl[25004]: The Apache error log may have more information.
Jun 02 16:32:10 Feds-new2 systemd[1]: apache2.service: Control process exited, code=exited, status=1/FAILURE
Jun 02 16:32:10 Feds-new2 systemd[1]: apache2.service: Failed with result 'exit-code'.
Jun 02 16:32:10 Feds-new2 systemd[1]: Failed to start The Apache HTTP Server.



we don't know what append to the server, in the morning it was working, but suddenly it's not, I tried to restore a backup on the server level from 2 days back, same issue showing,

once I'm opening the Apache settings in plesk, I'm getting 500 server error
 
Syntax error on line 38 of /etc/apache2/plesk.conf.d/vhosts/feds.ae.conf:
is a different error than described in this thread. Could you please check what is in line 38 of that file? Or: Remove the file altogether (you can always recreate it by "plesk repair web feds.ae.conf" later.
 
Back
Top