In a previous article, I described how to rebuild the Apache configuration on a Plesk 9 server. It appears that in Plesk 10 this now should be done with the httpdmng command, and attempting to run websrvmng returns this message:
[root@server1 ~]# /usr/local/psa/admin/bin/websrvmng -av WARNING: You are using obsolete option, use corresponding option of httpdmng.
That may complete successfully now, but in the future it will likely be deprecated on Plesk 10 and beyond. The correct way to rebuild the Apache configuration on Plesk 10 is as follows.
First, this particular client had deleted several virtualhost include files, and the fact that they didn’t exist was interfering with the rebuild. I made a backup of Plesk’s vhost include file, and then emptied the original:
[root@server1 ~]# cp /usr/local/psa/admin/conf/vhosts_bootstrap.conf ~ [root@server1 ~]# > /usr/local/psa/admin/conf/vhosts_bootstrap.conf
I then rebuilt the Apache configuration with this command:
[root@server1 ~]# /usr/local/psa/admin/bin/httpdmng --reconfigure-all