Windows上でのEclipseによるPHP開発環境のメモ。
環境
- Windows XP SP2
Eclipseの入手とインストール
- Pleiades All in One PHPのJRE あり版をダウンロードし解凍
- eclipseフォルダとxamppフォルダをD:\に移動
- D:\xampp\setup_xampp.batを実行。選択肢は全てデフォルト
Zend Debuggerの入手とインストール
- Zendのダウンロードページから、「Studio Web Debugger」をダウンロード
- 解凍するとPHPのバージョン毎にフォルダが存在する。使用しているPHPと同じバージョンのフォルダ内に入っているZendDebugger.dllを任意の場所へコピー 例:D:\Program Files\xampp\php\ZendDebugger.dll
- php.iniに以下を追加
■メモ
2010/09/04時点でリリースされているZend Debuggerはnts(non-thread safe)のみとなっており、ts(thread safe)はまだの模様。
XAMPPに付属しているPHP(5.3)はts(thread safe)としてコンパイルされている為、このバージョンのZend Debugger(5_3_x_nts_comp)はXAMPPのPHPでは利用できない。
大人しくts版がリリースされるのを待つか、PHPを自前でntsとしてインストールし無理矢理使うかの2択。
ntsが何の略か分からずにずっと試行錯誤していました。Non Thread Safeの略なんですね。
めっちゃ時間を浪費したっす・・・orz
参考:Zend公式サイトのフォーラム
Zend Debugger with XAMPP
Hi,
I tried to set up Zend Debugger with XAMPP. I allready read the other threads in this forum to this topic.
My settings:
System: Windows 7 x64
Zen Debugger .dll: 5_3_x_nts_comp
PHP Version 5.3.1
XAMPP 1.7.3
ZendStudio Build ID: 20100221
I included in xampp\php\php.ini (ip changed)
zend_extension_ts = “\xampp\php\ext\ZendDebugger.dll”
zend_debugger.allow_hosts= 141.0.0.56/32, 127.0.0.1/32
zend_debugger.expose_remotely=always
there are no other zend values. The Debugger DLL is in “\xampp\php\ext\ZendDebugger.dll”
If I try “Test Debugger” both IP Adresses get timeout. I don’t understand what I do wrong or how I have to change configuration of ZendStudio or XAMPP.
Can someone give me some help?
——————————————————
RE:Zend Debugger with XAMPP
Probably you are using Zend debugger which compiled against non-thread safe PHP version (5_3_x_nts_comp) but PHP shipped with XAMPP compiled as a thread safe. Zend do not supports thread safe versions of Zend debugger anymore.
——————————————————
RE:Zend Debugger with XAMPP
Do yourself a favor…get rid of XAMPP and get Zend Server Community Edition.
XAMPP is a terrible setup and not scalable at all.
Backup your projects and kill the XAMPP.
最後の人が「XAMPPなんて拡張性が酷いよ!消すんだ!」と言っている。
※以下は今のところ無視してください。
–無視ここから
zend_extension_ts="D:\Program Files\xampp\php"
zend_debugger.allow_hosts=127.0.0.1/192.168.0.*
zend_debugger.expose_remotely=always
–無視ここまでEclipseの設定
- eclipseを起動
- Pleiades All in One PHPにはAntが付いていないので以下の手順でインストールする
- ヘルプ>新規ソフトウェアのインストール>「作業対象」で「Helios – http://download.eclipse.org/releases/helios」を選択>下に出てきた一覧から、「プログラミング言語」の「Eclipse Java 開発ツール」をチェック>後は適当に選んでインストール
- eclipseを再起動
- ウィンドウ>設定でAntが存在することを確認
- ウィンドウ>設定の以下の項目をそれぞれ変更
- 各エディタの文字コード:UTF-8
- 各エディタのタブ:半角スペース4
XamppのApacheの設定
- httpd.confのDocumentRootを、Eclipseで使用するワークスペースのルートに設定
関連するかもしれない記事
- XAMPP(PHP5.3)とZend Debugger(5_3_x_nts_comp)
- PHP -Zend Debuggerの導入
- HTTP Server On USB
- eclipse -PHPプラグイン(PDT)のインストール
- Flex3 開発環境を整えるまで
他のブログも読む



0 Responses
Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.