How to delete sites manually with Ensim Pro (Linux) when normal deletion fails

This solution was given to us by the Ensim staff, as a paid support request. Hopefully, if you’re reading this, you will not have to buy a support ticket:

To delete the sites manually you will have to do the following:

1. Find the siteID.
sitelookup -d domainname /etc/virtualhosting/mappings/
grep siteID *
3. Remove the entry from domainmap file and regenerate the domainmap.db using
makemap hash domainmap.db < domainmap
4. cd /home/virtual/
rm -rf siteID/
5. Remove any apache entries.
cd /etc/httpd/conf/
rm -rf siteID siteID.preview
cd virtual
rm -f siteID
cd ../virtual.preview
rm -f siteID
6. Restart httpd.
service httpd restart
7. Remove cron jobs
cd /etc/cron.weekly/
rm -f 0virtualhosting.siteID
cd ../cron.daily/
rm -f 0virtualhosting.siteID

How to fix mod_perl with Apache2 on Ensim 3.7.x and Ensim 4.0.x?

Fixing mod_perl

Based on Ensim Knowledge ID:964

mod_perl fails with Apache 2.0 on Ensim Pro/Basic


When using Apache 2.0 with Ensim Pro/Basic, mod_perl no longer functions.  This is due to improper module references.  Ensim will provide an official fix in an upcoming Erratum.  A symptom of this error will be the following error information in /var/log/httpd/error_log

[Wed May 19 13:42:14 2004] [error] failed to resolve handler `Apache::Registry’
[Wed May 19 13:42:14 2004] [error] [client] Can’t locate loadable object for module Apache::Constants in @INC (@INC contains: /usr/lib/perl5/5.8.1/i386-linux-thread-multi /usr/lib/perl5/5.8.1 /usr/lib/perl5/site_perl/5.8.1/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.1 /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.1/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.1 /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.1/i386-linux-thread-multi /usr/lib/perl5/5.8.1 . /etc/httpd/ /etc/httpd/lib/perl) at /usr/lib/perl5/site_perl/5.8.1/i386-linux-thread-multi/ line 14
Compilation failed in require at /usr/lib/perl5/site_perl/5.8.1/i386-linux-thread-multi/ line 6.
BEGIN failed–compilation aborted at /usr/lib/perl5/site_perl/5.8.1/i386-linux-thread-multi/ line 6.
Compilation failed in require at /usr/lib/perl5/site_perl/5.8.1/i386-linux-thread-multi/Apache/ line 2.
BEGIN failed–compilation aborted at /usr/lib/perl5/site_perl/5.8.1/i386-linux-thread-multi/Apache/ line 2.
Compilation failed in require at (eval 1) line 3.

Applies to:



 Ensim Pro, Ensim Basic



 3.7.x, 4.0



 Red Hat Enterprise, Fedora


mkdir /root/working
cd /root/working
gunzip mod_perl.pyc.gz
cp /usr/lib/python2.2/site-packages/vh3/modules/mod_perl.pyc /root/working/mod_perl.pyc.backup
cp mod_perl.pyc /usr/lib/python2.2/site-packages/vh3/modules/mod_perl.pyc
service webppliance restart
for i in $(sitelookup -a site_handle); do EditVirtDomain $i; done
rpm -e mod_perl-httpd13

How to look up admin info about a site?

usage: sitelookup [ -w  ] [ -s  ] [ -d  ]

[ -u ] [ -a ]
[ domain,wp_user,site_handle,site_root,site_admin ]

-w:wp_user is the top level unix user (admin1)
-s:site_handle is the site equivalent of wp_user (site1)
-d:domain is the hostname for a site (
-u:site_admin is the username for a site (bob)
-a:returns info on all sites

E.g. sitelookup -d site_handle

How to make a site IP based Solution:

A) Converting a Name-based site to a ip-based site
login as root and run the command:

EditVirtDomain -c ipinfo,namebased=0,nbaddrs=\[\],ipaddrs=\[new_ip_addr\] domain_name
new_ip_addr is the new ip address
domain_name is the domain name of the site

e.g. EditVirtDomain -c ipinfo,namebased=0,nbaddrs=\[\],ipaddrs=\[\]

B) Converting an ip-based site to a Name-based site

login as root and run the command:

EditVirtDomain -c ipinfo,namebased=1,ipadrs=\[\] domain_name
domain_name is the domain name of the site

e.g. EditVirtDomain -c ipinfo,namebased=1,ipaddrs=\[\]

I cannot set anonymous access to off within an Ensim FrontPage site


When trying to turn off the anonymous browsing capabilities for a web or a subweb in FrontPage, when the FrontPage extensions have been added through the Ensim control panel, the following error is produced by FrontPage:

The role(s) 'Administrator' exceed the rights specified for anonymous access 
and contain the the account used for anonymous logons by your web server 
directly or indirectly through at least one of the following members: 
DOMAIN\virtualuser'. To fix this remove these members from those roles.


    • Disable the FrontPage extension within the ensim control panel
    • Install the FrontPage extensions to the site with DOMAIN/Administrator user
    • Add a user to the website, with role administrator, but make sure it is not the Ensim user
    • Run the server health check to make sure that the permissions are set right
    • Install the subwebs, and make the permissions independent

At this point, you should be able to turn anonymous browsing off for that subweb