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 know that my php.ini is located at /etc/php.ini but when i run php -i|grep php.ini I get this output

Configuration File (php.ini) Path => /usr/local/lib

there's nothing in that directory and i know where my php.ini is located, so why am i getting this output?

share|improve this question

When you run "which php" what does it give as an answer? How did you install php? It sounds like you have 2 versions of php running on your server.

share|improve this answer
"which php" gives this output '/usr/local/bin/php' it's just a file, but in '/usr/local/lib' i have a folder called php with many files folders inside it, I am using php 5.3.8 and i deleted the previous version (or at least that what i think lol) should i delete the file called php in usr local bin? that's how i upgraded to the latest version – user Sep 21 '11 at 14:51
and installed the previous php version like this "yum install php php-mysql php-common php-gd php-mbstring php-mcrypt php-devel php-xml" – user Sep 21 '11 at 15:23
Sounds like your php is installed in /usr/local/lib/php with the php.ini in /usr/local/lib/php/php.ini – AliGibbs Sep 21 '11 at 15:28
"/usr/local/lib/php/" exists but there's no php.ini inside that php foloder, anyway how to get rid of it, i only need 1 php do i just delete it or what? – user Sep 21 '11 at 15:59
and one more thing, what version will i be deleting? :D – user Sep 21 '11 at 16:00

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.