please help me solve this php version problem.
I had Centos 6.5 (32bit) and php 5.3.3 pre-installed on it, right before I decided to wreck it!
The need to upgrade was this warning:
Warning: DOMDocument::saveHTML() expects exactly 0 parameters, 1 given in ...
and I found that it needs to be, at least 5.3.6 to work. Using this stackoverflow article, I upgraded to php 54w like this:
rpm -Uvh http://mirror.webtatic.com/yum/el6/latest.rpm
yum remove php-common # Need to remove this, otherwise it conflicts
yum install php54w
php --version # Verify version has been upgraded
but, after that I experienced some conflicts, and tried to remove the php and re-install it, and now I can not phpmyadmin opens nothing and SimpleXmlElement
returns some errors like:
PHP Warning: SimpleXMLElement::__construct(): Entity: line 2: parser error : Start tag expected, '<' not found in ...
or
PHP Warning: SimpleXMLElement::__construct(): Fatal error: Call to undefined function mb_convert_encoding() in
or
PHP Warning: SimpleXMLElement::__construct(): ^ in
or
PHP Fatal error: Uncaught exception 'Exception' with message 'String could not be parsed as XML'
, which I had not before this (with the pre-installed 5.3.3).
Guys, Please help me with this. I googled alot and each stack-like article pushes me to variety of totaly different commands. I am realy with it :(
Problem Solved
Finally the problem solved!
A friend of mine, suggested installing php-mbstring
like this:
sudo yum install php-mbstring
and atfer that the problem was solved (and phpmyadmin works fine again) and I am back at the state that have this warning:
PHP Warning: DOMDocument::saveHTML() expects exactly 0 parameters, 1 given in ...
and now I need to upgrade at least to php 5.3.6. I will ask it in a seperate thread, after some googling.
I realy appreciate helps from "Nomad" and sorry for the insufficient reputaion to upvote your helpful answer.