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

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

2 Answers 2

Run:

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

 
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.