This Error is most often caused by a failing module. You would usually check if Apache was successfully installed, before installing additional modules such as PHP – this can be done by loading your WAN or LAN IP in the browser, which should give a message like "It works!" – At this point, if your installation fails after attempting to install a module, then that is the most likely cause.
If you just installed PHP, or some other module, try uncommenting them from http.conf – if your installation of Apache starts working after this, you can safely assume that its the module that is causing the problem.
This Article will try to list some of the possible solutions.
Check that the module you are trying to install, is being loaded correctly in http.conf. For PHP that would be something like:
#BEGIN PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL PHPIniDir "C:\PHP" LoadModule php5_module "C:\PHP\php5apache2_2.dll" #END PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL
Note. searching the file can be faster.
If for some reason this part is missing – such as the retarded user account control system blocking the installer in Windows – then add it manually. The file paths should reflect your own installation.
Empty Module Paths When Using an Installer
You might also experience that the paths are left empty by the PHP Installer, in which case you should fill them out on your own to solve the problem. An example of this can be seen below:
#BEGIN PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL PHPIniDir "" LoadModule php5_module "" #END PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL
You should also make sure that you are loading the right .dll version. For Apache 2.2.x you should use php5apache2_2.dll and for Apache 2.4.x php5apache2_4.dll.
PHP comes with some of these files, but sometimes the latest .dll might be missing. You can often download what you need from http://www.apachelounge.com/download/
If you download the dll, be sure that you download the one for your version of PHP and Apache.