- 2010-06-21 (月)
- カテゴリ:ちょっと一言

今まで色々試していますがとりあえずPHP EclipseでPHPデバッグ環境できるか試したのでメモ
windowsXP
Apache2.2
php5.2.12
DBGのインストール
http://dd.cron.ru/dbg/downloads.php
今回は
DBG 2.15.5 dbg modules
をクリックして
dbg-2.15.5-win32.zip
をダウンロード
x86フォルダの
phpバージョンに合ったファイルを
phpのエクステンションフォルダ(例 c:\php\ext)にコピーして
php_dbg.dll
にリネームする。
PHP Eclipseのダウンロード
http://phpeclipse.de/
から
今回は1.2.3のバイナリzipをダウンロードしてfeaturesとpluginsの中身をeclipseフォルダのものに上書きする。
あと,mysqlのドライバを
http://dev.mysql.com/downloads/connector/j/3.1.html
から落として解凍したフォルダ内の
mysql-connector-java-3.1.12-bin.jar
をjreフォルダの/lib/extに入れておく。
apacheのエラー3種
その1
httpd: Could not reliably determine the server’s fully qualified domain name, using 127.0.0.1 for ServerName
http://blog.dacelo.info/apache/entry-713.html
このエラーは、/etc/hosts にlocalhost以外に自分で設定したホスト名が、Apacheの設定ファイルに定義されていないために発生する。
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 dacelo localhost.localdomain localhost
と書いた場合、/etc/httpd/conf/httpd.conf のServerNameの設定にも次のように書いておく。
# ServerName gives the name and port that the server uses to identify itself.
# This can often be determined automatically, but we recommend you specify
# it explicitly to prevent problems during startup.
#
# If this is not set to valid DNS name for your host, server-generated
# redirections will not work. See also the UseCanonicalName directive.
#
# If your host doesn’t have a registered DNS name, enter its IP address here.
# You will have to access it by its address anyway, and this will make
# redirections work in a sensible way.
#
#ServerName www.example.com:80
ServerName dacelo:80
その2
NameVirtualHost *:80 has no VirtualHosts
http://www.maocat.net/?p=786
Apache2の設定にports.confという設定ファイルがあって、そこに「NameVirtualHost *:80」があった。
どうも、中身が書き換わったっぽい?
この記事のような設定をしてあった場合、NameVirtualHostの設定が二つになるのでエラーになるらしい。
ports.confのNameVirtualHostを#でコメントアウトしちゃえばエラーが出なくなります。
その3
make_sock: could not bind to address 0.0.0.0 :80 no listening sockets available, shutting down Unable to open logs
http://oshiete.goo.ne.jp/qa/1349878.html
既にApacheが起動されているようですね。
もしかして、httpd.confを書き換えてから、スタート→プログラム→Apache HTTP Server 2.0.54→Control Apache Server→StartでApacheを起動させようとしていませんか?Win32版Apacheですが(WindowsXPで)インストールを行うとサービスとして登録され自動的に起動されます。
そこで、Apacheの停止を行わず上記のようにメニューから起動を行うと二重起動となり質問にあるエラーとなりますので、httpd.confを書き換えてそれを反映させたい場合はApacheを停止→起動か、再起動させてください。また、タスクバーにApache Service Monitor(メニューからでも起動可)があるので、そこからApacheの起動/停止/再起動を行う事が出来ます(もちろんメニューからでもいいです)
スタート→プログラム→Apache HTTP Server 2.0.54→Control Apache Server→Startと起動していました。
Lean様のおっしゃる通り、既に起動されているのに気付かず二重起動していたようです。
Eclipse + PHP Eclipse の感想
PDTとはだいぶ違うみたいで設定に戸惑います。
xampp対応が標準なのか,
ApacheMyssqlPhpを独自にインストールしていたりするとhttpd.confからhostsまで手直ししないとならない場合があります。
現状ではまだデバッガが動かない・・・。
やはりPDTとZendDebuggerで決まりなのだろか。
- カテゴリ:ちょっと一言

- 次の記事: Eclipse PDTでPHP開発環境構築メモ
- 前の記事: CentOS5.5で光接続(3)[繋がった]
Comments:0
Trackback+Pingback:0
- TrackBack URL for this entry
- http://reoto.com/archives/278/trackback/
- Listed below are links to weblogs that reference
- EclipseでPHP開発環境構築PHP Eclipse編「メモ」 from ぼんずーず