I’ve tired from lags on my Centos server with CPanel. Apache was using a lot of RAM and limit visits by maxclients option was not good for my business, so I’ve decided to install Nginx caching server as proxy cacher for Apache server, instruction below:
1.1.1 For apache 2.2 login as root on your server and install mod_rpaf:
cd /root/
mkdir mod_rpaf
cd mod_rpaf/
wget http://stderr.net/apache/rpaf/download/mod_rpaf-0.6.tar.gz
tar xzf mod_rpaf-0.6.tar.gz
cd mod_rpaf-0.6
/usr/local/apache/bin/apxs -i -c -n mod_rpaf-2.0.so mod_rpaf-2.0.c
If link is not working download mod_rpaf here
This module will allow Apache get the correct IP address of users from Nginx. If this module is not installed, your access_log will be full of 127.0.0.1 visitors, and your statistic software will not recognize them…
1.1.2 Then you need to add this module into Apache config via WHM panel Main > Service Configuration > Apache Setup > Include Editor > Pre Main Include and add the following code:
Detailed manual. Installing from source.
Nagios installation.
Nagios can monitor servers and services, and maintains a statistics, alsoyou can see how your server (s) and receive a notification about errors or critical issues via e-mail or SMS.
More »
Check what the current timezone is:
date
For example, the result is:
Mon May 7 17:42:57 EEST 2012
To change the timezone first look at what timezones are available by running the following command on the command line interface:
ls /usr/share/zoneinfo/
As a result you’ll see:
[root@host1 ~]# ls /usr/share/zoneinfo
Africa Australia Cuba Etc GMT0 Iceland Japan MST Poland right Universal Zulu
America Brazil EET Europe GMT-0 Indian Kwajalein MST7MDT Portugal ROC US
Antarctica Canada Egypt Factory GMT+0 Iran Libya Navajo posix ROK UTC
Arctic CET Eire GB Greenwich iso3166.tab MET NZ posixrules Singapore WET
Asia Chile EST GB-Eire Hongkong Israel Mexico NZ-CHAT PRC Turkey W-SU
Atlantic CST6CDT EST5EDT GMT HST Jamaica Mideast Pacific PST8PDT UCT zone.tab
Simply import new timezone:
cat /usr/share/zoneinfo/Europe/Kiev > /etc/localtime
or
rm /etc/localtime
ln –s /usr/share/zoneinfo/Europe/Kiev /etc/localtime