Cacti W2K3 7 – Configuring The Apache Web Server

Cacti W2K3 7 – Configuring The Apache Web Server

Introduction

The following article explains how to install and initially configure MySQL 5.5.19 Community Edition Server on to a Windows 2003 Standard Edition Server.

The environment used for this installation was a Windows 2003 Standard Edition Server Virtual machine attached to an Active Directory Domain and running under a VMware ESXi 4.0 host.

Obtaining The PHP DLL File

In order to configure Apache to run using PHP you also need to download the specific PHP dll from here.

Installing The PHP DLL File

To install the PHP DLL file from http://www.apachelounge.com perform the following steps :-

  • Logon to the server as an Administrative account
  • Navigate to where the PHP DLL file was downloaded
  • Unzip the ZIP file (php5apache2_4.dll-php-5.3.8-win32.zip in my case) to C:\PHP

Configuring Apache

To configure the Apache Web Server perform the following steps :-

  • Logon to the server as an Administrative account
  • Navigate to C:\Apache23\conf
  • Edit the file httpd.conf
  • Search for the line # Dynamic Shared Object (DSO) Support and then at the end of the section add in the line below :-

LoadModule php5_module c:\php\php5apache2_4.dll

PHPIniDir “C:\php”

  • Search for the line <IfModule mime_module> and then at the end of the section add the line below :-

Add Type application/x-httpd-php .php

  • Search for the line DirectoryIndex and change it to the following line below :-

DirectoryIndex index.html index.php

  • Save and Exit the file

Configuring Apache To Run As A Service

To configure Apache to run as a service on the server perform the following steps :-

  • Logon to the server as an Administrative account
  • Open a Command Prompt and navigate to C:\Apache23\bin
  • At the Command Prompt execute the following command :-

httpd -k install

  • To start the service execute the following command :-

httpd -k start