• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • 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.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

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