Viewing 1 to 10 of 12 items
Archive | April, 2013

Apache error “Error retrieving pid file logs/httpd.pid”

In some cases, the server won’t allow you to restart the apache service in it. If you are getting the following error while trying to restart the Apache service. =====================> -bash-3.2# /etc/init.d/httpd start (20014)Internal error: Error retrieving pid file logs/httpd.pid Remove it before continuing if it is corrupted. =====================> Solution :- Just move/rename the httpd.pid  Full Article…

0

SSH Security

As we know, the security of a server is quite essential as long as it is active. In most cases, a mistake happens during the initial server set up will lead to a disaster at later period of time. In this post I am trying to prepare a check list for the initial server hardening  Full Article…

0

Troubleshoot Spamming in exim

The below script will help you to find the mail count by various accounts. grep “cwd=” /var/log/exim_mainlog|awk ‘{for(i=1;i<=10;i++){print $i}}’|sort|uniq -c|grep cwd|sort -n The number of mails by a domain exigrep @domain.com /var/log/exim_mainlog|grep 2012-03-17|grep Completed | wc -l 1)Run this command in the server as root user: ps -C exim -fH ewww |grep home, it shows  Full Article…

0

How to disable Dr.Web Notification mail from Plesk.

Dr.Web is nothing but the Parallels antivirus software within the control panel itself. Dr.Web can be disabled by the following ways. Edit the file /etc/drweb/drweb_handler.conf as shown below to stop Parallels Premium Antivirus from sending notification messages: [VirusNotifications] SenderNotify = no AdminNotify = no RcptsNotify = no Edit the file /etc/drweb/drweb32.ini CronSummary no Restart Dr.  Full Article…

0

How to setup MySQL temp directory on RAM disk?

Follow the below mentioned steps to setup MySQL temp directory on a RAM disk. Create a tmpfs directory : mkdir /var/tmpfs Now change the ownership of the newly created directory. chown mysql:mysql /var/tmpfs id mysql Make sure to get the uid and gid for mysql vi /etc/fstab tmpfs /var/tmpfs tmpfs rw,uid=498,gid=499,size=500M,nr_inodes=10k,mode=0700 0 0 Save and  Full Article…

0

Linux Malware Detect ( LMD )

Here we are discussing how to install linux maldet scanner in a server. Go to the directory /tmp cd tmp Download the source code to /tmp and then extract the .tar.gz file. wget http://www.rfxn.com/downloads/maldetect-current.tar.gz tar -xzvf maldetect-current.tar.gz cd maldetect-* Execute the Script. # sh maldetect.sh If we wanted to scan all user public_html paths under  Full Article…

0

How to change the cPanel port

How to change the cPanel port; You can change the cPanel port in /var/cpanel/cpanel.config file. Find this line ——————– port=2082 ——————– After changing the port, then run these two commands for it to take effect: ***************** # /usr/local/cpanel/whostmgr/bin/whostmgr2 –updatetweaksettings # /etc/init.d/httpd restart *****************

0

Cpanel Server ERROR: Connection dropped by IMAP server.

Connection dropped by IMAP server : When you are trying to login to your email account in Roundcube Webmail client(cPanel). You can try to fix the issue by following the steps below: If you are using Roundecube check the following logs : #tail -50 /var/cpanel/roundcube/log/errors 1. Try to restart the IMAP service # /etc/init.d/courier-imap restart  Full Article…

0