• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

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