Linux Tutorials

Install PHP 7 in Cent OS 7 / RHEL 7

php_7_setup

HI Readers, if you want to use latest PHP 7 for your work environment follow the post

Install PHP 7

first we have to enable EPEL repo, by using following command

yum install epel-release

guess_linux_php_7_install1

install one third party repo for PHP 7 thanks to webtatic

rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm

guess_linux_php_7_install2

update the system yum update

guess_linux_php_7_install3

then install php by using yum install php70w

guess_linux_php_7_install4

you are done

check PHP version php -v

guess_linux_php_7_install5

if you want extra php module then search yum search php70

Thank You.

Leave a Comment