Category: How to: Apache Web Server Guide

Share this post...Tweet about this on TwitterShare on Google+0Share on Facebook0

InterWorx-CP integrates with the Apache webserver. The Web Server management page in NodeWorx allows the user to to start, stop, or restart the webserver on command from a web interface.

It also allows the user to configure the webserver to start automatically on server reboot, and auto-restart the webserver if it does for any reason unexpectedly. The Web Server Management interface also allows one-click access to Apache Server Status, Server Info, and PHP Info pages.

Installed Apache Modules

You can list the installed apache modules like this:

  • Click the System Services menu item if it is not already open.
  • Click the Web Server menu item.
  • Locate the Apache Modules section in the left column.
  • Next to each module, you will see the current status of that module, such as Enabled or Disabled.

View Status of the Apache Server

The /etc/httpd/conf/httpd.conf file must contain the following in order for the server status to be displayed:

ExtendedStatus On
<Location /server-status>;
SetHandler server-status
Order deny,allow
Deny from all
Allow from 127.0.0.1
</Location>
  1. Click the System Services menu item if it is not already open.
  2. Click the Web Server menu item.
  3. Locate the Apache Server Information section.
  4. Click the [Server Status] link.
  5. A new window will open up with the status of the Apache server.

View Apache Server Info

The /etc/httpd/conf/httpd.conf file must contain the following in order for the server info to be displayed:

SetHandler server-info
Order deny,allow
Deny from all
Allow from 127.0.0.1
  1. Click the System Services menu item if it is not already open.
  2. Click the Web Server menu item.
  3. Locate the Apache Server Information section.
  4. Click the [Server Information] link.
  5. A new window will open up with information pertaining to the Apache server.

Enable an Apache Module

  1. Click the System Services menu item if it is not already open.
  2. Click the Web Server menu item.
  3. Locate the Apache Modules section.
  4. Next to each module, you will see the current status of that module, such as Enabled or Disabled.
  5. Click on the module(s) you wish to enable.
  6. Select Enable from the drop-down list at the bottom of the list.

Disabling an Apache Module

  1. Click the System Services menu item if it is not already open.
  2. Click the Web Server menu item.
  3. Locate the Apache Modules section.
  4. Next to each module, you will see the current status of that module, such as Enabled or Disabled.
  5. Click on the module(s) you wish to disable.
  6. Select Disable from the drop-down list at the bottom of the list.
Disabling some Apache modules may cause the web server to cease functioning.

Removing an Apache Module

  1. Click the System Services menu item if it is not already open.
  2. Click the Web Server menu item.
  3. Locate the Apache Modules section.
  4. Next to each module, you will see the current status of that module, such as Enabled or Disabled.
  5. Click on the module(s) you wish to remove.
  6. Select Remove from the drop-down list at the bottom of the list.
Removing some Apache modules may cause the web server to cease functioning.

Change A Commonly Configured Web Server Option

  1. Click the System Services menu item if it is not already open.
  2. Click the Web Server menu item.
  3. Locate the Apache Server Options section.
  4. Change the option(s) you wish to update to the desired value(s).
  5. Click the Update button.

Apache Server Options

Max Clients 
The maximum number of simultaneous requests that will be served. Possible values range from 1 to 20000.

Apache docs on Max Clients directive

Server Limit 
The maximum configured value for the max clients directive for the lifetime of the Apache Process. Possible values range from 1 to 20000.

Apache docs on Server Limit directive

Start Servers 
The number of child server process created on server startup. As the number of processes is dynamically controlled depending on the load, there is usually little reason to adjust this parameter. Possible values range from 1 to 20000.

Apache docs on Start Servers directive

Spare Servers (min) 
The minimum number of idle child processes. An idle process is one which is not handling a request. Possible values range from 1 to 20000.

Apache docs on the Minimum Number of Spare Servers

Spare Servers (max) 
The maximum number of idle child processes. An idle process is one which is not handling a request. Possible values range from 1 to 20000. The spare servers directives are used to help deal with spikes in web traffic.

Apache docs on the Maximum Number of Spare Servers

Max Requests per Server 
The limit on the number of requests that an individual child server process will handle. Setting this to 0 will allow for an unlimited number of requests to be handled. Possible values range from 0 to 1000000.

Apache docs on Maximum Requests Per Child Process

Timeout 
The amount of time Apache will wait for any of three things:

  • The total amount of time for a GET request to be received.
  • The amount of time between receipt of TCP packets on a POST or PUT request.
  • The amount of time between ACKs on transmissions of TCP packets in responses.

Apache docs on TimeOut directive

Keepalive 
Turning the Keepalive directive on will provide long-lived HTTP sessions which allow multiple requests to be sent over the same TCP connection. In some instances, turning keepalive on has resulted in a reduction in latency for HTML documents containing many images.

Apache docs on Keepalive directive

Keepalive Requests 
The number of requests allowed per connection. If this is set to 0, an ulimited number of requests is allowed.
Possible values range from 0 to 65336.

Apache docs on Keepalive Requests directive

This value will only be able to be changed if Keepalive is set to on.

Keepalive Timeout 
The number of seconds Apache will wait for a request before closing the connection.

Apache docs on Keepalive Timeout directive

This value will only be able to be changed if Keepalive is set to on.

View PHP Information

  1. Click the System Services menu item if it is not already open.
  2. Click the Web Server menu item.
  3. Locate the PHP Information section.
  4. Click the [PHP Info] link.
  5. A new window will open up with information pertaining to the PHP installation.
ApacheWeb Server
Nov 15, 2012, 7:19 pmBy: InterWorx
How to: Apache Web Server Guide
0 votes, 0.00 avg. rating (0% score)
(0) Comments

Leave a Reply
Surround code blocks with <pre>code</pre>

Your email address will not be published.

Comments

Broken Link