If you get these error messages (on CentOS, at least) it has to do with the SFTP subsystem not being configured properly.
Phpstorm vagrant xdebug how to#
At the time of this writing, I found the solution pretty quickly, but I also knew pretty much exactly how to Google-fu it. So, this is (was?) a pain to Google around for. The infamous "inputstream is closed" or "pipe closed" error Otherwise, you’ve added the remote interpreter. Click okay and if you get the “input stream closed” Java IO exception, check out the section below.Make sure you set up a path mapping for your shared folder (not the default /vagrant shared folder).The “PHP interpreter path” should be /opt/remi/php56/root/bin/php or /usr/bin/php56.Select Vagrant and set “Vagrant Instance Folder” to your Vagrant project.Navigate to "Languages & Frameworks > PHP".Just make sure the PHP70(71 or 72) software collections are installed, load which one you want as root and then pecl install xdebug. If you use PHP 7, the same steps will apply. With Xdebug v2.5.0, Copyright (c) 2002-2016, by Derick Rethans Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies # zend_extension=/opt/remi/php56/root/usr/lib64/php/modules/xdebug.so # Modify /opt/remi/php56/root/etc/php.ini # Load version of PHP you want to install Xdebug for. # Install PHP56 Devel Package if you haven't already. Make sure to install devel packages as well ( php56-php-devel). This assumes you've installed the PHP 5.6 Software Collection. You can follow my ranting and raving at Vagrant, PHPStorm, Xdebug and PHP Software Collections