3

Wanting to configure xdebug in eclipse on debian. I can't seem to find the php executable, but var/www processes php in the current version. How can I find the executable to make xdebug work?

Here's my error message:

"Failed to launch on php server - Reason: Launch target not found."
JMC
  • 143

2 Answers2

4

type

which php

one the command line. It should tell you which version is installed. You might want to ls -l the result as it will be a symlink. Follow the symlinks until you get the install path.

Pram
  • 518
1

try out

which php

which will "locate a command" (as the manpage tells me).

On a Debian system most commands are symlinks, which point to the real commands. That way you can easily have multiple versions or alternatives of an executable installed with a singe command pointing to the default one (see man update-alternatives or this article about alternatives.

On my Debian Lenny my php executable can be found at /usr/bin/php5.

lajuette
  • 4,852