June 2012
M T W T F S S
 123
45678910
11121314151617
18192021222324
252627282930  

Categories

June 2012
M T W T F S S
 123
45678910
11121314151617
18192021222324
252627282930  

Apache troubleshooting commands

Apache troubleshooting commands

Commands

ps aux | grep httpd pstree -p | grep httpd

strace -f -o trace.txt /etc/rc.d/init.d/httpd start

Sometime Apache process, keeps on execution (Seems like Hangs), so generally trying to get the exact PHP file that is running by Apache Process, So here is my Try.

I used Strace to […]

Forward Proxy and reverse proxy

Forward Proxy and reverse proxy

Proxy server types and uses for HTTP Server (powered by Apache)

This topic provides information about proxy server types and uses. Important: Information for this topic supports the latest PTF levels for HTTP Server for iSeries . It is recommended that you install the latest PTFs to upgrade to […]

Apache Performance Tuning

Apache Performance Tuning

Forewarning:

“Premature optimization is the root of all evil.” — Donald Knuth.

Select MPM Chose the right MPM for the right job: prefork [default MPM for Apache 2.0 and 1.3]: • Apache 1.3-based. • Multiple processes, 1 thread per process, processes handle requests. • Used for security and stability. • Has […]

Apache capacity planning -2

1. Apache server performance Apache server performance can be improved by adding additional hardware resources such as RAM, faster CPU etc. But, most of the time, the same result can be achieved by custom configuration of the server. This article looks into getting maximum performance out of Apache with the existing hardware resources, specifically on […]

Hardening guide for Apache

Hardening guide for Apache

From: ServerSignature OnTo: ServerSignature Off HostnameLookups Off

From: # ServerTokensTo: ServerTokens Prod

From: ServerAdmin you@yourhost.comTo: ServerAdmin webmaster@yourcompany.com

From: LogLevel warnTo: LogLevel notice

From: IndexOptions FancyIndexing VersionSortTo: # IndexOptions FancyIndexing VersionSort #

To: # AddIcon

From: DefaultIcon /icons/unknown.gifTo: # DefaultIcon /icons/unknown.gif

From: Alias /icons/ “/var/apache2/icons/”To: # Alias /icons/ “/var/apache2/icons/”

From: AliasMatchTo: […]

Apache capacity planning

Apache capacity planning

LogFormat “%{X-Forwarded-For}i %l %u %t \”%r\” %>s %b \”%{Referer}i\” \”%{User-Agent}i\”” proxy SetEnvIf X-Forwarded-For “^.*\..*\..*\..*” forwarded CustomLog “logs/access_log” combined env=!forwarded CustomLog “logs/access_log” proxy env=forwarded

The apache MPM

http://articles.slicehost.com/2010/5/19/configuring-the-apache-mpm-on-centos

http://www.howtoforge.com/configuring_apache_for_maximum_performance

The apache MPM

Part of the apache web server installation is the “MPM”, which stands for “Multi-Processing Method”. The MPM determines the mechanism apache […]