Archive for March, 2010

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

SBDavid

Creating Repos for RHEL / Centos

Creating Repos for RHEL / Centos

Please follow the given steps to setup a repos on the local server. Make sure that you have installed rpm createrepo, You can download the required rpm for your os from:

http://dag.wieers.com/packages/createrepo/

# mkdir -p /repos/os

Copy all the rpm from all redhat cd to this directory.

# mkdir /repos/updates

# createrepo /repos/os

# createrepo /repos/updates

After doing this you just need to run the ensim installer in the following way.

# sh ensim-installer.sh –email=you@youremail.com –cdrom=n -o file:///repos/os -u file:///repos/updates

When the cron file /etc/cron.daily/1hup_apache_logs is executed the httpd service is not able to reload properly and it get stuck. The service is dead and it needs to be restarted manually. Even the server load goes high. And in some cases the server even crashes.

To Resolve this issue.

Change “reload” to “restart” in /etc/cron.daily/1hup_apache_logs

Content of /etc/cron.daily/1hup_apache_logs are as follows:

#!/bin/bash
#/etc/rc.d/init.d/httpd_app_init reload-grc
# XXX Fix of the “lost child came home” issue
! /sbin/chkconfig httpd || /etc/rc.d/init.d/httpd_app_init reload

And then change to

#!/bin/bash
#/etc/rc.d/init.d/httpd_app_init reload-grc
# XXX Fix of the “lost child came home” issue
! /sbin/chkconfig httpd || /etc/rc.d/init.d/httpd_app_init restart

Reference: http://parallels.com

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

freshclam process starts despite clamav disabled

freshclam process started by /etc/cron.daily/freshclam script which doesn’t check if clamd is disabled, to resolve this we have to modify the /etc/cron.daily/freshclam script adding the check whether the clamd is disabled.

Log into your Ensim as root
Open the /etc/cron.daily/freshclam
Replace the following lines

/usr/bin/freshclam \
–quiet \
–datadir=”/var/clamav” \
–log=”$LOG_FILE” \
–log-verbose \
–daemon-notify=”/etc/clamd.conf”

with the lines

if [ "x" != "x`chkconfig --list clamd | grep on`" ]; then
/usr/bin/freshclam \
–quiet \
–datadir=”/var/clamav” \
–log=”$LOG_FILE” \
–log-verbose \
–daemon-notify=”/etc/clamd.conf”
fi

« Prev - Next »