{"id":517,"date":"2020-01-15T03:54:03","date_gmt":"2020-01-15T03:54:03","guid":{"rendered":"https:\/\/people.utm.my\/saifuladli\/?p=517"},"modified":"2020-01-15T03:54:03","modified_gmt":"2020-01-15T03:54:03","slug":"how-to-install-php7-x-before-we-begin-need-to-install-a-few-things-first","status":"publish","type":"post","link":"https:\/\/people.utm.my\/saifuladli\/2020\/01\/15\/how-to-install-php7-x-before-we-begin-need-to-install-a-few-things-first\/","title":{"rendered":"How to install php7.x Before we begin need to install a few things first"},"content":{"rendered":"<p>To install php 7.x we need to install a few things first<\/p>\n<table>\n<tbody>\n<tr>\n<td><\/td>\n<td>sudo yum -y install epel-release<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<table>\n<tbody>\n<tr>\n<td><\/td>\n<td>sudo yum -y install http:\/\/rpms.remirepo.net\/enterprise\/remi-release-7.rpm<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<table>\n<tbody>\n<tr>\n<td><\/td>\n<td>sudo yum -y install yum-utils<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Now enable the version of php 7 you wish you install<br \/>\nsudo yum-config-manager &#8211;enable remi-php72<\/p>\n<p>Note: if you want to install php 7.0 or 7.1 you can use the command below.<br \/>\nyum-config-manager &#8211;enable remi-php70<br \/>\nyum-config-manager &#8211;enable remi-php71<br \/>\nYou see 72 stands for 7.2, 70 stands for version 7.0 and 71 stands for 7.1<\/p>\n<p>Finally its time to install PHP 7.2<br \/>\nsudo yum -y install php<\/p>\n<p>Add (MySQL\/MariaDB) database support to php<br \/>\nsudo yum -y install php-mysqlnd<\/p>\n<p>Don\u2019t forget to restart the server after php installation for the changes to take effect.<br \/>\nsudo service httpd restart<br \/>\nor<br \/>\nsudo systemctl restart httpd.service<\/p>\n<p>Congrats you have now successfully install PHP 7.x in your server.<\/p>\n<p>To check php version<br \/>\nphp -v<\/p>\n<p>To activate apache2<\/p>\n<p>sudo systemctl apache2 restart<\/p>\n<p>sudo systemctl status apche2<\/p>\n","protected":false},"excerpt":{"rendered":"<p>To install php 7.x we need to install a few things first sudo yum -y install epel-release sudo yum -y install http:\/\/rpms.remirepo.net\/enterprise\/remi-release-7.rpm sudo yum -y install yum-utils Now enable the version of php 7 you wish you install sudo yum-config-manager &#8211;enable remi-php72 Note: if you want to install php 7.0 or 7.1 you can use [&hellip;]<\/p>\n","protected":false},"author":6479,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-517","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/people.utm.my\/saifuladli\/wp-json\/wp\/v2\/posts\/517","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/people.utm.my\/saifuladli\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/people.utm.my\/saifuladli\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/people.utm.my\/saifuladli\/wp-json\/wp\/v2\/users\/6479"}],"replies":[{"embeddable":true,"href":"https:\/\/people.utm.my\/saifuladli\/wp-json\/wp\/v2\/comments?post=517"}],"version-history":[{"count":0,"href":"https:\/\/people.utm.my\/saifuladli\/wp-json\/wp\/v2\/posts\/517\/revisions"}],"wp:attachment":[{"href":"https:\/\/people.utm.my\/saifuladli\/wp-json\/wp\/v2\/media?parent=517"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/people.utm.my\/saifuladli\/wp-json\/wp\/v2\/categories?post=517"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/people.utm.my\/saifuladli\/wp-json\/wp\/v2\/tags?post=517"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}