Archive for the tag 'Parallels'

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/

Apache crash during high load with Parallels Pro Control Panel

Apache crash on high load with the following error in the error log: “No space left on device:” The problem may be caused by small number of semaphores in system. 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

Please note, values for your installation may varry. Execute sysctl in order the changes to take effect.

sysctl –p

Parallels Pro Control Panel for Linux on fresh install of CentOS 5.3 / RHEL 5.3

Prior to installation Parallels Control Panel for Linux on the mentioned operations system please check if the system has rpm user and rpm usergroup:

You need to create this user and appropriate usergroup. To do so please follow next steps:

Log as root to your PPCPL box

Type the following commands:

/usr/sbin/groupadd -g 37 rpm > /dev/null 2>&1
/usr/sbin/useradd -r -d /var/lib/rpm -u 37 -g 37 rpm -s /sbin/nologin > /dev/null 2>&1

After adding the rpm user and rpm usergroup you can proceed with the Parallels Pro Control Panel installation.

Reference : http://parallels.com/

« Prev - Next »