Awestruck - can you double check your config file? In your post, you had this:

LoadModule ph5-module c:/php/php5apache2.dll

Note that you're missing a 'p' on php5-module.

    And if I'm not mistaken, it should be php5_module not php5-module...

      Oh dear! I had high hopes that some of the many helpful suggestions might sort out my problem but they did not.
      My Apache is version 2.0.43.0 so the php5apache2.dll in my 'conf' is the right file.
      Also, the typo (i.e. no p in php) was in my post but not in my actual conf file. I suspect that my Apache installation
      is corrupt even though its home page shows up when I type http://localhost in the address bar.
      Thank you all for your patience and help, I think I will now give up hope of ever sorting the problem.

      Best wishes

      Awestruck
      Visit my website www.colycomputerhelp.co.uk

        whoops! I forgot to mention that the hyphen was also a typo in my post but is an underscore in my conf file. I did that post when I was very weary from severe tonsilitis and my battle with Apache.

        Awestruck

          You might want to copy and paste instead of retyping out stuff.

          I suspect that my Apache installation
          is corrupt even though its home page shows up when I type http://localhost in the address bar.

          It might be a good idea to uninstall Apache and then reinstall it. If Apache does not work, PHP would not work either (except on the command line).

            I guess you had your reasons but if there's no specific need to add your own modules etc why not use a WAMP bundle?
            - even installing those can be painful but there's far less to configure
            apache2triad is one of the less well known, but its excellent and installs cleanly and easily

              5 days later

              I've always recommended manually installing all components since a) it gives you more understand about how they work and how they are configured, and b) you would never, ever use one of those pre-packaged bundles in a production environment.

                8 days later

                Thank you for your help folks but I have now clicked the resolved link because I have resolved never to touch Apache and the PHP program again. Life is too short, I have spent over 100 hours battling with the most flaky programs of my 25 year career as a programmer and web designer. I have now reverted to viewing my PHP pages in Mozilla (which IE can't do) and I test my forms and page counters on the internet.
                Happy Christmas
                Awestruck

                  Awestruck wrote:

                  I have spent over 100 hours battling with the most flaky programs of my 25 year career as a programmer and web designer.

                  Odd... I've seen plenty of programmers/web designers with little to no experience (me being one of them in the beginning) use the same applications... perhaps you're right and they are 'flaky' though. shrug

                    a year later
                    bradgrafelman;10836078 wrote:

                    If you create a new HTML file (called new.html for example) in c:\Apache\htdocs\ can you successfully view it at http://localhost/new.html ?

                    Since you're using Windows, are you viewing file extensions? To verify that you are, open My Computer, go to Tools->Folder Options, click the View tab, and make sure that the checkbox for "Hide file extensions for known file types" is unchecked. If it was checked, go back and make sure your PHP files weren't inadvertently named something like test.php.txt or something along those lines.

                    Thanks a lot.
                    It worked.

                      3 years later

                      These days, the installer can also be used as an uninstaller. My experience with this feature is limited, but it seems to be successful. I used the installer: php-5.2.17-nts-Win32-VC6-x86.msi found at http://windows.php.net/download/. If it detects an existing installation, it will offer to repair or uninstall it. If no installation exists, it will proceed with the expected installation.

                        Write a Reply...