PHP 5.3.0が出た
phpの5.3.0が出たらしい。
早速インストールしてみた。
環境
・Windows Vista Home Premium SP1
TomcatやApacheも、最近はWindows版のインストーラでもあまり問題なくインストール出来ていたので、インストーラ版(*.msi)を入れてみました。
色々バージョンがあるようなのですが、以下バージョンの中で
- VC9 x86 Non Thread Safe (2009-Jun-30 08:52:54)
- VC9 x86 Thread Safe (2009-Jun-30 08:52:56)
- VC6 x86 Non Thread Safe (2009-Jun-30 08:52:54)
- VC6 x86 Thread Safe (2009-Jun-30 08:52:55)
スレッドセーフじゃないよりスレッドセーフのがいいだろと何も考えずにVC9のスレッドセーフの奴のインストーラ版をダウンロードしてインストールしてみました。
したら、まずインストールは失敗してしまい、またそれをアンインストールしようとしたら
The installer has encountered an unexpected error installing this package. This may indicate a problem with this pachage.The error code is 2738.
よくよくPHPのダウンロードサイトを見たら
Which version do I choose?
If you are using PHP with Apache 1 or Apache2 from apache.org you need to use the VC6 versions of PHPIf you are using PHP with IIS you should use the VC9 versions of PHP
VC6 Versions are compiled with the legacy Visual Studio 6 compiler
VC9 Versions are compiled with the Visual Studio 2008 compiler and have improvements in performance and stability. The VC9 versions require you to have the Microsoft 2008 C++ Runtime (x86) or the Microsoft 2008 C++ Runtime (x64) installed
Do NOT use VC9 version with apache.org binaries
とか書いてある。つまりIISで使用しないならVC6のバージョンを使用しろということ。
ちなみに、VC6のPHPをインストールする前に、この残っちゃって消せないVC9版のPHP5.3を消したい。
調べたところ、Windows Installer Clean Up ユーティリティというのがあったので入れて実行してみました。
Vistaだと、まずインストールする際に「管理者として実行」で入れないと入らないようです。
さらに、そこからユーティリティを実行しても「Windows Installer Clean Up Application は動作を停止しました」とか出て起動できません。
これはIMEの設定を変えればいける場合もあるらしいので、IMEの設定-[全般]-[追加]-[日本語]-[キーボード]-[Microsoft IME]をチェックして設定変更したら無事起動しました。
そこから、PHP5.3.0を選択して[Remove]を押せば削除完了。無事消えたみたいなので、PHPのインストールはまた次回に。
