Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Install PHP 5.4.1 in centos6.2

Tags:

php

centos

In centos6.2 default is php 5.3.3. But i want install php 5.4.1. Can you help me? How do php5.4.1 install in centos6.2? Thanks!

like image 416
D T Avatar asked Jul 06 '12 11:07

D T


2 Answers

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

See this for more info.

like image 159
Nikola K. Avatar answered Nov 09 '22 06:11

Nikola K.


  1. you must yum remove php-common that will remove php from your server.
  2. then php -v to make sure there is no php
  3. finally rpm -Uvh http://repo.webtatic.com/yum/el6/latest.rpm followed by yum install php54w
  4. and ideally you would want to install php54w-fpm too
like image 32
Eddy Ferreira Avatar answered Nov 09 '22 05:11

Eddy Ferreira