Take the 2-minute tour ×

I got a link saying following steps of installation of PHP 5.4.3.

rpm -Uvh http://repo.webtatic.com/yum/el6/latest.rpm

yum install php54w

Can i use above method safely?

Or any other rpm that i can use?

share|improve this question
What happens when you run yum install php? I think the default Red Hat repository should have PHP... –  Breakthrough May 11 '12 at 17:52
yum installs PHP 5.1.6 –  P K May 11 '12 at 20:27
add comment

1 Answer

up vote 2 down vote accepted

You can use that method if you trust their site.

That rpm command sets up a yum repository pointing to their site and the yum command installs it.

You may need to run yum clean all and yum update after adding the repository.

You could also install from source code from http://php.net.

share|improve this answer
add comment

Your Answer


