Archive for March, 2010

Hotfix for characters allowed as password in protected directory section

Only 20 characters allowed as password in protected directory section.

For RHEL4:

http://download.swsoft.com/ensim/download/pro/linux/10.0.0/hotfix/19/rhel4/epl-apache-10.0.0-31.rhel.4ES.i386.rpm

Installation Procedure:

Get the RPMs from the locations mentioned above.

2. Upgrade the RPMs.

For RHEL4ES:

rpm -Uvh epl-apache-10.0.0-31.rhel.4ES.i386.rpm

3. service epld restart.

How to remove a website manually in Ensim Pro Control Panel

Sometimes, the site is not fully removed from the server so it should be deleted manually. Here are all steps that should be done, but please note that after deleting the site can not be restored back.

Everything should be done from under root user.

Check which siteX the site corresponds to:

sitelookup -d domain.com site_handle

and what adminX is responsible for it:

sitelookup -d domain.com wp_user

Let’s say siteX is site handler for the necessary domain, and adminX is the owner.

Remove user content physically from the server:

rm -rf /home/virtual/siteX
rm -f /home/virtual/adminX
rm -f /home/virtual/domain.com
rm -f /etc/httpd/conf/virtual/siteX
rm -rf /etc/httpd/conf/siteX
rm -f /etc/webalizer/domain.com
userdel adminX

And remove the records from the system database:

psql appldb
delete from telnet where site_id = siteX;
delete from apache where site_id =site X;
delete from ssh where site_id = siteX;
delete from users where site_id = siteX;
delete from bandwidth_log where site_id = siteX;
delete from bandwidth_spans where site_id = siteX;
delete from bandwidth where site_id = siteX;
delete from free_uids where site_id = siteX;
delete from diskquota where site_id = siteX;
delete from ipinfo where site_id = siteX;
delete from ipinfo_ipaddrs where site_id = siteX;
delete from ipinfo_nbaddrs where site_id = siteX;
delete from reseller where site_id = siteX;
delete from siteinfo where site_id = siteX;

Finally, you need to go through all the files in /etc/virtualhosting/mappings and check if any of them refer to the site you’re deleting. You can use grep to quickly see if/which files might refer to the site to be deleted:

cd /etc/virtualhosting/mappings
grep -l siteX *

And finally - restart ensim CP:

/etc/init.d/epld stop
/etc/init.d/epld start

Reference and Credit : http://parallels.com/

Disk Quota Problems with Parallels Pro Control Panel

dmesg and /var/log/messages show the following messages.

kernel: VFS: Can’t read quota structure for id 32048.
kernel: VFS: Quota for id 32049 referenced but not present.

This can happen due to a server crash when the filesystems are not unmounted properly, causing the filesystem and quota information to go out of sync.

To fix this run the following commands:

quotaoff -a
quotacheck -agmi
quotacheck -aumi
quotaon -a

quotacheck Scan a filesystem for disk usage, create, check and repair quota files

How to import sites with custom MX records Ensim Pro Control Panel Linux

The import of a site with custom MX records could cause creation of duplicated MX records: apart from custom MX records which are defined in the imported archive, default MX records could be created.

In order to avoid this, please proceed through the following steps when importing a site with custom MX records:

1. Before importing sites disable the creation of default MX records. Run the following command(s) as root:

/usr/local/bin/SetDefaultMXRecordState -f on

2. Restart epld service using the following commands as root:

service epld restart

3. Import site from the archive.

4. When the site is succesfuly imported, please turn off the freezing of MX records for imported sites.

For this, run the following commands as root:

/usr/local/bin/SetDefaultMXRecordState -f off

Reference : http://parallels.com/

Zend Optimizer Installation on Ensim Pro Control Panel

Steps to Install Zend Optimizer on Ensim Pro for Linux.

1.Download Zend Optimizer from www.zend.com and follow the installation procedure.

2.Once the installation is complete, create tar file using following command.

# tar cf virtDomain.tar /usr/local/Zend

(Assuming that Zend has been installed at default location - /usr/local/Zend)

3.Copy this tarball to /etc/appliance/customization

4.Download the
http://download.swsoft.com/ensim/download/pro/linux/kb/2800/virtDomain.sh
custom script named virtDomain.sh and upload the same to /etc/appliance/customization

5.Download the
http://download.swsoft.com/ensim/download/pro/linux/kb/2800/editVirtDomain.sh
custom script named editVirtDomain.sh and upload the same to /etc/appliance/customization

Note : you need to replace Zend Extension part with one copied from /usr/local/Zend/etc/php.ini in the attached scripts.

6.chmod both script to 755

Now all new domain created on server with any security level will be Zend enabled. If you want existing domain with high security to be zend enabled then you just need to re-save the site from Webppliance.

Reference: http://parallels.com/

« Prev - Next »