Update XDebug on Homestead

Tips Jun 14, 2016

To update XDebug to 2.3.2 (tested) on a Homestead 0.2.5 (tested) Vagrant box, you can use the following commands:

cd ~
wget http://xdebug.org/files/xdebug-2.3.2.tgz
tar -xvzf xdebug-2.3.2.tgz
cd xdebug-2.3.2
cp modules/xdebug.so /usr/lib/php5/20131226
sudo cp modules/xdebug.so /usr/lib/php5/20131226
sudo nano /etc/php5/cli/php.ini
cd /etc/php5/fpm/conf.d/
sudo nano 20-xdebug.ini 
sudo service php5-fpm restart

Probably this will also work with different versions of XDebug and/or Homestead. Just replace the version number of XDebug to the one you want to use.


Hi! I’m Tristan, a software engineer at Exonet and PHP and Laravel enthusiast. I'm also fiddling a bit with Python and Home Assistant, trying to automate my home as much as possible. Within reason.