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.
Le nécessaire
Dans ce tutoriel, nous présumons que vous avez un serveur web avec le support PHP activé, et que les fichiers terminés par l'extension .php sont traités par PHP. Sur la plupart des serveurs, c'est la configuration par défaut, mais n'hésitez pas à interroger votre administrateur système en cas de doute. Si votre serveur web supporte PHP, vous n'avez rien à faire. Simplement, créez un dossier, puis créez un fichier texte, avec l'extension .php : le serveur va automatiquement l'exécuter avec PHP. Il n'y a pas de compilation, ou d'installation compliquée. Gardez en tête que les fichiers sont comparables à des fichiers HTML, dans lesquels vous allez utiliser des balises magiques, qui feront beaucoup de choses pour vous. Beaucoup d'hébergeurs web proposent PHP mais si ce n'est pas le cas, lisez la section des » liens PHP pour trouver un hébergeur web le proposant.
Supposons que vous souhaitiez économiser du temps en ligne et travailler localement. Dans ce cas, vous devez installer un serveur web comme » Apache, et bien sur » PHP. Vous souhaiterez aussi installer une base de données comme » MySQL.
Vous pouvez soit installer ces logiciels individuellement ou bien d'une manière simplifiée. Notre manuel contient les instructions d'installation de PHP (en supposant que vous avez déjà un serveur web d'installé). Si vous rencontrez des problèmes dans l'installation de PHP, nous vous suggérons de poser vos questions sur notre » liste de diffusions réservée à cet usage. Si vous choisissez une version simplifiée, vous pouvez utiliser des » des installeurs qui prennent en charge l'ensemble de l'installation en quelques clics. Il est facile de configurer un serveur web avec le support de PHP sur n'importe quel système d'exploitation, y compris MacOs, Linux et Windows. Sous Linux, vous pouvez aussi trouver des commandes comme » rpmfind et » PBone très pratiques pour rechercher les paquets pré-compilés. Vous pouvez aussi visiter » apt-get, pour des paquets Debian.
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.
