php - Connection between phpstorm and xdebug -


i configured phpstorm-xdebug , able debug code breakpoints. these days updated php (through brew) , xdebug , have php 5.5.26 xdebug 2.3.3. when try debug tests (and code) phpstorm tells me: "connection xdebug not established".

i checked configuration of xdebug in php.ini , it's follow

[xdebug] zend_extension="/usr/local/opt/php55-xdebug/xdebug.so" xdebug.remote_enable=1 xdebug.profiler_enable=1 xdebug.remote_port=9000 xdebug.remote_host=127.0.0.1 xdebug.idekey=phpstorm 

and web server debug validation says

enter image description here

i tried different versions of phpstorm, uninstalling e reinstalling php55/php55-xdebug no success.

do have idea on how solve problem?

after installing new php, if start php-fpm without configuring properly, defaults listen on port 9000. here 'stock' php-fpm.conf distro need edit:

/usr/local/etc/php/5.5/php-fpm.conf

...  ;   '[::]:port'            - listen on tcp socket addresses ;                            (ipv6 , ipv4-mapped) on specific port; ;   '/path/to/unix/socket' - listen on unix socket. ; note: value mandatory. listen = 127.0.0.1:9000 

it binds port 9000, change value (in case changed 8001). configure apache's config accordingly. here config example config (apache 2.4), binding port 8001

/usr/local/etc/apache2/2.4/extra/proxy-fcgi.conf

proxypassmatch ^/(.*\.php(/.*)?)$ fcgi://127.0.0.1:8001/usr/local/var/www/htdocs/$1 directoryindex /index.php 

restart apache , php-fpm, , go use port 9000 xdebug. start phpstorm.


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -