{"id":1069,"date":"2017-11-04T12:00:00","date_gmt":"2017-11-04T03:00:00","guid":{"rendered":"https:\/\/hi3103.net\/notes\/?p=1069"},"modified":"2022-07-09T23:33:53","modified_gmt":"2022-07-09T14:33:53","slug":"%e3%81%95%e3%81%8f%e3%82%89vps%e3%82%b5%e3%83%bc%e3%83%90%e3%83%bc%e5%88%9d%e6%9c%9f%e8%a8%ad%e5%ae%9a-php%e3%81%ae%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab","status":"publish","type":"post","link":"https:\/\/hi3103.net\/notes\/web\/1069","title":{"rendered":"\u3055\u304f\u3089VPS\u30b5\u30fc\u30d0\u30fc\u521d\u671f\u8a2d\u5b9a &#8211; PHP\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb"},"content":{"rendered":"<h4>\u53c2\u8003URL<\/h4>\n<ul>\n<li><a href=\"https:\/\/knowledge.sakura.ad.jp\/9006\/\">\u30cd\u30b3\u3067\u3082\u308f\u304b\u308b\uff01\u3055\u304f\u3089\u306eVPS\u8b1b\u5ea7 \uff5e\u7b2c\u56db\u56de\u300cphp\u3068MariaDB\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3088\u3046\u300d<\/a><\/li>\n<li><a href=\"http:\/\/uxmilk.jp\/9146\">\u3010yum list\u3011\u30d1\u30c3\u30b1\u30fc\u30b8\u4e00\u89a7\u3092\u8868\u793a\u30fb\u78ba\u8a8d\u3059\u308b | UX MILK<\/a><\/li>\n<li><a href=\"http:\/\/www.kakiro-web.com\/linux\/remi-install.html\">CentOS7.1 64bit\u306eyum\u30ea\u30dd\u30b8\u30c8\u30ea\u306bRemi\u3092\u8ffd\u52a0<\/a><\/li>\n<\/ul>\n<p><!--more--><\/p>\n<h4>PHP\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b<\/h4>\n<h5>EPEL\u30ec\u30dd\u30b8\u30c8\u30ea\u3092\u8ffd\u52a0\u3059\u308b<\/h5>\n<pre><code class=\"language-sh\"># yum install epel-release<\/code><\/pre>\n<ul>\n<li>\u3055\u304f\u3089VPS\u3067\u306f\u8a2d\u5b9a\u6e08\u307f\u306a\u306e\u3067\u3001\u4eca\u56de\u306f\u3084\u3089\u306a\u3044\u3002<\/li>\n<\/ul>\n<h5>remi\u30ec\u30dd\u30b8\u30c8\u30ea\u3092\u8ffd\u52a0\u3059\u308b<\/h5>\n<pre><code class=\"language-sh\"># rpm -Uvh http:\/\/rpms.famillecollet.com\/enterprise\/remi-release-7.rpm<\/code><\/pre>\n<pre><code>Usage: rpm [OPTION...]\nInstall\/Upgrade\/Erase options:\n  -h, --hash                       print hash marks as package installs (good with -v)\n  -U, --upgrade=&lt;packagefile&gt;+     upgrade package(s)\n\nCommon options for all rpm modes and executables:\n  -v, --verbose                    provide more detailed output<\/code><\/pre>\n<ul>\n<li>\u4e0a\u8a18URL\u306f<a href=\"http:\/\/rpms.famillecollet.com\/\">Remi&#8217;s RPM repository<\/a>\u306e\u4ee5\u4e0b\u306e\u5834\u6240\u306b\u3042\u308b<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/hi3103.net\/notes\/img\/uploads\/2017\/11\/20171104214233.png\" alt=\"remi\u30ec\u30dd\u30b8\u30c8\u30ea\u306eURL\u8a18\u8ff0\u5834\u6240\u306e\u8aac\u660e\u753b\u50cf\" width=\"511\" height=\"127\"  \/><\/li>\n<\/ul>\n<h5>PHP\u672c\u4f53\u3068\u62e1\u5f35\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b<\/h5>\n<pre><code class=\"language-sh\"># yum --enablerepo=remi,remi-php71 install php php-devel php-mbstring php-mysqlnd php-pdo php-gd<\/code><\/pre>\n<pre><code>Usage: yum [options] COMMAND\nOptions:\n  --enablerepo=[repo]   enable one or more repositories (wildcards allowed)<\/code><\/pre>\n<ul>\n<li>remi\u3068remi-php71\u30ec\u30dd\u30b8\u30c8\u30ea\u3092\u6709\u52b9\u5316\u3057\u305f\u4e0a\u3067\u3001\u8907\u6570\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u4e00\u6c17\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b<\/li>\n<li>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u53ef\u80fd\u306a\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u4e00\u89a7\u306f yum list \u3067\u898b\u3089\u308c\u308b\n<ul>\n<li>grep\u3092\u30d1\u30a4\u30d7\u3067\u6e21\u3059\u3068\u7d5e\u308a\u3053\u3081\u308b<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<pre><code class=\"language-sh\"># yum --enablerepo=remi,remi-php71 list | grep php<\/code><\/pre>\n<ul>\n<li>yum install\u30b3\u30de\u30f3\u30c9\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u30d1\u30c3\u30b1\u30fc\u30b8\u306f\u4ee5\u4e0b\u3002<\/li>\n<\/ul>\n<pre><code>php.x86_64                                7.1.11-1.el7.remi              @remi-php71\nphp-devel.x86_64                          7.1.11-1.el7.remi              @remi-php71\nphp-mbstring.x86_64                       7.1.11-1.el7.remi              @remi-php71\nphp-mysqlnd.x86_64                        7.1.11-1.el7.remi              @remi-php71\nphp-pdo.x86_64                            7.1.11-1.el7.remi              @remi-php71\nphp-gd.x86_64                             7.1.11-1.el7.remi              @remi-php71<\/code><\/pre>\n<ul>\n<li>apache\u3092\u518d\u8d77\u52d5\u3057\u3066\u9069\u7528<\/li>\n<\/ul>\n<pre><code class=\"language-sh\"># systemctl restart httpd<\/code><\/pre>\n<h5>PHP\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u78ba\u8a8d\u3059\u308b<\/h5>\n<pre><code class=\"language-sh\"># php --version\nPHP 7.1.11 (cli) (built: Oct 25 2017 10:24:28) ( NTS )\nCopyright (c) 1997-2017 The PHP Group\nZend Engine v3.1.0, Copyright (c) 1998-2017 Zend Technologies<\/code><\/pre>\n<h4>\u30aa\u30d7\u30b7\u30e7\u30f3\uff1aPHP\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb(php.ini)\u3092\u7de8\u96c6\u3057\u3066\u30d5\u30a1\u30a4\u30eb\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u306e\u4e0a\u9650\u30b5\u30a4\u30ba\u3092\u5f15\u304d\u4e0a\u3052\u308b<\/h4>\n<pre><code class=\"language-sh\"># vi \/etc\/php.ini<\/code><\/pre>\n<pre><code>post_max_size = 8M \u2192\u4efb\u610f\u306e\u30b5\u30a4\u30ba\u3078(\u4f8b:128M)<\/code><\/pre>\n<pre><code>upload_max_filesize = 2M \u2192\u4efb\u610f\u306e\u30b5\u30a4\u30ba\u3078(\u4f8b:128M)<\/code><\/pre>\n<ul>\n<li>.htaccess\u3067\u90e8\u5206\u7684\u306b\u66f8\u304d\u63db\u3048\u308b\u3053\u3068\u3082\u3067\u304d\u308b\u306e\u3067\u3001\u4eca\u56de\u306f\u3084\u3089\u306a\u3044\u3002<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u53c2\u8003URL \u30cd\u30b3\u3067\u3082\u308f\u304b\u308b\uff01\u3055\u304f\u3089\u306eVPS\u8b1b\u5ea7 \uff5e\u7b2c\u56db\u56de\u300cphp\u3068MariaDB\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3088\u3046\u300d \u3010yum list\u3011\u30d1\u30c3\u30b1\u30fc\u30b8\u4e00\u89a7\u3092\u8868\u793a\u30fb\u78ba\u8a8d\u3059\u308b | UX MILK CentOS7.1 64bit\u306eyum\u30ea\u30dd\u30b8 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[53],"tags":[26,21,48],"class_list":["post-1069","post","type-post","status-publish","format-standard","hentry","category-web","tag-centos7","tag-php","tag-server"],"_links":{"self":[{"href":"https:\/\/hi3103.net\/notes\/wp-json\/wp\/v2\/posts\/1069","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hi3103.net\/notes\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hi3103.net\/notes\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hi3103.net\/notes\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hi3103.net\/notes\/wp-json\/wp\/v2\/comments?post=1069"}],"version-history":[{"count":0,"href":"https:\/\/hi3103.net\/notes\/wp-json\/wp\/v2\/posts\/1069\/revisions"}],"wp:attachment":[{"href":"https:\/\/hi3103.net\/notes\/wp-json\/wp\/v2\/media?parent=1069"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hi3103.net\/notes\/wp-json\/wp\/v2\/categories?post=1069"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hi3103.net\/notes\/wp-json\/wp\/v2\/tags?post=1069"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}