PHP5.2.17 for Apache 2.2.
The automatic Windows installer did not configure PHP correctly in httpd.conf. It left off the path to the module and PHPIniDir was blank. Adding the path got my installation working.
Incidentally Windows paths seem to be given in some places with / and in other places with \. It may not matter, but it is probably wise to stick to the pattern used in the relevant example.
O que eu preciso?
Neste tutorial nós presumimos que seu servidor tem suporte ao PHP ativado e que todos os arquivos terminam com a extensão .php são tratados pelo PHP. Na maioria dos servidores esta é a extensão padrão para os arquivos PHP, mas pergunte ao seu administrador só para ter certeza. Se o seu servidor suporta PHP então você não precisa fazer mais nada. Apenas crie seus arquivos .php e coloque-os no seu diretório web e o servidor irá com um passe de mágica mostrar suas páginas PHP. Não há nenhuma necessidade de compilação para qualquer ferramenta extra. Pense nesses arquivos PHP como se eles fossem páginas HTML com algumas tags à mais que deixaram você fazer coisas mais interessantes do que somente páginas HTML estáticas.
Digamos que você quer salvar sua preciosa conexão e desenvolver tudo localmente. Neste caso, você precisará instalar um servidor web, como o » Apache, e claro o » PHP. Você também irá querer instalar uma base de dados, como por exemplo o » MySQL. Você pode instalá-los separadamente ou pelo jeito mais simples que é » usar os pacotes pré-configurados. que irão instalar automaticamente todas as coisas com apenas alguns cliques. É super fácil configurar um servidor web com suporte ao PHP em qualquer sistema operacional, incluindo Linux e Windows. No Linux, você deve procurar o » rpmfind que é muito útil na localização de pacotes RPM.
On Ubuntu, you can install everything in a single command.
Just open your terminal window and type:
sudo apt-get install lamp-server^
(the ^ symbol at the end of this command is mandatory)
Rather than WAMP or XAMPP, I find it much easier and straightforward to use Windows Web Platform Installer...
One nice thing about WAMP is it's ability to install multiple versions of PHP, MySQL, and/or Apache and then easily select between them using the wampServer control panel. This allows you to test your app between various versions if you need that ability. XAMPP only supports one version of PHP, MySQL, and Apache.
Rather than WAMP as suggested above you can use XAMMP which is a very useful tool which is easy to install and run.
You can use this on Windows/Linux/Mac based machines (including vista) to locally test your applications. The secuirty on the server is limited at first and if you set up port forwarding to allow users from the 'outside world' to see you applications you will required to address a few security issues.
But all in all this tool is great to use for Windows users who want to test locally and like a simple install.
URL:
http://www.apachefriends.org/en/xampp.html
Don't worry about installing your own LAMP environment. (Linux, Apache, MySQL and PHP)
On windows, you can download and install WAMP. With one installation and you get an apache webserver, database server and php.
http://www.wampserver.com
On mac, you can download and install MAMP.
http://www.mamp.info/
Saves me a lot of headache to do development locally on my computer.
