Hey all. Long time listener, first time caller. Love the show.

Installed Apache 2.2. Server starts great, test page loads. Check.

Installed PHP5. Apache won't start. Ran Dependency Walker and discovered that php5apache2.dll couldn't find 3 dll files. I fixed that by adding the apache bin folder to the path.

Now, it still won't start. I looked at the Event Application Viewer and saw the following error message:

The Apache service named  reported the following error:
httpd.exe: Syntax error on line 115 of C:/Program Files/Apache Software 
Foundation/Apache2.2/conf/httpd.conf: API module structure `php5_module' in file
 C:/php/php5apache2.dll is garbled - perhaps this is not an Apache module DSO?     .

Huh? Is it just a bad dll file? If so, wouldn't the Dependency Walker choke on it?

Any ideas?

    Never mind. Installed XAMPP, works like a charm. Move along, nothing to see here...

      That would have been my suggestion, why people beat themselves up with all the headaches of attemptin to install what should be a one time thing (excepting newer versions) I have no clue XAMPP is simple and works and easily modified to your own preferences after you are comfortable with the server and its setup. But trying to set it all up is too much a hassle when you can just download a great package and be DONE WITH IT.

        12 days later

        FYI, I got Apache 2.2.2 and PHP 5.1.4 manually installed and working on Windows XP SP2. You'll need to download 3 things.

        1. Install and configure Apache as normal.

        2. Extract PHP and configure INI as normal.

        3. Replace php5apache2.dll with new one

        4. Copy httpd.exe.manifest to apache2/bin (View Readme)

        5. Add PHP to the Apache config

        6. Restart Apache, Done!

        Let me know if you still have troubles, I could go into further details. Basically, all you need to do is replace the php5apache2.dll.

          4 days later

          Hi Rpanning,

          I did as you suggested, but still I can't start Apache2.2: with 4 (httpd.exe.manifest in apache2/bin) I get a Windows message: httpd.exe can't start because it is not correctly configured (translated from more wordy french).
          If I remove httpd.exe.manifest from apache2/bin I get the old error as BuzzLY

          any hints?

          Uli

            A correction: I don't get BuzzLY's error. I get

            Cannot load C:/PHP/php5apache2.dll into server: the modul sp\xe9cifi\xe9 cannot be found

              2 months later

              with apache 2.2.22 doesn't works, i tried with 2.0.58 and it's ok

                php5apache2.dll doesn't work with Apache 2.2 (see the Apache installation instructions on PHP's site for details).

                  4 months later
                  rpanning wrote:

                  FYI, I got Apache 2.2.2 and PHP 5.1.4 manually installed and working on Windows XP SP2. You'll need to download 3 things.

                  1. Install and configure Apache as normal.

                  2. Extract PHP and configure INI as normal.

                  3. Replace php5apache2.dll with new one

                  4. Copy httpd.exe.manifest to apache2/bin (View Readme)

                  5. Add PHP to the Apache config

                  6. Restart Apache, Done!

                  Let me know if you still have troubles, I could go into further details. Basically, all you need to do is replace the php5apache2.dll.

                  Thanks for that info!! 😃 😃

                  I'm a newbbie in php but i want to learn very much. I hope I can help this community in the future

                  Thanks to all!

                    3 years later

                    Hi people, i have some problem. I want test Apache, PHP and Mysql.
                    But I have problem to install Apache. Where i get the "httpd.exe.manifest" file?

                    Thanks

                      Write a Reply...