How To Configure PHP 5 With Apache 2 On Windows in 2 Minutes Como configurar o PHP 5 No Windows Com Apache 2 em 2 minutos
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
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ê.
Filed under Arquivado em Headline News Headline News , De How To How To , De Open Source Software Open Source Software , De PHP , De Tech Note Nota Tech , De Web , De Web Hosting Web Hosting , De Web Services Web Services , De Windows Janelas | |
| |
RSS 2.0 RSS 2,0 | |
Trackback this Article | este artigo |
Email this Article E-mail este artigo
You may also like to read Você pode também gosta de ler |




September 22nd, 2007 at 4:16 am 22 de setembro de 2007 em 4:16 am
Thank U very much.. U agradecer muito ..
October 14th, 2007 at 11:28 pm Oct 14, 2007, 11:28 pm
hi oi
does this config works on vista? é que isto funciona em config Vista?
i download the latest php, but font contian the php5apache2.dll but i have the php5ts, can any1 tell me what to do..please i download da última php, mas fonte contian a php5apache2.dll mas tenho a php5ts, any1 pode dizer-me o que fazer por favor ..
December 18th, 2007 at 10:50 am 18 de dezembro de 2007 em 10:50 am
Awesome, thanks! Incrível, muito obrigado! this was the critical part I needed. esta foi a parte crítica que precisava. Even book installation procedures were off base Mesmo livro procedimentos foram instalação off base
February 24th, 2008 at 9:39 pm 24 de fevereiro de 2008, 9:39 pm
Thanks, Obrigado,
That worked well. Isso funcionou bem.
Extra step to smooth things in Vista Extra coisas no bom passo para Vista
I would add that in the htdocs folder (for those lazy folks who don\’t change the root directory to be something else), that changing the permission ability for USER makes it really simple to add/edit files Gostaria de acrescentar que, na pasta htdocs (preguiçoso para aqueles povos que don \ 't mudar o diretório raiz para ser outra coisa), que através da modificação da capacidade permissão para o usuário torna realmente simples de adicionar / editar arquivos
go to htdocs directory ir ao diretório htdocs
right click and select \”Customize This Folder\” botão direito e escolha \ "Personalizar esta pasta \"
select \”Security\” tab. selecione \ "Segurança \" guia.
select \”Edit\” or \”Advanced\” to change the permissions for USER selecione \ "Editar \" ou \ "Avançado \" para mudar as permissões para o usuário
May 31st, 2008 at 7:17 am 31 de maio, 2008, 7:17 am
Hi Oi
Thanks for the info Graças à info
Short and good. Curto e bom.
Well done Bem feito
I have follow you instructions but I get an error: Tenho que você siga instruções mas eu receber uma mensagem de erro:
The specified module could not be found. O módulo especificado não pôde ser encontrado.
My OS is Vista home premium. O meu sistema operacional é Vista Home Premium.
Must say that the file: php5apache2.dll Devo dizer que o arquivo: php5apache2.dll
was not part of the PHP package. não era parte do pacote PHP.
instead, I have: php5ts.dll em vez disso, eu tenho: php5ts.dll
(Here is a good link to find that missing php5apache2.dll (Aqui está uma boa ligação ao descobrir que faltam php5apache2.dll
http://kromann.info/download.php?strFolder=php5_1-Release_TS&strIndex=PHP5_1
)
This is the code lines from my httpd.conf Esse é o código linhas do meu httpd.conf
I have placed the lines at the end of the LoadModule list. Eu tenho as linhas colocadas no final da lista LoadModule.
This line is the last one on the list: Esta linha é um dos últimos na lista:
#LoadModule vhost_alias_module modules/mod_vhost_alias.so # LoadModule vhost_alias_module modules / mod_vhost_alias.so
Then right bellow I have placed the 3 lines as you instructed: Então eu tenho direito abaixo colocado a 3 linhas como você instruiu:
LoadModule php5_module “php/php5apache2.dll” LoadModule php5_module "php/php5apache2.dll"
AddType application/x-httpd-php .php AddType aplicação / x-httpd-php. Php
AddType application/x-httpd-php-source .phps AddType aplicação / x-httpd-php-source. Phps
Please advice Por favor, conselhos
Thanks for your help Obrigado por sua ajuda
Amit C. Amit C.