• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.

Issue Restore apache module settings in config files

Henryk

New Pleskian
Hi all,

Background
in the plesk admin pages I activated an apache module for testing.
I was wondering why the web page showed only 2 activated modules at that time (fcgid and sysenv).
After deactivation of the activated module plesk changed many config files and deactivated almost all modules for real.

Of course, Apache could not start anymore because many commands were unknown.
I could manually activate the modules based on the error messages up to a point where Apache starts but hangs without error message.

Now I'm lost...

Questions
How could I restore the default apache module settings mainly at /etc/httpd/conf.modules.d? plesk repair web did not change the files
I have a plesk server backup. Would that fix the apache config files? It does not contain the files itself.
However, the apache module settings must be stored in the database. Could I extract the settings from the sql dump, restore it and force plesk to rewrite the apache config files?

Any help is appreciated.
Henryk
 
Hi,
Information about Apache modules stored here in PSA database:
SQL:
select * from ServiceNodeEnvironment where section='webservice' and name='apache_modules_list'\G
It is stored as a JSON array, but it is possible to read.

Also, you can try to switch MPM Mode from Event to Prefork. It allows to start Apache service.

And 'plesk repair db' highlights missing modules
Let me know if any further assistance is required.
 
You can run the following in SSH terminal:

plesk repair web -server
This will regenerate the Apache configuration files in Linux.

Then, you want to double-check the configuration of Apache modules and validate the Apache configuration:

plesk repair web -apache-modules
and
plesk repair web -validate-configuration


I highly suggest everyone who encountered this issue to bookmark this documentation for future reference. Good luck!
 
Back
Top