PHP application with Nginx and Varnish on ElasticBeanstalk

AWS ElasticBeanstalk service provides platforms for PHP applicaitons but it has Apache as a backend webserver. But there are situations where Apache does not perform well for PHP applications specially for heavy traffic websites. In those kind of situations you may would like to use Nginx and php-fpm to gainRead More

How to optimize Ganglia for too much Disk IO

I was facing ganglia server performance issues. It was showing too much disk IO and too much Load average on the server. So I thought of some optimization. All of my setup is on AWS and I was using 10000 IOPS EBS volume for my server but still was facingRead More

Download all files of certain extension from website using wget

Issue this command in a terminal to download all mp3s linked to on a page using wget wget -r -l1 -H -t1 -nd -N -np -A.mp3 -erobots=off [url of website] OR if you want to download all linked mp3s from multiple pages then make a text file containing each urlRead More

Linux Tricks and Useful Commands

pwd -P # Print path to the dir you are in, converting any symlinks in the path into their real/(P)hysical directory name. grep -ril inactive /etc # Show matching files(-l) with the string “inactive” regardless of case(-i) in all subdirs of /etc (-r) for i in {0..365};do date -d “JanRead More

Important Linux Commands

To get the list of username with its user ID in formatted way:- awk -F”:” ‘{ print “username: ” $1 “\t\tuid:” $3 }’ /etc/passwd Find the particular string from the list of files in current directory:- cd /etc for i in $(find -type f); do grep -iH nfsnobody $i; doneRead More

Solaris Jumpstart Server

Solaris JumpStart installation is method of network installation of Solaris OS. Below the steps that we need to follow: Configure the JumpStart Installation Server Create the Client profile files Share the Installation directory and Configuration files Create the client boot files using tftpboot Configure the DHCP server with TFTPBOOT filesRead More

Yum local repository

1.Copy Red Hat Enterprise Linux 5 DVD ISO RHEL5-Client-20070208.0-i386-DVD.iso from Red Hat Network and create a local repository on the local Repository server. #mkdir -p /var/www/html/cdrom/iso #mount -o loop /RHEL5-Client-20070208.0-i386-DVD.iso /var/www/html/cdrom/iso #cd /var/www/html/cdrom #createrepo . #yum clean all Created a file /etc/yum.repos.d/file.repo as follows: #cat /etc/yum.repos.d/file.repo [RHEL 5 Repository] baseurl=file:///cdromRead More

LAMP Optimization Tips

Below are couple of good points about LAMP optimization. I have figured that out after doing some googling and reading some PDF.. Disable unwanted Apache Modules: Disable all the apache modules like perl,python,proxy etc except php,mysql which are required for your application. Enable only mod_php and mod_rewrite Disable everything elseRead More

Install and Configure Bandwidthd – IP Bandwidth Monitor

It is important to know traffic usage of your client if you’re a Linux network administrator. You can monitor your client in text mode, graphic mode or html exported like mrtg, cacti but bandwidthd is very good bandwidth monitoring tool………….. You don’t need any database or snmp connection to monitorRead More

Ten Qualities of an Effective Team Player

If you were choosing team members for a business team in your organization, who would the best team players be? Assuming that people have the right technical skills for the work to be done, what other factors would you use to select your team members? Teams need strong team playersRead More

I'm happy to use Increase Sociability.