Even without any change, Apache does "not restart after the configuration change for website"

Discussion in 'ISPConfig 3 Priority Support' started by Etcetera, Sep 29, 2020.

  1. Etcetera

    Etcetera Member HowtoForge Supporter

    My ISPConfig installation is in a state in which any website change, even if no actual changes are made, results in log entries like "Apache did not restart after the configuration change for website" and "Saved non-working config as /etc/apache2/sites-available/website.err". No ".err" file is there, though. Neither "systemctl status apache2.service" nor "journalctl -xe" produce any information about what happened, and /var/apache2/error.log or the website's error.log don't help, either...

    Any idea what may have gone wrong, or where else to look?

    Cheers,
    Etc
     
  2. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    Does it show for which site? Have you add a directive snippet there?

    ISPConfig does a rollback of the settings if it causes a configuration issue, did you add manual changes to a file?

    Can you share the output of
    Code:
    ls /etc/apache2/sites-available
     
  3. Jesse Norell

    Jesse Norell Well-Known Member Staff Member Howtoforge Staff

    You can try the 'apachectl -t' syntax test and 'apachectl -X' debug mode.
     
  4. Etcetera

    Etcetera Member HowtoForge Supporter

    It happens with every website I touch, regardless of what I change in it.
    It's impossible that all my website configs would be bad. Everything works perfectly except from this issue.
    When the messages show up in the ISPConfig log, they obviously show the site I last touched.
    it seems that my changes actually were made and written into the .vhost file.
    And even though ISPConfig says it saved the bad configuration in an .err file, it doesn't actually do that. There are no .err files. (Sorry, can't show the actual directory listing.)

    apachectl -t doesn't help, as there is no error in Apache; there wouldn't be even after an .err file would have been written. I would have to manually reinstate the bad file to do that, but as I said, there is no such file.
     
  5. Etcetera

    Etcetera Member HowtoForge Supporter

    Of course ;-)
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

Share This Page