HP (Hewlett-Packard) 5991-5565 Network Card User Manual


 
You can force a heavier load on the Apache HTTP Server by increasing the number of concurrency
requests with the -c option, and by prolonging the testing round by increasing the number of
requests with the -n option.
NOTE: If you encounter the following error:
socket: Too many open files (24)
You can correct the error by entering the following:
# ulimit -n <NUMBER>
This command increases the limit on the number of open files only for the current shell session.
The increased limit is applicable to the newly launched commands on that shell after the change.
Commands that you launched previously continue to use the previous limit.
Apache HTTP Server Status and Information
You can obtain various pieces of information regarding your Apache HTTP Server by configuring
the mod_status and mod_info module requests within the httpd.conf configuration file.
The mod_status module is configured using the server-status request and the mod_info
module is configured using the server-info request. For example, you can find out the current
hosts and requests being processed, whether the server was started or restarted, and basic server
configuration information. These two functions help you monitor your Apache HTTP Server.
Configuring and Using the Modules
Use the following steps to enable these two modules to collect and display information.
1. Edit the /etc/apache2/mod_status.conf file and add the following lines:
<IfModule mod_status.c>
<Location /server-status>
SetHandler server-status
Order deny,allow
Deny from all
Allow from YOUR_WEB_BROWSER_IP
</Location>
</IfModule>
2. Edit the /etc/apache2/mod_info.conf file and add the following lines:
<IfModule mod_info.c>
<Location /server-info>
SetHandler server-info
Order deny,allow
Deny from all
Allow from YOUR_WEB_BROWSER_IP
</Location>
</IfModule>
3. Modify the /etc/sysconfig/apache2 file by appending the following to the
APACHE_MODULES definition:
info status
The APACHE_MODULES definition should now look like the following:
APACHE_MODULES="actions alias auth_basic authn_file authz_host
authz_groupfile authz_default authz_user authn_dbm autoindex cgi
dir env expires include log_config mime negotiation setenvif ssl
suexec userdir php5 info status"
4. Restart the Apache HTTP Server for the changes take effect.
Installing, Configuring, and Managing Web Server Middleware Stack Components 19