{"id":214,"date":"2014-07-07T12:00:40","date_gmt":"2014-07-07T03:00:40","guid":{"rendered":"https:\/\/pocolog.bass-world.net\/tech\/?p=214"},"modified":"2014-07-07T12:00:40","modified_gmt":"2014-07-07T03:00:40","slug":"sakura-vps-php-update","status":"publish","type":"post","link":"https:\/\/pocolog.bass-world.net\/tech\/2014\/sakura-vps-php-update\/","title":{"rendered":"\u3055\u304f\u3089\u306eVPS PHP\u306e\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8"},"content":{"rendered":"\n<p>\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u306e\u304cPHP5.3\u3060\u3063\u305f\u306e\u3067\u30015.5\u307e\u3067\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3059\u308b\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002<br>\u307e\u305a\u306f5.3-&gt;5.4<\/p>\n\n\n\n<blockquote><pre><code># wget http:\/\/dl.iuscommunity.org\/pub\/ius\/stable\/Redhat\/6\/x86_64\/epel-release-6-5.noarch.rpm\n# wget http:\/\/dl.iuscommunity.org\/pub\/ius\/stable\/Redhat\/6\/x86_64\/epel-release-6-5.noarch.rpm\n# rpm -ivh  http:\/\/ftp-srv2.kddilabs.jp\/Linux\/distributions\/fedora\/epel\/5\/x86_64\/epel-release-5-4.noarch.rpm\n# rpm -ivh http:\/\/rpms.famillecollet.com\/enterprise\/remi-release-5.rpm\n# yum list --enablerepo=remi --enablerepo=remi-php55 | grep php* remi-php55: remi.kazukioishi.net<\/code><\/pre><\/blockquote>\n\n\n\n<p>\u95a2\u4fc2\u3059\u308b\u30d5\u30a1\u30a4\u30eb\u304c\u5927\u91cf\u306b\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u7d9a\u3044\u3066<\/p>\n\n\n\n<blockquote><pre><code># rpm -Uvh http:\/\/rpms.famillecollet.com\/enterprise\/remi-release-6.rpm\n# rpm -Uvh http:\/\/dl.fedoraproject.org\/pub\/epel\/6\/x86_64\/epel-release-6-8.noarch.rpm\n# rpm -Uvh http:\/\/pkgs.repoforge.org\/rpmforge-release\/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm<\/code><\/pre><\/blockquote>\n\n\n\n<p>\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u5b9f\u884c<\/p>\n\n\n\n<blockquote><pre><code># yum --enablerepo=epel,remi,rpmforge update php<\/code><\/pre><\/blockquote>\n\n\n\n<p>\u7d50\u679c\u78ba\u8a8d<\/p>\n\n\n\n<blockquote><pre><code># php -v\nPHP 5.4.30 (cli) (built: Jun 25 2014 15:27:51)\nCopyright (c) 1997-2014 The PHP Group\nZend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies<\/code><\/pre><\/blockquote>\n\n\n\n<!--more-->\n\n\n\n<p>5.5\u306b\u30a2\u30c3\u30d7\u30fc\u30c7\u30fc\u30c8<br>epel\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<blockquote><pre><code># rpm -Uvh http:\/\/dl.fedoraproject.org\/pub\/epel\/6\/x86_64\/epel-release-6-8.noarch.rpm<\/code><\/pre><\/blockquote>\n\n\n\n<p>\u6b21\u306bremi\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<blockquote><pre><code># rpm -Uvh http:\/\/rpms.famillecollet.com\/enterprise\/remi-release-6.rpm<\/code><\/pre><\/blockquote>\n\n\n\n<p>\/etc\/yum.repos.d\/remi.repo\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<br>remi-php55\u304cPHP5.5\u7528\u306b\u8ffd\u52a0\u3055\u308c\u305f\u30ea\u30dd\u30b8\u30c8\u30ea\u3067\u3059\u3002<\/p>\n\n\n\n<blockquote><pre><code># less \/etc\/yum.repos.d\/remi.repo<\/code><\/pre><\/blockquote>\n\n\n\n<blockquote><pre><code>\n# yum check-update --enablerepo=remi-php55,remi\nphp.x86_64                            5.5.14-1.el6.remi               remi-php55\nphp-IDNA_Convert.noarch               0.8.0-1.el6.remi                remi\nphp-PHPMailer.noarch                  5.2.4-1.el6.remi                remi\nphp-cli.x86_64                        5.5.14-1.el6.remi               remi-php55\nphp-common.x86_64                     5.5.14-1.el6.remi               remi-php55\nphp-enchant.x86_64                    5.5.14-1.el6.remi               remi-php55\nphp-gd.x86_64                         5.5.14-1.el6.remi               remi-php55\nphp-mbstring.x86_64                   5.5.14-1.el6.remi               remi-php55\nphp-mcrypt.x86_64                     5.5.14-1.el6.remi               remi-php55\nphp-pdo.x86_64                        5.5.14-1.el6.remi               remi-php55\nphp-php-gettext.noarch                1.0.11-4.el6.remi               remi\nphp-process.x86_64                    5.5.14-1.el6.remi               remi-php55\nphp-xml.x86_64                        5.5.14-1.el6.remi               remi-php55<\/code><\/pre><\/blockquote>\n\n\n\n<p>PHP\u30925.5\u306b\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<blockquote><pre><code># yum update php --enablerepo=remi-php55,remi\n# php -v\nPHP 5.5.14 (cli) (built: Jun 25 2014 18:14:36)\nCopyright (c) 1997-2014 The PHP Group\nZend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies\n    with Zend OPcache v7.0.4-dev, Copyright (c) 1999-2014, by Zend Technologies<\/code><\/pre><\/blockquote>\n\n\n\n<p>\u3053\u308c\u3067\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u306b\u6210\u529f\u3057\u305f\u3088\u3046\u306b\u601d\u3048\u305f\u3093\u3067\u3059\u304c\u3001phpMyAdmin\u3067\u30a8\u30e9\u30fc\u3002<\/p>\n\n\n\n<blockquote><pre>mysqli|mysql \u62e1\u5f35\u304c\u3042\u308a\u307e\u305b\u3093\u3002PHP \u306e\u8a2d\u5b9a\u3092\u30c1\u30a7\u30c3\u30af\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002 See our documentation for more information.<\/pre><\/blockquote>\n\n\n\n<p>\/etc\/httpd\/conf\/httpd.conf\u306b\u4ee5\u4e0b\u3092\u8ffd\u52a0\u3002<\/p>\n\n\n\n<blockquote><pre><code>LoadModule php5_module modules\/libphp5.so\nAddType application\/x-httpd-php .php\nAddType application\/x-httpd-php-source .phps<\/code><\/pre><\/blockquote>\n\n\n\n<p>php-mysql\u304c\u5165\u3063\u3066\u306a\u3044\u3063\u307d\u3044\u306e\u3067\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3002<\/p>\n\n\n\n<blockquote><pre><code># yum install php-mysql<\/code><\/pre><\/blockquote>\n\n\n\n<p>\u4eca\u5ea6\u306f\u4ed6\u306e\u30a8\u30e9\u30fc\u304c\u51fa\u305f\u306e\u3067\u3001\u30b0\u30b0\u3063\u3066\u307f\u305f\u3089mbstring.so\u304c\u306a\u3044\u306e\u304c\u539f\u56e0\u307f\u305f\u3044\u3002<br>mbstring.so\u3092\u30cd\u30c3\u30c8\u304b\u3089\u62fe\u3063\u3066\u304d\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3002<br>\u7121\u4e8bphpMyAdmin\u304c\u7acb\u3061\u4e0a\u304c\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"http:\/\/www29.a8.net\/svt\/bgt?aid=140630580333&amp;wid=001&amp;eno=01&amp;mid=s00000001717002027000&amp;mc=1\" alt=\"\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u306e\u304cPHP5.3\u3060\u3063\u305f\u306e\u3067\u30015.5\u307e\u3067\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3059\u308b\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002\u307e\u305a\u306f5.3-&gt;5.4 # wget http:\/\/dl.iuscommunity.org\/pub\/ius\/s &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/pocolog.bass-world.net\/tech\/2014\/sakura-vps-php-update\/\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;\u3055\u304f\u3089\u306eVPS PHP\u306e\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10,12],"tags":[],"class_list":["post-214","post","type-post","status-publish","format-standard","hentry","category-linux","category-php"],"_links":{"self":[{"href":"https:\/\/pocolog.bass-world.net\/tech\/wp-json\/wp\/v2\/posts\/214","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pocolog.bass-world.net\/tech\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pocolog.bass-world.net\/tech\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pocolog.bass-world.net\/tech\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pocolog.bass-world.net\/tech\/wp-json\/wp\/v2\/comments?post=214"}],"version-history":[{"count":0,"href":"https:\/\/pocolog.bass-world.net\/tech\/wp-json\/wp\/v2\/posts\/214\/revisions"}],"wp:attachment":[{"href":"https:\/\/pocolog.bass-world.net\/tech\/wp-json\/wp\/v2\/media?parent=214"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pocolog.bass-world.net\/tech\/wp-json\/wp\/v2\/categories?post=214"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pocolog.bass-world.net\/tech\/wp-json\/wp\/v2\/tags?post=214"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}