Archive for the tag 'Panel'

Ensim Pro Control Panel and Yum version

Ensim Pro is compatible with yum version 2.4 or later. If an earlier version is installed, the installer tries to install/update the installed version; however, to avoid installation failures, it is recommended that you verify the version of yum installed on the server. To verify the yum version, run the following command at the prompt:

/usr/bin/yum –version

Reseller bandwidth usage not working in Ensim Control Panel

The problem can appears on the server with large amount of sites, where server is heavily loaded.

To fix the issue you have to increase some parameters in apache config file /usr/lib/ensim/frontend/httpd/conf/eplhttpd.conf.template

Add there env apache module:

LoadModule env_module modules/mod_env.so

and add there following values to proxy:

SetEnv force-proxy-request-1.0 1
SetEnv proxy-nokeepalive 1

Also increase Timeout value at the begining of this file, from 210 to 500 :

Timeout 500

Restarting epld is necessary to apply changes.

Reference: http://parallels.com

Apache crash during high load in Ensim Pro Control Panel

Apache crash on high load with the following error in the error log: “(28) No space left on device: mod_python: Failed to create global mutex 1 of 4 exclog: signal received 15″

The problem may be caused by small number of semaphores in system.

Resolution is to increase number of semaphores.

To increase the number of semaphores please take the following steps, Login to your PPCPL server as root. Open the /etc/sysctl.conf file using a text editor

vi /etc/sysctl.conf

Locate the kernel.sem parameter and double current values

If the parameter is not defined in the /etc/sysctl.conf file you can obtain current values by executing the following command:

cat /proc/sys/kernel/sem

After obtaining current values, double them and add to the /etc/sysctl.conf file so that the line looks like.

kernel.sem = 512 32000 100 512

Execute sysctl in order the changes to take effect

sysctl –p

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

« Prev - Next »