I am using Ubuntu 14.04. I have PHP installed. When I check phpinfo()
from browser I get 5.5.9. But when I check from command line, I get 5.3.28. How can I make the command line PHP also to 5.5.9 ? I read that this is because php-cli
is using a different php.ini
file.
1 Answer
The php command line is located in php5-cli package (apt-cache policy php5-cli
), but since 5.3.28 has never been a part of Ubuntu, so I suspect that you have a local (compiled from sources) installation of php CLI probably in /usr/local.
-
you are correct @oerdnj. I manually removed the php from /usr/local/bin and then installed php5-cli in the normal way. Now I have php 5.5.9 in command line and browser– GBRocksJul 21, 2014 at 7:01
-
whereis php
output?