Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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."
share|improve this question
/usr/bin as phpPHPVERSION. For example, /usr/bin/php4. – subanki Sep 12 '10 at 7:16
@subanki - I told eclipse to use usr/bin/php5 but I keep getting the error message "Failed to launch on php server - Reason: Launch target not found." It has me scratching my head. – JMC Sep 12 '10 at 7:19
try typing "whereis php"..... try typing "updatedb" then afters when done type "locate php" – subanki Sep 12 '10 at 8:16
up vote 1 down vote accepted


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.

share|improve this answer
Accepting since was first. – JMC Sep 12 '10 at 8:20

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.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.