我有一台运行CentOS7的服务器,php-fpm是PHP7.0.7,还有一个是SELinux。 我正在尝试debugging在该服务器上运行的PHP脚本。 我有一台运行PHP风暴的Mac机器,我打算进行debugging。
我遵循这个指南Phpstorm。
以下是我所做的:
1)安装xdebug到服务器
2)设置xdebugconfiguration如下:
的zend_extension = “的/ usr / lib64下/ PHP /模块/ xdebug.so”
xdebug.remote_enable = 1
xdebug.remote_host = “localhost” 的
xdebug.remote_port = 9099
xdebug.remote_handler = dbgp
xdebug.remote_autostart = 1
xdebug.idekey = “PHPSTORM”
3)设置sshconfiguration有:AllowTcpForwarding是(我然后恢复它,因为它没有帮助)
4)重新启动php-fpm,sshd和httpd
5)在我的本地terminal,打开ssh连接到指定-R标志的服务器
$ ssh -R 9099:localhost:9099 user @ host
6)改变我的phpstorm中的xdebugconfiguration来监听端口9099,并在index.php中设置一个断点
7)在我的浏览器中打开网站
但是我的本地xdebug并没有停在断点处。
我在configuration中可能会丢失什么?
难道是SElinux阻止debugging吗?