Linux

now browsing by category

 

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

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

How to Upgrade SugarCRM-5.2.0 to 6.2.0

Introduction Pre-Requistes: Apache-2.2.x PHP-5.2.x Mysql-5.x SugarCRM can not be upgraded directly from version 5.2.x to 6.2.x. Its a multistep process. You have to upgrade SugarCRM to version 5.5.zx then from 5.5.x to 6.2.x. Below is the outlined procedure for that. Step1: Check the server for Apache,PHP and MySQL version. (MyRead More

Vsftpd with SSL

Introduction: Few days back one of customer asked to have more security on their data transfer via ftp. I have heard of encryption,SSL and all. I know how to build the CA and create the certificates but don’t know how to integrate it with VSFTPD or alternatively I can sayRead More

I'm happy to use Increase Sociability.