• 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

Apache won't start, entire site down. Help needed urgent.

TheGamersVault

New Pleskian
I recently removed mod_pagespeed due to a nightmare of issues it caused with sites loading badly. During which Plesk auto-updated as well. Now httpd.service is failing and Plesk throws an error:

Trying to start Web Server:
Unable to make action: Unable to manage service by apache_control_adapter: ('start', 'web').

Fail2ban:
Unable to make action: Unable to manage service by f2bmng: ('start', 'fail2ban'). Error: Job for fail2ban.service failed because the control process exited with error code. See "systemctl status fail2ban.service" and "journalctl -xe" for details.
ERROR:f2bmng:Failed to start fail2ban service

I have ran plesk repair all -y and even removed and reinstalled both Apache and Fail2ban from scratch, I then regenerated the config files as well. But nothing is working.

I tried updating linux, (Centos) and everything else in between to no avail.

Error during plesk repair:
Code:
Repair server-wide configuration parameters for web servers? [Y/n] y
    Repairing server-wide configuration parameters for web servers .. [2015-12-21 16:34:47] ERR [util_exec] proc_close() failed ['/usr/local/psa/admin/bin/httpdmng' '--reconfigure-server'] with exit code [1]
[FAILED]
    - httpdmng failed: [2015-12-21 16:34:47] ERR [util_exec]
      proc_close() failed
      ['/usr/local/psa/admin/bin/apache_control_adapter' '--restart'
      '--restart-interval' '60' '--http-port' '7080' '--https-port'
      '7081'] with exit code [255]
      [2015-12-21 16:34:47] ERR [panel] Apache config
      (14507156850.34413800) generation failed: Template_Exception:
      Can not restart web server:
      file:
      /usr/local/psa/admin/plib/Service/Driver/Web/Server/Apache.php
      line: 110
      code: 0
      Can not restart web server:

What can I do to get my site back online ASAP?
 
Last edited:
Just a thought...

your apache is being configured using ports 7080 and 7081. Which should mean that you run nginx in front of the apache server as a revers proxy. But I don't see nginx mentioned in your error log.

Remove fail2ban again; just to get any potential trouble out the way.
Would then try to completely remove nginx (as a temporarily measure), check if the apache ports (and the rest of the config) afterwards resets itself to standard config and you can start the service. If it works, install nginx again through settings&tools, upgrades.

If not, you may want to try
# /usr/local/psa/bin/repair --update-vhosts-structure
before trying
# /usr/local/psa/admin/bin/httpd --reconfigure-all
again

If still not, you have to wait for someone more experienced then me...

Hope it helps,
Tom
 
Last edited:
Hello,

The issue you are reporting and the corresponding error message appear to be similar to those mentioned in the following KB article:

https://kb.odin.com/en/121478

I would recommend giving the suggested solution a try. If it fails to help, I would strongly urge you to contact Plesk support. Forum discussions are better suited for discussing the product features, or looking for a fix for annoying, but not critical, issues. When time is of the essence (such as when Apache fails to start and websites are unavailable), getting in touch with support is the way to make sure that you are up and running again as soon as possible.
 
Back
Top