Add panic=10 to the kernel command line to reboot with 10 seconds of a kernel error. Be careful with this when setting up new kernels. It’s possible to change it later with sysctl, or by writing to /proc: # echo 10 > /proc/sys/kernel/panic To make it permanent, edit /etc/sysctl.conf and add the below line: kernel.panic [...]
This tutorial explains how you can install MySQL Proxy on a CentOS 5 (x86_64) system. MySQL Proxy is a simple program that sits between your client and MySQL server(s) that can monitor, analyze or transform their communication. Its flexibility allows for unlimited uses; common ones include: load balancing; failover; query analysis; query filtering and modification; [...]
A banner for ssh server is a few phrase that will come out the time you want to access a server through ssh. By default, this feature is turned off. To turned it on: Login as ‘root’ Create your banner file first. In this example, i will create banner file named /home/banner # vi /home/banner [...]
A quick and usefull command for checking if a server is under ddos is: netstat -anp |grep ‘tcp\|udp’ | awk ‘{print $5}’ | cut -d: -f1 | sort | uniq -c | sort -n That will list the IPs taking the most amount of connections to a server. It is important to remember that the [...]
Howto install CSF on your server: 1) cd /usr/local/src/ 2) download csf: wget http://www.configserver.com/free/csf.tgz 3) tar -xzf csf.tgz 4) goto the csf directory : cd csf 5) ./install.sh Once it is installed, you can either edit the configuration file from WHM >> Plugins >> “Config Server Security and Firewall” option. If you don’t have WHM/cPanel [...]
This is an exclusive! and free! add-on product for cPanel/WHM. The product provides you with a full featured Filesystem explorer and a Virtual Console to use within your web browser in WHM. It gives you root access from the top level of your disks and allows you to enter non-interactive commands and see the output. [...]
MySQL is one of the most important programs on a server, unfortunatly it is also pretty resource intensive. One a server it is not uncommon for a single user or even a query to take up the bulk of the servers cpu cycles. Mytop is a very useful program to see what queries a server [...]
April 29th, 2013 |
admin |
Following are the logs files on a cPanel server for different services: Apache Logs: /usr/local/apache/logs/access_log /usr/local/apache/logs/error_log Exim Logs: /var/log/exim_mainlog /var/log/exim_paniclog /var/log/exim_rejectlog Ftp Logs: /var/log/messages Mysql Logs: /var/lib/mysql/server.hostname.err ChkServd Logs: /var/log/chkservd.log Named (Bind) Logs: /var/log/messages Last logins to server: /var/log/wtmp (but to view the details, execute the command “last”) Domlogs of an Account: /usr/local/apache/domlogs/domainname.tld Mod [...]
April 28th, 2013 |
admin |
How to compile a kernel on a CentOS server? Compiling a kernel on a CentOS server is probably easy than other Operating Systems but still you should take care while selecting modules else the server won’t boot up on the new kernel. New System admins find it difficult to compile a kernel, however, the following [...]
April 26th, 2013 |
admin |
Some one posted about, “What is Modules in Linux and how to add it in apache,” on our forum. Therefore, I decided to create a small howto for adding new modules under Apache. The Apache HTTP Server is a modular program. So as a UNNIX/Linux administrator you can choose the functionality to include in the [...]