• 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

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