Apache the requested operation has failed

How to solve the problem where you get the requested operation has failed, when running apache after installing PHP.

You are using the Installer, and get the error the requested operation has failed after the installation has finished, and you run Apache.

Missing module

You should check your http.conf, and scroll all the way down to the bottom. If the installer got PHP installed correctly, there should be an entry for PHP, like shown below.

#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

If for some reason this is missing, such as the retarded permission system on Windows (or whatever its called), then add it manually. The file paths should reflect your own installation.

Empty module paths

You might also (for whatever reason), experience that the paths are left empty by the Installer, in which case you should fill them out on your own to solve the problem.

#BEGIN PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL
PHPIniDir ""
LoadModule php5_module ""
#END PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL

Post comment

Links that you insert are not nofollowed, but will be removed by admins if they are considered spam.

[url=Absolute URL for page]TITLE[/url]

You should insert code boxes around code examples, which will be automatically syntax highlighted.

[code1 html|css|javascript|php|sql]Your Code Here[/code1]

You may want to read our Privacy Policy before submitting your comment.