• 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.
  • 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.

Input Plesk vhost configuration and restore

Ivo

Basic Pleskian
Hey all.

I was working on custom changes in vhost conf folder for specific domain. I was using
https://docs.plesk.com/en-US/12.5/a...types/virtual-host-configuration-files.72064/

But I made a typo so it wouldn't work, while fixing it I noticed that
/usr/local/psa/admin/sbin/httpdmng --reconfigure first deletes vhost then creates it from start.

So what happened in our case, due to typo vhost file failed for one domain and for some reason reconfigure couldn't bring back correct ones for every other domain if we used reconfigure all. It deleted every vhost file but due to error in one it couldn't create new ones.

Tldr;
Made faulty vhost for one domain, used restart and reconfigure all domains and every website stopped working cause their vhost files were not configured cause of 1 faulty.

Can't you tweak that httpdmng script to ignore faulty one but create good ones, and not just delete vhost files and stop there when it encounters error?

I had to search for error, fix it, then starting reconfigure all again meanwhile every website on server showing plesk welcome page.

ps..

I am well aware that using reconfigure domain instead of all would prevent that issue today but who knows what situation will emerge in future and I or someone will use reconfigure all and that will crash every website if one of them has issues in vhost file.
 
Back
Top