{"id":803,"date":"2015-09-10T22:00:38","date_gmt":"2015-09-10T20:00:38","guid":{"rendered":"http:\/\/bakman.nl\/tech\/?p=803"},"modified":"2015-10-03T22:02:26","modified_gmt":"2015-10-03T20:02:26","slug":"upgrade-php","status":"publish","type":"post","link":"http:\/\/bakman.nl\/tech\/?p=803","title":{"rendered":"Upgrade php"},"content":{"rendered":"<p>Defaul ClearOS 6.6 comes with PHP version 5.3.3-40. If you followed the ClearOS all-in-one server install, this is the version you end up with. It&#8217;s old. I needed to upgrade PHP to version 5.4.x doing a project. This is how I did it.<\/p>\n<p>Import Tim Burgess his repository<\/p>\n<pre># rpm --import ftp:\/\/timburgess.net\/RPM-GPG-KEY-TimB.txt<\/pre>\n<pre># cd \/tmp\r\n# wget ftp:\/\/timburgess.net\/repo\/clearos\/6\/os\/x86_64\/timb-release-1-1.noarch.rpm\r\n# rpm -Kv timb-release-1-1.noarch.rpm\r\n# rpm -Uvh timb-release-1-1.noarch.rpm<\/pre>\n<p>Install t1lib, &#8216;PostScript Type 1 font rasterizer&#8217; dependence<\/p>\n<pre>yum --enablerepo=clearos-core -y install t1lib<\/pre>\n<p>Example:<\/p>\n<pre>[...]\r\nDependencies Resolved\r\n\r\n=========================================================================================================\r\n Package             Arch                 Version                       Repository                  Size\r\n=========================================================================================================\r\nInstalling:\r\n t1lib               x86_64               5.1.2-6.el6_2.1               clearos-core               159 k\r\n\r\nTransaction Summary\r\n=========================================================================================================\r\nInstall       1 Package(s)\r\n\r\nTotal download size: 159 k\r\nInstalled size: 386 k\r\n\r\n[...]\r\n\r\nInstalled:\r\n  t1lib.x86_64 0:5.1.2-6.el6_2.1\r\n\r\nComplete!<\/pre>\n<p>Now upgrade PHP to 5.4.19<\/p>\n<pre># yum --enablerepo=timb -y update php<\/pre>\n<p>Example<\/p>\n<pre>Dependencies Resolved\r\n\r\n=========================================================================================================\r\n Package                    Arch                 Version                        Repository          Size\r\n=========================================================================================================\r\nUpdating:\r\n php                        x86_64               5.4.19-1.clearos               timb               2.7 M\r\nUpdating for dependencies:\r\n php-cli                    x86_64               5.4.19-1.clearos               timb               2.6 M\r\n php-common                 x86_64               5.4.19-1.clearos               timb               923 k\r\n php-gd                     x86_64               5.4.19-1.clearos               timb               141 k\r\n php-ldap                   x86_64               5.4.19-1.clearos               timb                57 k\r\n php-mbstring               x86_64               5.4.19-1.clearos               timb               943 k\r\n php-mysql                  x86_64               5.4.19-1.clearos               timb               134 k\r\n php-pdo                    x86_64               5.4.19-1.clearos               timb               118 k\r\n php-process                x86_64               5.4.19-1.clearos               timb                59 k\r\n php-soap                   x86_64               5.4.19-1.clearos               timb               219 k\r\n php-xml                    x86_64               5.4.19-1.clearos               timb               169 k\r\n\r\nTransaction Summary\r\n=========================================================================================================\r\nUpgrade      11 Package(s)\r\n\r\nTotal download size: 8.0 M\r\nDownloading Packages:\r\n\r\n[...]\r\n\r\nComplete!<\/pre>\n<p>Now check you installed PHP version:<\/p>\n<pre># php -v\r\nPHP 5.4.19 (cli) (built: Sep  2 2013 22:09:58)\r\nCopyright (c) 1997-2013 The PHP Group\r\nZend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies<\/pre>\n<p>You might need to restart Apache web server to see results in your web project.<\/p>\n<pre># service httpd restart\r\nStopping httpd:                                            [  OK  ]\r\nStarting httpd:                                            [  OK  ]\r\n<\/pre>\n<p>Sources:<br \/>\nhttps:\/\/www.clearos.com\/support\/documentation\/clearos\/content:en_us:kb_howtos_adding_tim_s_repo<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Defaul ClearOS 6.6 comes with PHP version 5.3.3-40. If you followed the ClearOS all-in-one server install, this is the version you end up with. It&#8217;s old. I needed to upgrade PHP to version 5.4.x doing a project. This is how I did it. Import Tim Burgess his repository # rpm &#8211;import ftp:\/\/timburgess.net\/RPM-GPG-KEY-TimB.txt # cd \/tmp &hellip; <a href=\"http:\/\/bakman.nl\/tech\/?p=803\" class=\"more-link\">Lees verder <span class=\"screen-reader-text\">Upgrade php<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[17],"tags":[],"_links":{"self":[{"href":"http:\/\/bakman.nl\/tech\/index.php?rest_route=\/wp\/v2\/posts\/803"}],"collection":[{"href":"http:\/\/bakman.nl\/tech\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/bakman.nl\/tech\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/bakman.nl\/tech\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/bakman.nl\/tech\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=803"}],"version-history":[{"count":5,"href":"http:\/\/bakman.nl\/tech\/index.php?rest_route=\/wp\/v2\/posts\/803\/revisions"}],"predecessor-version":[{"id":861,"href":"http:\/\/bakman.nl\/tech\/index.php?rest_route=\/wp\/v2\/posts\/803\/revisions\/861"}],"wp:attachment":[{"href":"http:\/\/bakman.nl\/tech\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=803"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/bakman.nl\/tech\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=803"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/bakman.nl\/tech\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=803"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}