Archive for the tag 'linux'

Scheduled backup fails on Ensim Pro X for Linux

Once you edit the scheduled backup on Ensim Pro X for Linux v10.0.0, scheduled backup fails to function. Primary reason logged is ftp login failure. To fix this problem download the script and execute on the server.

Download :

http://download.swsoft.com/ensim/download/pro/linux/kb/2332/fix_schback_KB2332.pl

wget http://download.swsoft.com/ensim/download/pro/linux/kb/2332/fix_schback_KB2332.pl

# perl fix_schback_KB2332.pl

Reference : http://parallels.com

Advanced tool to enable/disable recursive DNS lookups

DNS recursion support is defined under BIND 9, using the `recursion’ and the `allow-recursion’ directives, as part of the options grammar.

Download

http://download.swsoft.com/ensim/download/pro/linux/kb/2344/recursivedns

Installation Instructions

Download the script and copy in “/usr/lib/opcenter/bind/” directory.

recursivedns : ‘recursivedns’, allows you to modify the DNS recursion settings for your EPL server.

Invoking the script

To display the recursion settings, just run `recursivedns
To turn on recursion support, run `recursivedns on
To turn off recursion support, run `recursivedns off
To allow recursion to all hosts, run `recursivedns +all

To disallow recursion to all hosts, run `recursivedns -all
To allow recursion to a particular host, run `recursivedns +HOST
To disallow recursion to a particular host, run `recursivedns -HOST
To display the usage, run `recursivedns –help

How do I change the IP address of my server in Ensim Pro for Linux.

If you are changing the IP address of your server you need to modify the following files with the new IP address, replacing any instance of the old IP address:

/etc/hosts
/etc/resolv.conf
/etc/sysconfig/network
/etc/sysconfig/network-scripts/ifcfg-eth0
/etc/virtualhosting/namebased_ip_addrs
/etc/httpd/conf/httpd20_app.conf
/etc/virtualhosting/localnameserver
/etc/bind/options.conf.wp
/home/virtual/FILESYSTEMTEMPLATE/siteinfo/etc/resolv.conf

Now reboot the server and then run the following command

# /usr/local/bin/NBDetectchanges

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 »