Thank you coopster and (through PM) leosghost. It's taken a while to sort everything but it now all works. So, for anyone wishing to learn from my experinces here is a summary (warts and all).
System is Windows 7 Professional 64 bit.
Apache file used is httpd-2.2.17-win32-x86-no_ssl.msi
MySQL file used is mysql-5.5.9-winx64.msi
PHP file used is php-5.2.17-Win32-VC6-x86.zip
Created folders C:\apache, c:\php and c:\mysql.
Installed Apache choosing to install in c:\apache. At the end of installation errors were reported in the Dos window. However, rebooted system and checked Services (Control Panel - System and security - Administrative Tools - Services) to confirm that Apache had started. Opened browser and entered
http://localhost
to confirm that an Apache Service was working.
Installed MySQL choosing c:\mysql in which to install files. Then ran the configuration wizard. Chose the detailed configuration - developer machine - multifunctional database - no chnage to InnodB - Decision Supoport - enable TCP/IP and enabled the firewall for port 3306 and opted to install a BIN folder and set a password for the database. On executing there was an error due to port 3306. I tried switching the Antivirus firewall off but this did not change the outcome. Rebooted the system.
Both Apache and MySQL services started. Copied my.ini from c:\mysql to c:\ and rebooted the system.
Switched off the antivirus firewall and ran the MySQL configuration wizard again opting fro detaield configuration and the reconfiguration option. Decided this time not to opt to set up the firewall for port 3306.
Rebooted the system. Apache and MySQL service staretd okay and still had confirmation that the Apache Service was working when I entered
http://localhost
into the browser.
Installed PHP unzipping the files into c:\php.
Amended the file httpd.conf found in c:\apache\conf as follows:
at the end of the section with LoadModule I added the following two lines (note forward slashes)
LoadModule php5module "c:/php/php5apache2_2.dll"
AddHandler application/x-httpd-php .php
at the end of the file I added the following line (note the final forward slash)
PHPIniDir "c:/php/"
Then copied php.ini-recommended (found in c:\php) to php.ini (in c:\php).
Amended php.ini as follows.
Ensured that there were the following two lines:
doc_root = "c:\apache\htdocs"
extension_dir = "c:\php\ext"
and removed the semicolon (comment) from the following two lines
extension = mysql.dll
extension = mysqli.dll
Saved the file (in c:\php) and then copied it to c:\apache\bin as well.
Rebooted the system. Apache and MySQL service started.
Opened browser and confirmed Apache Service with
http://localhost
Confirmed PHP with
http://localhost/phpinfo.php
Confirmed MySQL with
http://localhost/mysqltest.php
Hope that this is helpful. Thank you for your help.