Local Host (Windows environment 192.168.66.1) Access virtual machine (192.168.66.139) inside the built PHP environment (System centos6.5 version, PHP version is 5.5.30, Xdebug 2.4.0), via command line PECL Install Xdebug installation of Xdebug,
In php.ini configuration Xdebug
[Xdebug]
Zend_extension=/usr/local/php/lib/php/extensions/no-debug-non-zts-20121212/xdebug.so
Xdebug.auto_trace = On
Xdebug.idekey = Phpstorm
Xdebug.remote_connect_back = On
Xdebug.auto_trace = On
Xdebug.show_exception_trace = On
Xdebug.remote_autostart = On
Xdebug.remote_enable = On
Xdebug.collect_vars = On
Xdebug.collect_return = On
Xdebug.collect_params = 1
Xdebug.remote_handler=dbgp
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9001
Xdebug.profiler_enable=on
Xdebug.trace_output_dir = "/tmp/xdebug2222/"
Xdebug.profiler_output_dir = "/tmp/xdebug/"
Xdebug.remote_mode = req
Ask the page index.php, the page has been stuck, view nginx error log, found that there has been upstream timed out (110:connection timed out) while reading response header fr Om Upstream
PHP-FPM has been reported time-out error, should be the PHP-FPM return request exceeded the set time, but always do not know why the report error, the script is not a problem,
Found Xdebug.remote_connect_back = On put this line commented out, there is no problem, scary ah.
Website address: Https://xdebug.org/docs/all_settings#remote_connect_back
The explanation of this parameter given by the official website is
Xdebug.remote_connect_back
Type:boolean, Default value:0, introduced in Xdebug > 2.1
If enabled, the Xdebug.remote_host setting is ignored and Xdebug would try to connect to the client that made the HTTP requ Est. It checks the $_server[' REMOTE_ADDR '] variable to find out which IP address to use. Please note this there is no filter available, and anybody who can connect to the webserver would then being able to start a D Ebugging session, even if their address does not match xdebug.remote_host.
Presumably, after setting this parameter, Xdebug return data will not only return to the Xdebug.remote_host parameter set IP, any IP request will return data, so that more people can share the PHP xdebug environment of this server.
But still did not know the solution, do not know why.
Xdebug has been error upstream timed out (110:connection timed off) While reading response headers from upstream