Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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

1 Answer 1

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.