Archive

Archive for September, 2012

How to install SIM (System Integrity Monitor)

September 28th, 2012 No comments

How to install SIM (System Integrity Monitor)

 

Description:
SIM is a system and services monitor for ‘SysVinit’ systems. It is designed to be intuitive and modular in nature, and to provide a clean and informative status system. It does this by consistently verifying that services are online, load averages are in check, and log files are at reasonable sizes. Many other SIM modules sport different and in-depth features to bring a well rounded tool to your disposal to stop otherwise common issues daunting internet hosts.

 

Features:
– Service monitoring of HTTP, FTP, DNS, SSH, MYSQL & more
– Event tracking and alert system
– Auto restart ability for downed services
– Checks against network sockets & process list to ensure services are online
– Advanced HTTP service monitoring, to prevent commonly encountered issues
– System load monitor with customizable warnings & actions
– Ability to auto restart system with definable critical load level
– Priority change configurable for services, at warning or critical load level
– Informative command line status display
– Easily customizable configuration file
– Auto configuration script
– Auto cronjob setup feature
– Simple & Informative installation script
– Integrated auto-update feature

Installation :

Go to the below path

cd /usr/local/src/

Download the tar file.

wget http://www.rfxn.com/downloads/sim-current.tar.gz

It will show below output:

–2012-09-28 09:59:13– http://www.rfxn.com/downloads/sim-current.tar.gz
Resolving www.rfxn.com… 129.121.132.46
Connecting to www.rfxn.com|129.121.132.46|:80… connected.
HTTP request sent, awaiting response… 200 OK
Length: 27273 (27K) [application/x-gzip]
Saving to: `sim-current.tar.gz’

100%[==============================================================================================================================>] 27,273 111K/s in 0.2s

2012-09-28 09:59:14 (111 KB/s) – `sim-current.tar.gz’ saved [27273/27273]

Untar the file

tar -xvf sim-current.tar.gz

Go to that folder

cd sim-3.0

Run the below command to proceed with the installation

 sh ./install.sh -i

Once the installation is complete it will show below output.

Installation Summary:
Base path: /usr/local/sim
Configuration file: /usr/local/sim/config/conf.sim
Configuration symlink: /etc/conf.sim
Module control file: /usr/local/sim/config/mods.control
Module control symlink: /etc/sim.mods
Executable: /usr/local/sim/sim
Executable symlink: /usr/local/sbin/sim
[email protected] [/usr/local/src/sim-3.0]#

To receive email notification you have to edit /etc/conf.sim file.

 

Categories: CPanel / WHM, Installation Tags:

Google Apps plugin for cpanel

September 24th, 2012 No comments

How to install google apps plugin for cpanel.

Go to the below path where you want to download the tar file.

cd /usr/local/src/

Download the tar file.

[email protected] [/usr/local/src]# wget http://google-apps-wizard-cpanel-plugin.googlecode.com/files/gaw-2.0.tar

–2012-09-24 15:59:34– http://google-apps-wizard-cpanel-plugin.googlecode.com/files/gaw-2.0.tar
Resolving google-apps-wizard-cpanel-plugin.googlecode.com… 74.125.31.82, 2404:6800:4008:c00::52
Connecting to google-apps-wizard-cpanel-plugin.googlecode.com|74.125.31.82|:80… connected.
HTTP request sent, awaiting response… 200 OK
Length: 184320 (180K) [application/octet-stream]
Saving to: `gaw-2.0.tar’

100%[==============================================================================================================================>] 184,320 144K/s in 1.3s

2012-09-24 15:59:41 (144 KB/s) – `gaw-2.0.tar’ saved [184320/184320]

Untar the file using the below command

[email protected][/usr/local/src]# tar -xvf gaw-2.0.tar
gaw-2.0/
gaw-2.0/gawinstall.sh
gaw-2.0/GoogleAppsWizard/
gaw-2.0/GoogleAppsWizard/remove.php
gaw-2.0/GoogleAppsWizard/step2.php
gaw-2.0/GoogleAppsWizard/step3.php
gaw-2.0/GoogleAppsWizard/lang/
gaw-2.0/GoogleAppsWizard/lang/en.php
gaw-2.0/GoogleAppsWizard/inc/
gaw-2.0/GoogleAppsWizard/inc/xml-api.php
gaw-2.0/GoogleAppsWizard/inc/config.inc.php
gaw-2.0/GoogleAppsWizard/index.php
gaw-2.0/gawuninstall.sh
gaw-2.0/whm/
gaw-2.0/whm/addon_gaw.cgi
gaw-2.0/whm/gaw/
gaw-2.0/whm/gaw/update.php
gaw-2.0/whm/gaw/footer.php
gaw-2.0/whm/gaw/img/
gaw-2.0/whm/gaw/img/error.png
gaw-2.0/whm/gaw/img/success.png
gaw-2.0/whm/gaw/navstyles.css
gaw-2.0/whm/gaw/header.php
gaw-2.0/whm/gaw/version.txt
gaw-2.0/whm/gaw/update/
gaw-2.0/whm/gaw/style.css
gaw-2.0/whm/gaw/index.php
gaw-2.0/whm/googleappswizard.gif
gaw-2.0/theme/
gaw-2.0/theme/gaw/
gaw-2.0/theme/gaw/Gapps.png
gaw-2.0/theme/gaw/index.php
gaw-2.0/theme/gaw/title-icon.jpg
gaw-2.0/googleappswizard.cpanelplugin
gaw-2.0/gawupdate.sh

Go inside the extracted folder

[email protected][/usr/local/src]# cd gaw-2.0

Run the below command to start the installation process.

[email protected][/usr/local/src/gaw-2.0]# sh gawinstall.sh

It will show the below output.

############################################################
# Installing Files #
############################################################

20% COMPLETE
40% COMPLETE
60% COMPLETE
80% COMPLETE
100% COMPLETE

############################################################
# Installing Files Complete #
############################################################
############################################################
# Installing Theme Files #
############################################################

Installed support for x3 theme…
Installed support for x3mail theme…

############################################################
# Installing Theme Files Completed #
############################################################
############################################################
# Updating cPanel User Interface #
# Please Wait… #
############################################################
##########################################################
################ Installation complete ###################
##########################################################

cPanel users will now have access to Google Apps Wizard from
the ‘Mail’ icon group in cPanel. You can use the feature
lists in WebHost Manager to see what domains are defined
to work with Google Apps mail servers.

 

How To Install Process Resource Monitor (PRM)

September 15th, 2012 No comments

How To Install Process Resource Monitor (PRM)

Description: PRM monitors the process table on a given system and matches process id’s with set resource limits in the config file or per-process based rules. Process id’s that match or exceed the set limits are logged and killed; includes e-mail alerts, kernel logging routine and more

Downloading, Installing PRM

cd /usr/local/src
wget http://www.rfxn.com/downloads/prm-current.tar.gz
tar -zxvf prm-current.tar.gz
cd prm-1.*
./install.sh
rm -Rf /usr/local/src/prm* && cd

Configure PRM Config

nano -w /usr/local/prm/conf.prm
Turn on Email Alerts

How to install ConfigServer Mail Queues (cmq)

September 10th, 2012 No comments

How to install ConfigServer Mail Queues (cmq)

The product provides you with a full featured interface to the cPanel exim email queues from within WHM.

The ConfigServer Mail Queues can be an essential tool for:

  • Determining why inbound or outbound email delivery is failing
  • Deleting bounce emails
  • Deleting frozen (undeliverable) emails
  • Forcing queue runs (especially useful for Smart Router emails to Exchange servers that are intermittently online)
  • Integrates with MailScanner, if installed, to offer views/deletion of email in both the Pending and Delivery queues
  • Searching for and viewing/deleting emails to/from specific domains and addresses
  • Viewing the email history from the exim mail logs for specific emails
  • Retry delivery for specific emails

Installation

Go to /usr/local/src folder and download the cmq tar file using the below command.

wget http://www.configserver.com/free/cmq.tgz

Untar the file using the below command

tar -xzf cmq.tgz
cd into the directory created and run the install script:

cd cmq/
sh install.sh

Login to WHM and scroll to the bottom of the left hand menu and you should see “ConfigServer Mail Queues”

 

Uninstallation

Delete the below files.
rm -fv /usr/local/cpanel/whostmgr/docroot/cgi/addon_cmq.cgi
rm -fv /usr/local/cpanel/whostmgr/docroot/cgi/cmqversion.txt
rm -Rfv /usr/local/cpanel/whostmgr/docroot/cgi/cmq/

 

Categories: CPanel / WHM, Installation, WHM Plugins Tags:

How to install Installatron Plugin in cpanel/WHM

September 10th, 2012 No comments

How to install Installatron Plugin in cpanel/WHM

Installing without a license will install the free edition. This edition is full-featured, includes all applications, and there is no time limit. The only limitation is that the free edition will only work for the first domain that it’s used with.

Installation

For servers that support the RPM packaging standard, execute this command from the SSH root command prompt:

rpm -Uvh http://data1.installatron.com/installatron-plugin-cpanel-latest.noarch.rpm

For all other servers, execute these commands from the SSH root command prompt:

wget http://data1.installatron.com/installatron/installatron_setup.sh
chmod +x installatron_setup.sh
./installatron_setup.sh -f

 Uninstallation

Remove from the GUI:

rm -fr /usr/local/cpanel/3rdparty/installatron
rm -f /usr/local/cpanel/whostmgr/addonfeatures/installatron
rm -f /usr/local/cpanel/whostmgr/addonfeatures/itwidget
rm -f /usr/local/cpanel/whostmgr/docroot/cgi/addon_installatron.cgi
rm -f /usr/local/cpanel/base/frontend/*/dynamicui/dynamicui_installatron.conf
rm -f /usr/local/cpanel/base/frontend/*/dynamicui/dynamicui_itwidget.conf
perl -pi -e 's/_in.+\s*//g' /root/cpanelbranding/*/dynamicui.conf
perl -pi -e 's/_in.+\s*//g' /home/*/cpanelbranding/*/dynamicui.conf
Delete the core:
rpm -e installatron-plugin-cpanel
rm -fr /usr/local/installatron
rm -fr /var/installatron
rm -f /etc/cron.d/installatron
Delete user install data (be careful!):
rm -fr /home/*/.installatron
Categories: CPanel / WHM, Installation, WHM Plugins Tags:

How to install php.ini manager plugin in WHM

September 10th, 2012 No comments

How to install php.ini manager plugin in WHM

PHP.ini Manager (phpinimgr) is a WHM plugin designed to help you manage custom php.ini files for your users. It will list all php.ini files in the users root and www folder. If you are using suPHP, you can laso use PHP.ini Manager to activate, edit and update custom php.ini files for your users.

 

Installation instructions

To install PHP.ini Manager, open a SSH connection to your server and execute the following commands:

cd /usr/local/cpanel/whostmgr/docroot/cgi
wget -O addon_phpinimgr.php http://download.how2.be/whm/phpinimgr/addon_phpinimgr.php.txt
chmod 700 addon_phpinimgr.php
You will now find PHP.ini Manager in WHM, under the Plugins section.

Uninstall instructions

If you want to remove PHP.ini Manager, just run these commands. Please note that this only removes the plugin. Any custom php.ini files that you have set and/or enabled will not be removed.

rm -rf /usr/local/cpanel/whostmgr/docroot/cgi/phpinimgr/
rm -f /usr/local/cpanel/whostmgr/docroot/cgi/addon_phpinimgr.php
 
Categories: CPanel / WHM, Installation, WHM Plugins Tags:

Mysql manager of pid file quit without updating file

September 4th, 2012 No comments

Mysql manager of pid file quit without updating file

While Starting Mysql service getting the below error message.

Mysql manager of pid file quit without updating file

This problem occurs because mysql database crashed.

To repair mysql database use the below command.

cd /var/lib/mysql/
myisamchk -r *.MYI

Then run the below command

ps aux | grep -i mysql

If it is showing in output then kill that process using the below command.

kill -9 PID

 

Categories: MySql Tags:

Block FTP access using Iptables

September 4th, 2012 No comments

 Iptables block ftp access

Completely disable the FTP access on the server using below iptables rule:

iptables -A INPUT -p tcp –dport 21 -j DROP

If you want to block FTP access for a Specific IP then run the below command:

 iptables -A INPUT -p tcp -s 10.10.10.10 –dport 21 -j DROP

To Disable FTP access for Specific Subnet:

 iptables -I INPUT -p tcp -s 10.10.10.10/24 –dport 21 -j DROP

After adding the adding rules you need to save the rules by running the command:

/etc/init.d/iptables save

Then to apply the above saved rules, restart the IPtables by running the command:

/etc/init.d/iptables restart

Categories: Uncategorized Tags:

Block FTP access using csf firewall

September 4th, 2012 No comments

To completely disable the FTP access on the server follow the below steps:

[email protected][#] vi /etc/csf/csf.conf

Search for the lines:
# Allow incoming TCP ports
TCP_IN =
and remove the port 21 from the list
Save and quit.

And then restart the CSF firewall using the below command:

[email protected][#] csf -r

If you want to block FTP access for a Specific IP then follow the below steps:

[email protected][#] vi /etc/csf/csf.deny

and add the line :
tcp:in:d=21:s=10.10.10.10

save and quit

And then restart CSF firewall using the below command:

[email protected][#] csf -r

If you want to allow FTP access for only one ip on the server and denied for all other IPS

[email protected][#] vi /etc/csf/csf.conf

Then search for the line:
# Allow incoming TCP ports
and the remove the ports : 21 and 22

also search for the line :

# Allow outgoing TCP ports
and remove the ports: 21 and 22

Save and quit

Then open the csf.allow file

[email protected][#] vi /etc/csf/csf.allow
and add the entry as :

tcp:in:d=21:s=10.10.10.10

Save and Quit.

And then restart the CSF service

[email protected][#] csf -r

Note: Replace the IP 10.10.10.10 with the Actual IP.

Categories: Uncategorized Tags:

Yum error Time out while Loading fastestmirror

September 3rd, 2012 No comments

Yum is giving error Time out while Loading fastestmirror

While installing any application using yum getting time out error while loading fastest mirror. It seems that mirrors are not able to download the packages to the server as there is some network issue or any other issues. First check the below possibilities if there is a problem with yum rpm.

First check any process is using rpm database using the below command.

lsof | grep /var/lib/rpm

If you are getting any output then kill that process by giving the below command.

kill -9 PID

Now, Delete temporary DB files

rm -f /var/lib/rpm/__*

Rebuild the rpm database

rpm –rebuilddb -v -v

 

 

Categories: Uncategorized Tags: