Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

1 Answer 1

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 nix.michaelslist.org/?p=31 –  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

 
discard

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.