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 installed the php 5.3.6 In the terminal, the php version is 5.3.6 by entering the command php -v. However, in the website, it show it is 5.1.6 by using phpinfo.

What is the problem??

share|improve this question


yum list installed | grep php

You most likely have installed a new version of php53-cli, but are still running the older version of php. Simply install the php53 base and that will get them in sync.

Alternatively you may have installed the new version of php, but have not yet restarted your apache, if that is the case you simply need to:

service httpd restart
share|improve this answer

What command did You use to install php 5.3.6 in terminal ?? Maybe You used yum install php-cli - if so this is only command line version of php.

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.