Apache Web Server
1. Checking Apache is installed on our machine or not.
rpm -q httpd
2. Main Configuration file is located at
The main configuration file is /etc/httpd/conf/httpd.conf
3. ServerRoot
Serverroot is the path to the server’s configuration, error and log files. The default location is /etc/httpd.
4. Host Configuration
The hosts file is a computer file used by an operating system to map hostnames to IP addresses. The hosts file is a plain text file, and is conventionally named hosts.
10.139.64.11 srdcb0042wavec
10.139.64.12 wc-rpsl-vm1
5. DocumentRoot directive
DocumentRoot tells you where your web documents (html files, images etc)
should be located. It is possible to reference files in other directories using
aliases and symbolic links. The default directory is /var/www/html.
6. ErrorLog
ErrorLog tells you where the log containing all server errors is located. This
file is critical for debugging and solving server misconfiguration problems and for
proper traffic shaping. By default, all messages with the value of warning (warn)
and higher will be logged. This is described in the LogLevel directive just below.
The default location is logs/error_log. Please note that this is relative to the
ServerRoot. Therefore, our log file is /etc/httpd/logs/error_log. However, let
us not forget that /etc/httpd/logs is a symbolic link to /var/log/httpd. Thus,
finally, the actual error log is /var/log/httpd/error_log.
7. Listen
The Listen command tells the Web server what ports to use for incoming connections.
By default, port 80 is used, although any one or several can be used. The
accepted conventions calls for using port 80 for non-secure web communications
(without any encryption of traffic). Secure web communications are normally
handled on port 443.
8. Start the Web Server
Staring using the following command
service httpd start
9. Status of the server
httpd service status or /etc/init.d/httpd status
10. Start Servers
This directive tells the Web server how many server processes to launch on startup. The default setting is 8 server processes.
11. Min and MaxSpare Servers
Once started, the Web server dynamically kills and creates processes based on the traffic load, with the number of server processes fluctuating between MinSpareServers and MaxSpareServers. So far, everything figures out just nicely. Now, let’s make another check.
12. Process listing for httpd
ps -ef | grep httpd
13.
Apache Tuning Parameters
1. Remove ETag
2. KeepAlive
3. PreFork is old one use MPM
1. Checking Apache is installed on our machine or not.
rpm -q httpd
2. Main Configuration file is located at
The main configuration file is /etc/httpd/conf/httpd.conf
3. ServerRoot
Serverroot is the path to the server’s configuration, error and log files. The default location is /etc/httpd.
4. Host Configuration
The hosts file is a computer file used by an operating system to map hostnames to IP addresses. The hosts file is a plain text file, and is conventionally named hosts.
10.139.64.11 srdcb0042wavec
10.139.64.12 wc-rpsl-vm1
5. DocumentRoot directive
DocumentRoot tells you where your web documents (html files, images etc)
should be located. It is possible to reference files in other directories using
aliases and symbolic links. The default directory is /var/www/html.
6. ErrorLog
ErrorLog tells you where the log containing all server errors is located. This
file is critical for debugging and solving server misconfiguration problems and for
proper traffic shaping. By default, all messages with the value of warning (warn)
and higher will be logged. This is described in the LogLevel directive just below.
The default location is logs/error_log. Please note that this is relative to the
ServerRoot. Therefore, our log file is /etc/httpd/logs/error_log. However, let
us not forget that /etc/httpd/logs is a symbolic link to /var/log/httpd. Thus,
finally, the actual error log is /var/log/httpd/error_log.
7. Listen
The Listen command tells the Web server what ports to use for incoming connections.
By default, port 80 is used, although any one or several can be used. The
accepted conventions calls for using port 80 for non-secure web communications
(without any encryption of traffic). Secure web communications are normally
handled on port 443.
8. Start the Web Server
Staring using the following command
service httpd start
9. Status of the server
httpd service status or /etc/init.d/httpd status
10. Start Servers
This directive tells the Web server how many server processes to launch on startup. The default setting is 8 server processes.
11. Min and MaxSpare Servers
Once started, the Web server dynamically kills and creates processes based on the traffic load, with the number of server processes fluctuating between MinSpareServers and MaxSpareServers. So far, everything figures out just nicely. Now, let’s make another check.
12. Process listing for httpd
ps -ef | grep httpd
13.
Apache Tuning Parameters
1. Remove ETag
2. KeepAlive
3. PreFork is old one use MPM