Zend Server Free Edition – How to Remove Vhost Previously Created in Trial Mode
While using Zend Server in Trial mode, a vhost was created using the Zend Server UI - Applications | Virtual Hosts page.
Later on, Free edition license was registered, and the capability to manage vhosts is not available anymore (see Zend Server Editions page for more details).
The following "recipe" is a manual process meant to remove any Apache virtual hosts created by the Trial / Enterprise version.
rm -r /usr/local/zend/etc/sites.d/http/$vhname
sqlite3 /usr/local/zend/var/db/zsd.db "delete from ZSD_VHOSTS where name = '$vhname';"