Skip to main content

Update Xdebug Homestead

·1 min

Simple instructions to update XDebug on Homestead.

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

cd ~
tar -xvzf xdebug-2.3.2.tgz
cd xdebug-2.3.2
cp modules/ /usr/lib/php5/20131226
sudo cp modules/ /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.