{"id":5956,"date":"2014-12-11T20:32:59","date_gmt":"2014-12-12T03:32:59","guid":{"rendered":"http:\/\/blog.networkpresence.co\/?p=5956"},"modified":"2014-12-11T20:32:59","modified_gmt":"2014-12-12T03:32:59","slug":"how-to-install-php-5-4-on-centos-6","status":"publish","type":"post","link":"https:\/\/blog.networkpresence.co\/?p=5956","title":{"rendered":"How to install PHP 5.4 on CentOS 6"},"content":{"rendered":"<p>First to get PHP 5.4 on CentOS 6 you need to install and enable the EPEL and Remi 3rd party Software Repositories with these commands as root from a shell:<\/p>\n<p><code>wget http:\/\/dl.fedoraproject.org\/pub\/epel\/6\/x86_64\/epel-release-6-8.noarch.rpm<br \/>\nwget http:\/\/rpms.famillecollet.com\/enterprise\/remi-release-6.rpm<br \/>\nrpm -Uvh remi-release-6*.rpm epel-release-6*.rpm<\/code><\/p>\n<p>Then run the yum install with the Remi repository enabled:<\/p>\n<p><code>yum --enable-repo=remi install php<\/code><\/p>\n<p>Accept the Remi Repository&#8217;s Key (or also use the option &#8220;-y&#8221; on the yum install command line above) and do note that this will upgrade the MySQL Server package too from the Remi Repo (up to mysql-server version 5.5.41-1.el6.remi).<\/p>\n<p>When the yum install is finished, just restart your MySQL Server and Web (Apache by default) server with:<\/p>\n<p><code>service mysqld restart<br \/>\nservice httpd restart<\/code><\/p>\n<p>If you need to or want to (check your \/var\/log\/mysqld.log file), you can update some of MySQL&#8217;s Internal Tables and such with the command:<\/p>\n<p><code>mysql_upgrade -uroot -pROOTMYSQLPASSWD<\/code><\/p>\n<p>(use your root mysql user&#8217;s password there of course :))<\/p>\n<p>FYI,<br \/>\nRichard.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>First to get PHP 5.4 on CentOS 6 you need to install and enable the EPEL and Remi 3rd party Software Repositories with these commands as root from a shell: wget http:\/\/dl.fedoraproject.org\/pub\/epel\/6\/x86_64\/epel-release-6-8.noarch.rpm wget http:\/\/rpms.famillecollet.com\/enterprise\/remi-release-6.rpm rpm -Uvh remi-release-6*.rpm epel-release-6*.rpm Then run &hellip; <a href=\"https:\/\/blog.networkpresence.co\/?p=5956\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,70],"tags":[94,130,75,78,37],"class_list":["post-5956","post","type-post","status-publish","format-standard","hentry","category-network-presence","category-sales","tag-apache","tag-mysql","tag-php","tag-sysadmin","tag-upgrade"],"_links":{"self":[{"href":"https:\/\/blog.networkpresence.co\/index.php?rest_route=\/wp\/v2\/posts\/5956","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.networkpresence.co\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.networkpresence.co\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.networkpresence.co\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.networkpresence.co\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5956"}],"version-history":[{"count":2,"href":"https:\/\/blog.networkpresence.co\/index.php?rest_route=\/wp\/v2\/posts\/5956\/revisions"}],"predecessor-version":[{"id":5958,"href":"https:\/\/blog.networkpresence.co\/index.php?rest_route=\/wp\/v2\/posts\/5956\/revisions\/5958"}],"wp:attachment":[{"href":"https:\/\/blog.networkpresence.co\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5956"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.networkpresence.co\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5956"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.networkpresence.co\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5956"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}