Zend Server with XDEBUG and PHPSTORM

1. Change timeouts
file: Zend\ZendServer\etc\ZendEnablerConf.xml
change line with timeouts tag to: Timeouts connectionTimeout="120" requestTimeout="1200"

file: Zend\ZendServer\etc\php.ini
change: max_execution_time=30 to: max_execution_time=600

2. Enable vhosts
file: Zend\Apache2\conf\httpd.conf
uncomment Include conf/extra/httpd-vhosts.conf

3. Create new vhost
file : Zend\Apache2\conf\extra\httpd-vhosts.conf
You can base on exist one in this file.

4. Add new created local domain name for vhost in file: C:\Windows\System32\drivers\etc\hosts
127.0.0.1 newdomain.local.com newdomain2.local.com

5. XDEBUG library
Download library from http://xdebug.org/files/ and move to Zend\ZendServer\lib\phpext
For my OS (Windows 8.1) works this one: php_xdebug-2.2.3-5.4-vc9-nts.dll
Now open php.ini file (Zend\ZendServer\etc\php.ini), ande before line:
zend_extension="C:\Zend\ZendServer\lib\ZendExtensionManager.dll"
add this line:
zend_extension="C:\Zend\ZendServer\lib\phpext\php_xdebug-2.2.3-5.4-vc9-nts.dll"

5. Disable Zend debugger
file: Zend\ZendServer\etc\cfg\debugger.ini
comment this line:
;zend_extension_manager.dir.debugger="D:\Program Files\Zend\ZendServer\lib\debugger"

6. Enable xdebug
file: Zend\ZendServer\etc\php.ini
add on the end of file:

xdebug.remote_enable=1
xdebug.remote_handler=dbgp
xdebug.remote_host=localhost
xdebug.remote_port=9000
xdebug.profiler_enable=0

7. Download some plugin to web browser, for chrome Xdebug helper an configure it.
8. Enable Xdebug in PHPSTORM
Settings > Project Settings > PHP > Servers > Add new one an select Xdebug
9. Done πŸ™‚