Where is the php executable on Debian?

2

1

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

Posted 2010-09-12T07:07:32.323

Reputation: 133

/usr/bin as phpPHPVERSION. For example, /usr/bin/php4. – subanki – 2010-09-12T07:16:14.013

@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 – 2010-09-12T07:19:45.320

try typing "whereis php"..... try typing "updatedb" then afters when done type "locate php" – subanki – 2010-09-12T08:16:32.127

Answers

3

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

Posted 2010-09-12T07:07:32.323

Reputation: 418

Accepting since was first. – JMC – 2010-09-12T08:20:05.513

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

Posted 2010-09-12T07:07:32.323

Reputation: 4 364