I am assuming that you have downloaded and installed Apache 2.x on your windows machine. Estou assumindo que você tenha baixado e instalado o Apache 2.x em sua máquina Windows. Use the latest version 2.2, if you do not have plans to run Subversion on it. Use a última versão 2,2, se você não tem planos para correr Subversion sobre ele. Otherwise choose Apache 2.0.x. Caso contrário escolher Apache 2.0.x. Install it with the defaults. Instale-o com o padrão. You may want to however changes the drive on which it is installed. Você pode querer mudanças no entanto a unidade em que está instalado. Anyway so you have it running. Anyway, assim você tem que correr. Then you went to php.net and have downloaded and extracted the zip file to say c:\ or d:\. Então você foi para a php.net e ter baixado e extraído o arquivo zip para dizer c: \ ou d: \. I am assuming you have then changed the name of php.ini-recommended to php.ini. Estou assumindo então você tem mudado o nome de php.ini-recomendada para php.ini. So far all the steps are straight forward and their install guide is good enough. Até agora todos os passos para a frente e se instalar seu guia é suficientemente bom. Now you are feeling happy about it and want to integrate PHP with Apache, right? Agora você se sente feliz sobre isso e quiser integrar o PHP com Apache, certo? That’s when the fun begins. É isso que a diversão começa.

To cut the long story short the instructions in PHP document doesn’t work and have obviously not been updated in a long while. Para cortar a longa história curta as instruções em PHP documento não funciona e é óbvio que não tenham sido atualizados em um longo tempo. So I will give you a 2 minute guide to glory. Então, vou dar-lhe um guia para a glória 2 minutos.

Open httpd.conf (in Drive:\Program Files\Apache Group\Apache2\conf) and search for LoadModule statements. Abra httpd.conf (em Drive: \ Arquivos de programas \ Apache Group \ Apache2 \ conf) e de busca de LoadModule declarações. At the end add: No final acrescentar:
LoadModule php5_module "D:/php/php5apache2.dll" LoadModule php5_module "D: / php/php5apache2.dll"

Then search for Depois de pesquisa directives. directivas. At the end add: No final acrescentar:

 AddType application/x-httpd-php .php  AddType application/x-httpd-php-source .phps AddType aplicação / x-httpd-php. Php AddType aplicação / x-httpd-php-source. Phps 

Note: The last AddType is a nicety. Nota: A última AddType é um nicety. It allows you to view .phps files (php files with extension renamed) in htmlized and colorful format from your browser. Ele permite visualizar. Phps ficheiros (arquivos com extensão php renomeados), em htmlized e colorido formato do seu navegador.

Now restart the server. Agora reinicie o servidor.
Did I say you are done? Eu diria que você está feito? Well, you are. Pois bem, você é. So go out and enjoy. Por isso, sair e desfrutar.

Note: If you are a wimp and you don’t need Subversion you may take the easy way out and install Xampp instead. Nota: Se você for um wimp e você não precisa Subversion você pode tomar o caminho mais fácil para fora e instalar Xampp vez. It will do the dirty work for you. Ela irá fazer o trabalho sujo para você.