Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

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

I have just built PHP from source. Usually when I do this, I don't have any problems just running php from anywhere. This time however, the console returns 'command not found'. What do I need to correct for this to work properly?

share|improve this question
up vote 3 down vote accepted

As you suspected by your subject, the PATH variable needs to be properly updated.

If you are using bash as your shell, this can be done in your personal ~/.bashrc file, or in the global /etc/profile or /etc/bashrc files for all users. You would add a line like this in either case:

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.