Replies Back to Article

Configuring Apache 2 and PHP 4 for Windows

Easier Way....
May 17, 2004 by Chris Bunting

I used an installer that installs apache, php 5, phpmyadmin, sql-lite and some other stuff. I use it for doing php/mysql development with Dreamweaver. Install was quick and easy and it works. http://www.en.wampserver.com/

RE: Easier Way....
May 17, 2004 by Paul Taylor

Thanks Chris

 

I've heard of this installer, and will go and find out more about it. I'm very happy if there is an easier way.

Paul

Configuring Apache 2 with PHP
July 15, 2004 by Robert Boisvert

This was  a great help in configuring Apache 2 with PHP, in my case PHP 5. One comment that would make is that I had trouble with the path LoadModule php4_module “C:/php/sapi/php4apache2.dll” The PHP 5 version that I installed did not have a sapi folder. The alternative was to go this route LoadModule php5_module “C:/php/php5apache2.dll” which worked fine.

Great job Paul,

Bob Boisvert..SarJen Web Design

using index.php
January 2, 2005 by A G

I have been searching the net for good guides covering this, and felt lost untill I stumbled across this easy, quick and, as of my opinion, the best tutorial on Apache / PHP configuring.

However, as I, as probably several others, are working with PHP here, we would most likely want the Apache server to use index.php as the first-choice index format.

Open httpd.conf and search for the line saying
DirectoryIndex index.html index.html.var

Replace this line with the following:
DirectoryIndex index.php index.html index.html.var

RE: using index.php
January 3, 2005 by Paul Taylor

Thanks for your kind comments, Anders.

I agree about changing the DirectoryIndex line. I will include that in an update of this tutorial, and credit you for it.

I also suggest that the extension_dir line should be C:\php\extensions rather than just C:\php.

March 8, 2016 by User
The tutorial recommends using the Apache Web Server, Windows Installer Version, and zipped source code for PHP. _________________________ waleeed