Ask Ubuntu is a question and answer site for Ubuntu users and developers. 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 just installed php5 as root via apt-get install php5, and for whatever reason I can't find my php.ini file.

Running locate php.ini or ls /etc/ | grep php.ini both yield no results.

Is there anything I'm missing here?

share|improve this question
up vote 3 down vote accepted

Run sudo updatedb in your terminal and try locate php.ini.

Or you can find php.ini under /etc/php5/apache2 or /etc/php5/cli/.

share|improve this answer
coolness, thank you. – Holland Apr 3 '12 at 8:26

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.