Monthly Archives: May 2014

HTTP Cluster with heartbeat

  Setup a two node high availability HTTP cluster with heartbeat. Both nodes use the Apache Web Server to serve the same content. Pre-Configuration Requirement Assign hostname NODE1 to Primary node with IP Address 10.10.10.1 to eth0. Assign hostname NODE2 … Continue reading

Posted in Apache | Leave a comment

Exim Commands

Exim commands for Mail issue ===================== /usr/sbin/exim -v -Mrm (MAIL ID HERE) ==> REMOVE MAILS BY ID /usr/sbin/exim -bp ==> LIST QUEUED MAILS /usr/sbin/exim -bpc ==> OUTPUT NUMBER OF QUEUED MAILS /usr/sbin/exim -bpr | grep ‘*** frozen ***’ | awk … Continue reading

Posted in Exim, Mail server | Leave a comment

Deleting mail in postfix queue

Postfix stores mails in a queue before sending it. Sometimes you wish to remove the mails from the queue but wonder how. Postfix has a command line called postsuper which can be used to delete unsent mails from the queue. … Continue reading

Posted in Postfix | Leave a comment

List all FTP passwords in Plesk

Login to the mysql database for Plesk # mysql -uadmin -p`cat /etc/psa/.psa.shadow` psa and run this query SELECT REPLACE(sys_users.home,’Change this to your host PATH directory to Domain’,”) AS domain, sys_users.login,accounts.password FROM sys_users LEFT JOIN accounts on sys_users.account_id=accounts.id ORDER BY sys_users.home … Continue reading

Posted in Plesk | Leave a comment

Increase SWAP space in Linux

Method 1: Use a Hard Drive Partition for Additional Swap Space Step #1: Login as the Root User and run following commands # mkswap /dev/sdc1 # swapon /dev/sdc1 Method 2: Use a File for Additional Swap Space # dd if=/dev/zero … Continue reading

Posted in Swap | Leave a comment

Set time in Linux

This document explains how to set your computer’s clock from Linux and how to set timezone. On Linux systems, you have a choice of keeping the hardware clock in UTC/GMT time or local time. How to Set timezone The timezone under … Continue reading

Posted in Linux | Leave a comment

Virfs directory in CPanel

The /home/virtfs Directory is created for users with Jailshell. Virtfs is bind mount to some system files. If you delete the files in virtfs, you delete the actual system files they’re bind mount to; that’s very bad idea. When a user is … Continue reading

Posted in CPanel | Leave a comment

optimizing apache mysql php with low memory server

Don’t run X, shutdown all unnecessary services, and compile Apache, MySQL, and PHP with only essential functionality.   Apache The biggest problem with Apache is the amount of ram is uses. I’ll discuss the following techniques for speeding up Apache … Continue reading

Posted in Apache, MySQL, Optimize, PHP | Leave a comment

Free Memory and Swap Activity

You can use the following command to display memory: $ free -m To see a list of your running processes sorted by memory use: $ ps -eo pmem,pcpu,rss,vsize,args | sort -k 1-r | less

Posted in Memory, Swap | Leave a comment