먼저 Apache와 php를 다운로드한다.
자세한 내용은 Windows에서 Apache 2.4.X 와 PHP 5.6.X 설치
위의 내용은 apache와 2.4 버전과 php 5.6버전 설치의 예입니다.
1. eclipse 상위 텝에서 [Window] -> [Preferences] 클릭.
![](https://t1.daumcdn.net/cfile/tistory/99A1863359B1868907)
2. PHP Servers 설정.
[PHP] -> [Servers] 클릭후 오른쪽의 new 버튼을 클릭합니다.
[PHP]가 없다면 eclipse 상위 tap => [Help] => [Eclipse Marketplace] => find : PHP Development Tools 검색후 install
![](https://t1.daumcdn.net/cfile/tistory/993EE03359B186D408)
3. PHP Servers 설정.
New Server창이 뜨면
Name : php
Base Url : http://localhost
Local Web Root : C:\Apache24\htdocs 입력합니다.
저는 등록이 되어있기 때문에 Edit Server창이 떴습니다.
![](https://t1.daumcdn.net/cfile/tistory/99986D3359B187FF09)
4. PHP Excutables설정.
동일 [Preferences]의 PHP Excutables를 클립하고 add 버튼을 누릅니다.
Name : php
Executable path : C:\php56\php.exe
PHP ini file (optional) : C:\php56\php.ini
ok하려는데 Zend Debugger extension is not installed. Error Zend Debugger가 설치되어있지 않다고 나옵니다.
저는 Xdebug를 설치 하겠습니다.
![](https://t1.daumcdn.net/cfile/tistory/9908ED3359B189180B)
5. Xdebug Debugger 설치.
1. Xdebug 홈페이지
2. 저는 64비트 php56버전이라
PHP 5.6 VC11 TS (64 bit) (SHA256: 8ac0b0e148e437abcf9acf2baf0b40b356cb1a248c53807a5b956e7f8c5acc68) 을 다운 받았습니다.
![](https://t1.daumcdn.net/cfile/tistory/99624A3359B1F7A916)
3. 다운로드 후, [C:\php56] php56버전이 있는 폴더에 php_xdebug-2.5.5-5.6-vc11-x86_64.dll파일 이동
4. C:\Windows\php.ini 파일을 열고
파일 가장 밑에 추가
[XDebug]
zend_extension = "C:\php56\php_xdebug-2.5.5-5.6-vc11-x86_64.dll"
xdebug.profiler_append = 0
xdebug.profiler_enable = 1
xdebug.profiler_enable_trigger = 0
xdebug.profiler_output_dir = "C:\php56\tmp"
xdebug.profiler_output_name = "cachegrind.out.%t-%s"
xdebug.remote_enable = 1
xdebug.remote_handler = "dbgp"
xdebug.remote_host = "127.0.0.1"
xdebug.trace_output_dir = "C:\php56\tmp"
xdebug.remote_autostart=on
xdebug.remote_enable=on
xdebug.remote_connect_back=1
xdebug.remote_port=9000
xdebug.remote_mode=req
xdebug.idekey="netbeans-xdebug"
6. apache 재시작
1.cmd 관리자 권한으로 실행
2. apache stop
c:\> C:\Apache24\bin\httpd.exe -k stop
3. apache start
c:\> C:\Apache24\bin\httpd.exe -k start
7. PHP Executable 설정완료.
![](https://t1.daumcdn.net/cfile/tistory/993A0F3359B1F9321B)
8. PHP project 생성.
1. PHP Explorer 텝에서 오른쪽 버튼 => [New] => [Other] => 검색창에 : [php project]
2. 밑에 사진과 같이 입력 후 Finish
3. 완료.
![](https://t1.daumcdn.net/cfile/tistory/99BFAF3359B1FA5220)