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.
必要なものは?
本チュートリアルでは、使用するサーバーで PHP が使用可能であり、 .php で終わる全てのファイルが PHP で処理されることを仮定します。多くのサーバーでは、PHP ファイルに関してこれがデフォルトの拡張子ですが、 確実なのはサーバーの管理者にきいてみることです。サーバーが PHP をサポートする場合、何もする必要はありません。 .php ファイルを 作成して Web ディレクトリに置くだけで、 サーバーがこれを自動的にパースしてくれます。 何もコンパイルする必要はなく、他のツールをインストールする必要もありません。 PHP のファイルは、あなたが行なう全ての処理を実装した特殊なタグを通常の HTML ファイルに追加したものと考えると良いでしょう。 ほとんどの Web ホストは PHP サポートを提供していますが、 使用しているホストがサポートしていない場合、 » PHP リンク集のセクションで PHP が利用可能な Web ホストを探すためのリソースを読んでみてください。
ここでは、貴重なネットワーク帯域を節約するために、 ローカルに開発を行うことにしましょう。この場合、 » Apache のような Web サーバーと、 当然、» PHP をインストールすることになります。また、多くの場合には、 » MySQL のようなデータベースもインストールすることになるでしょう。
これらは個別にインストールすることもできますし、 より簡単な方法でインストールすることも可能です。 このマニュアルには、 PHP のインストール手順 (Web サーバーが設定済みであると仮定しています) があります。 PHP 自体をインストールする際に問題が発生した場合、 » インストールに関する メーリングリストで質問することをお薦めします。 より簡単にインストールを行いたい場合には、 使用するオペレーティングシステム用の » 設定済みのパッケージ を利用することもできます。これにより、 数回のマウスクリックで自動的にこれらをインストールすることができます。 MacOSX、Linux や Windows を含む、あらゆるオペレーティングシステムにおいて Web サーバーで PHP を使用できるように設定することは簡単です。 Linux の場合、RPM の場所を知るために » rpmfind と » PBone が有用でしょう。 Debian 用パッケージをみつけるには、» apt-get にアクセスするとよいでしょう。
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.
