This is what I did to download Apache (I'm following specific instructions):
binary located within the binaries/win32 directory. Two binary versions are available: one containing
additional SSL-related capabilities and one lacking these capabilities. These binaries are appropriately
named to make clear which is which. I suggest choosing the non-SSL capable version for development
What I did:
1) Went to http://httpd.apache.org/download.cgi
2) Clicked version 2.4.3 (the latest stable version)
3) Clicked other files
4) Went to binaries
5) Went to win32
6) Downloaded httpd-2.2.22-win32-x86-no_ssl.msi from the most recent date
1) Went to php.net
2) Went to downloads
I was instructed to download the windows zip package.
3) So I went to Windows 5.4.6 (current stable) binaries and source
4) Downloaded the VC9 x86 Thread Safe (2012-Aug-15 22:48:37) zip file.
Here are my instructions for downloading PHP - please tell me if I did something wrong here.
in this book. Except in very special circumstances, the Windows binary will suit
your needs just fine. This distribution is archived in bzip2 and gzip formats. Keep
in mind that the contents are identical; the different compression formats are just
there for your convenience.
Windows zip package: If you plan to use PHP in conjunction with Apache on
Windows, you should download this distribution because it’s the focus of the later
Installing Apache and PHP:
1) Started the Apache.msi file (not the exact name)
2) Went through the next(s) and such.
3) Filled in the servers with localhost and then my e-mail address
4) Selected 'run as service for all users'
5) Set-up type 'Typical'
6) Destination folder was made to be 'C:\Apache'
Now for the PHP.
1) Unzipped the contents of the .zip file into C:\PHP
2) Went to "C:\apache\conf" and opened httpd.conf for editing.
3) Added these lines: 'LoadModule php_module c:/php/php5apache2_2.dll
AddType application/x-httpd-php .php
I tried adding them almost anywhere, but whenever I put them in the Apache file, the server won't start.
4) Here's a part I may have failed at:
of PHP 5.3.0, the INI files have been reorganized and renamed as php.ini-development
and php.ini-production, so if you are running 5.3+ you should
rename one of these as php.ini depending upon your situation). The php.ini
file contains hundreds of directives that are responsible for tweaking PHP’s
behavior. The “Configuring PHP” section examines php.ini’s purpose and
contents in detail. Also note that there is another default configuration file at
your disposal, php.ini-recommended. This file sets various nonstandard settings
and is intended to better secure and optimize your installation, although this
configuration may not be fully compatible with some of the legacy
applications. Consider using this file in lieu of php.ini-dist.
For the record, I didn't have a php.ini-dist file. As the instructions mention.
Another thing that struck me as odd was that I did not have a php.ini-recommended file.
But what I did do was change the php.ini-development file's name to php.ini, and same for production (one at a time) and attempt to restart the server, no luck.
Does anyone know what the problem is?
This post has been edited by Tenderfoot: 22 August 2012 - 03:10 AM