laravel / homestead

MIT License
3.85k stars 1.45k forks source link

Xdebug not enabled for PHP 5.6 #1974

Open ChrisTaylorDeveloper opened 2 months ago

ChrisTaylorDeveloper commented 2 months ago

Versions

Host operating system

Ubuntu 22.04.4 LTS

Homestead.yaml

---
ip: "192.168.56.56"
memory: 2048
cpus: 2
provider: virtualbox

authorize: ~/.ssh/id_rsa.pub

keys:
  - ~/.ssh/id_rsa

folders:
  - map: ~/xdebug-test
    to: /home/vagrant/xdebug-test

sites:
  - map: xdebug-test.test
    to: /home/vagrant/xdebug-test/public
    php: "5.6"

databases:
  - homestead

features:
  - mariadb: false
  - postgresql: false
  - ohmyzsh: false
  - webdriver: false

services:
  - enabled:
      - "mysql"

Vagrant destroy & up output

https://gist.github.com/ChrisTaylorDeveloper/46f178d0af7349d481c2a53ca8c8a4d3

Expected behavior

xdebug for php5.6 should be enabled.

Actual behavior

xdebug for php5.6 is not enabled. If I run ls /etc/php/5.6/fpm/conf.d/ the xdebug.ini is not in the list of enabled modules.

Steps to reproduce

  1. vagrant up using my Homestead.yml
  2. Run ls /etc/php/5.6/fpm/conf.d/
  3. Look for the xdebug.ini
svpernova09 commented 1 month ago

Because the configuration changes over time, I believe the only out-of-the-box valid Xdebug configuration will be for the current version of PHP.