Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.
AddHandler application/x-httpd-php .php
AddType text/html .php

After adding the above two statements,apache can server php requests.

But the actual executable to interpret PHP script should be php.exe,so Apache can convert application/x-httpd-php to php.exe?

share|improve this question

1 Answer 1

Apache probably doesn't run php.exe directly, but instead loads a cgi script. If you search around in your configuration files, you might see a line that reads something like:

Action application/x-httpd-php modules/libphp5.so

The Action directive allows that script to be loaded by referring to the MIME type. You can read more about it in Apache's Module mod_actions page.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.