{"id":4666,"date":"2019-12-22T00:54:54","date_gmt":"2019-12-21T15:54:54","guid":{"rendered":"https:\/\/kumapress.com\/?p=4666"},"modified":"2019-12-22T00:58:13","modified_gmt":"2019-12-21T15:58:13","slug":"zabbix4-4%e5%8b%95%e4%bd%9c%e7%92%b0%e5%a2%83%e3%81%a7php5-4%e3%81%8b%e3%82%89php7-3%e3%81%b8%e6%9b%b4%e6%96%b0%e3%81%99%e3%82%8b","status":"publish","type":"post","link":"https:\/\/kumapress.com\/?p=4666","title":{"rendered":"Zabbix4.4\u52d5\u4f5c\u74b0\u5883\u3067PHP5.4\u304b\u3089PHP7.4\u3078\u66f4\u65b0\u3059\u308b"},"content":{"rendered":"\n<p>\u30fb\u30b5\u30fc\u30d0\u30fc\u69cb\u6210<br \/>CentOS7.7 \/ PostgreSQL12 \/ PHP5.4 \/ Zabbix4.4<\/p>\n<p>\u30fb\u3044\u305f\u3057\u305f\u7406\u7531<\/p>\n<p>CentOS7\u306b\u5165\u3063\u3066\u308bPHP\u306f5.4\u3067\u3001\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30fc\u30b5\u30dd\u30fc\u30c8\u3082\u542b\u3081\u3066\u30b5\u30dd\u30fc\u30c8\u5207\u308c\u306b\u306a\u3063\u3066\u308b\u3002<\/p>\n<p>\u203bRHEL\/CentOS\u3067\u306f\u30d0\u30c3\u30af\u30dd\u30fc\u30c8\u3067\u8106\u5f31\u6027\u3078\u306e\u5bfe\u5fdc\u306f\u3057\u3066\u304f\u308c\u3066\u3044\u308b\u3002<\/p>\n<p>\u3066\u3053\u3068\u3067\u3001\u30a2\u30af\u30c6\u30a3\u30d6\u30b5\u30dd\u30fc\u30c8\u671f\u9593\u304c\u6b8b\u3063\u3066\u3044\u308b(2021\/11\/28\u307e\u3067)PHP7.4\u306b\u30d0\u30fc\u30b8\u30e7\u30f3\u30a2\u30c3\u30d7\u3059\u308b\u3002<\/p>\n<p>\u53c2\u8003\uff1a<a href=\"https:\/\/www.sodo-shed.com\/archives\/12584\" target=\"_blank\" rel=\"noopener noreferrer\"><span style=\"font-weight: 400;\">\u65e2\u306b\u904b\u7528\u4e2d\u306eCentOS 7.x\u4e0a\u306eZabbix(Web\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9)\u306ePHP\u30925\u7cfb\u304b\u30897\u7cfb\u306b\u5165\u308c\u66ff\u3048\u308b<\/span><\/a><\/p>\n<p><span style=\"font-weight: 400;\">\u203bmysql\u4f7f\u3063\u3066\u308b\u8a18\u4e8b\u306a\u306e\u3067\u3001PostgreSQL\u3067\u306f\u3069\u3046\u306a\u308b\u304b\u3001\u3061\u3087\u3063\u3068\u5fc3\u914d(^^;<\/span><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u66f4\u65b0\u4f5c\u696d\u306e\u958b\u59cb<\/h2>\n\n\n\n<p><strong>1)\u73fe\u72b6\u306ePHP5.4\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u72b6\u6cc1\u306e\u78ba\u8a8d<\/strong><br>$ rpm -qa | grep php<br>php.x86_64\u3000\u3000\u3000\u3000\u3000\u30005.4.16-46.1.el7_7 @updates<br>php-bcmath.x86_64\u30005.4.16-46.1.el7_7 @updates<br>php-cli.x86_64\u3000\u3000\u3000\u30005.4.16-46.1.el7_7 @updates<br>php-common.x86_64\u30005.4.16-46.1.el7_7 @updates<br>php-fpm.x86_64\u3000\u3000\u30005.4.16-46.1.el7_7 @updates<br>php-gd.x86_64\u3000\u3000\u3000\u30005.4.16-46.1.el7_7 @updates<br>php-ldap.x86_64\u3000\u3000\u30005.4.16-46.1.el7_7 @updates<br>php-mbstring.x86_64\u30005.4.16-46.1.el7_7 @updates<br>php-pdo.x86_64\u3000\u3000\u30005.4.16-46.1.el7_7 @updates<br>php-pgsql.x86_64\u3000\u30005.4.16-46.1.el7_7 @updates<br>php-xml.x86_64\u3000\u3000\u30005.4.16-46.1.el7_7 @updates<\/p>\n<p><br>\u203b\/etc\/php.ini\u306f\u5ff5\u306e\u70ba\u306b\u4fdd\u5b58\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046\uff01<\/p>\n<p><strong>2)Remi\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b<\/strong><br># yum install https:\/\/rpms.remirepo.net\/enterprise\/remi-release-7.rpm<\/p>\n<p># ls -al \/etc\/yum.repos.d\/remi*<br>-rw-r&#8211;r&#8211; 1 root root 446 9\u6708 6 15:31 \/etc\/yum.repos.d\/remi-glpi91.repo<br>-rw-r&#8211;r&#8211; 1 root root 446 9\u6708 6 15:31 \/etc\/yum.repos.d\/remi-glpi92.repo<br>-rw-r&#8211;r&#8211; 1 root root 446 9\u6708 6 15:31 \/etc\/yum.repos.d\/remi-glpi93.repo<br>-rw-r&#8211;r&#8211; 1 root root 446 9\u6708 6 15:31 \/etc\/yum.repos.d\/remi-glpi94.repo<br>-rw-r&#8211;r&#8211; 1 root root 855 9\u6708 6 15:31 \/etc\/yum.repos.d\/remi-modular.repo<br>-rw-r&#8211;r&#8211; 1 root root 456 9\u6708 6 15:31 \/etc\/yum.repos.d\/remi-php54.repo<br>-rw-r&#8211;r&#8211; 1 root root 1314 9\u6708 6 15:31 \/etc\/yum.repos.d\/remi-php70.repo<br>-rw-r&#8211;r&#8211; 1 root root 1314 9\u6708 6 15:31 \/etc\/yum.repos.d\/remi-php71.repo<br>-rw-r&#8211;r&#8211; 1 root root 1314 9\u6708 6 15:31 \/etc\/yum.repos.d\/remi-php72.repo<br>-rw-r&#8211;r&#8211; 1 root root 1314 9\u6708 6 15:31 \/etc\/yum.repos.d\/remi-php73.repo<br>-rw-r&#8211;r&#8211; 1 root root 1314 9\u6708 6 15:31 \/etc\/yum.repos.d\/remi-php74.repo<br>-rw-r&#8211;r&#8211; 1 root root 750 9\u6708 6 15:31 \/etc\/yum.repos.d\/remi-safe.repo<br>-rw-r&#8211;r&#8211; 1 root root 2605 9\u6708 6 15:31 \/etc\/yum.repos.d\/remi.repo<\/p>\n<p><strong>3)\u66f4\u65b0\u3059\u308b<\/strong><\/p>\n<p><span style=\"font-weight: 400;\"># yum update <\/span><span style=\"font-weight: 400;\">&#8211;enablerepo=remi-php74 <\/span><span style=\"font-weight: 400;\">php php-common<\/span><\/p>\n<p>php php-common php-bcmath php-cli php-fpm php-gd php-ldap php-mbstring php-pdo php-pgsql php-xml\u304c<\/p>\n<p>7.4.1-1 el7.remi\u3068\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<p><strong>4)\u30b5\u30fc\u30d0\u30fc\u3092\u518d\u8d77\u52d5\u3057\u307e\u3057\u305f\u3002<\/strong><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u6bce\u5ea6\u304a\u306a\u3058\u307f\u306e\u30cf\u30de\u308a\u3069\u3053\u308d\u3002\u3002\u3002<\/h2>\n\n\n\n<p>\u6bce\u5ea6\u304a\u306a\u3058\u307f\u3068\u8a00\u3046\u304b\u306a\u3093\u3068\u3044\u3046\u304b\u3002\u3002\u3002<\/p>\n<p>zabbix\u3092\u8868\u793a\u3055\u305b\u308b\u3068<span style=\"font-weight: 400;\"><span style=\"color: #ff0000;\">\u300c\u30bb\u30c3\u30b7\u30e7\u30f3\u304c\u30b9\u30bf\u30fc\u30c8\u3067\u304d\u306a\u3044\u300d<\/span>\u3068\u30a8\u30e9\u30fc\u304c\u8868\u793a\u3055\u308c\u3066\u3044\u307e\u3057\u305f\u3002<\/span><\/p>\n<p>\u3067\u3001&#8221;session&#8221;\u3068\u3044\u3046\u30ad\u30fc\u30ef\u30fc\u30c9\u3067\u8abf\u3079\u308b\u3068\u3002\u3002<\/p>\n<p># ls -al \/var\/lib\/php<br \/>\u5408\u8a08 20<br \/>drwxr-xr-x 5 root root 4096 12\u6708 21 23:41 .<br \/>drwxr-xr-x. 32 root root 4096 12\u6708 19 21:39 ..<br \/>drwxrwx&#8212; 2 root apache 4096 12\u6708 18 15:47 opcache<br \/>drwxrwx&#8212; 2 root apache 4096 12\u6708 18 15:47 session<br \/>drwxrwx&#8212; 2 root apache 4096 12\u6708 18 15:47 wsdlcache<br \/>\u3068apache\u306b\u306a\u3063\u3066\u308b\u3002\u3002\u3002<\/p>\n<p>nginx\u3067\u52d5\u304b\u3057\u3066\u308b\u3093\u3067\u3001\u3053\u308c\u306f\u3060\u3081\u3067\u3059\u3002<\/p>\n<p># cd \/var\/lib\/php<br \/># chown -R root.nginx .\/*<br \/># ls -al<br \/>\u5408\u8a08 20<br \/>drwxr-xr-x 5 root root 4096 12\u6708 21 23:41 .<br \/>drwxr-xr-x. 32 root root 4096 12\u6708 19 21:39 ..<br \/>drwxrwx&#8212; 2 root nginx 4096 12\u6708 18 15:47 opcache<br \/>drwxrwx&#8212; 2 root nginx 4096 12\u6708 18 15:47 session<br \/>drwxrwx&#8212; 2 root nginx 4096 12\u6708 18 15:47 wsdlcache<\/p>\n<p>nginx\u3068php-fpm\u3092\u518d\u8d77\u52d5<\/p>\n<p># systemctl restart nginx<br \/># systemctl restart php-fpm<\/p>\n<p>\u3053\u308c\u3067\u7121\u4e8b\u8868\u793a\u3067\u304d\u307e\u3057\u305f\uff01<\/p>\n<p>PHP\u30d0\u30fc\u30b8\u30e7\u30f3\u30a2\u30c3\u30d7\u3057\u305f\u3089\u6bce\u56de\u30c1\u30a7\u30c3\u30af\u304c\u5fc5\u8981\u307f\u305f\u3044\u306a\u4e88\u611f\u3002\u3002\u3002<\/p>\n<aside class=\"row veu_insertAds after\"><div class=\"col-md-6\"><script async src=\"https:\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js\"><\/script>\r\n<!-- \u7b2c 1 \u9762 - 2\uff08www.kumapress.com\uff09 -->\r\n<ins class=\"adsbygoogle\"\r\n     style=\"display:block\"\r\n     data-ad-client=\"ca-pub-5987681888830890\"\r\n     data-ad-slot=\"5379270693\"\r\n     data-ad-format=\"auto\"\r\n     data-full-width-responsive=\"true\"><\/ins>\r\n<script>\r\n     (adsbygoogle = window.adsbygoogle || []).push({});\r\n<\/script><\/div><div class=\"col-md-6\"><script async src=\"https:\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js\"><\/script>\r\n<!-- \u7b2c 1 \u9762 - 1\uff08www.kumapress.com\uff09 -->\r\n<ins class=\"adsbygoogle\"\r\n     style=\"display:block\"\r\n     data-ad-client=\"ca-pub-5987681888830890\"\r\n     data-ad-slot=\"7353370294\"\r\n     data-ad-format=\"auto\"\r\n     data-full-width-responsive=\"true\"><\/ins>\r\n<script>\r\n     (adsbygoogle = window.adsbygoogle || []).push({});\r\n<\/script><\/div><\/aside>","protected":false},"excerpt":{"rendered":"<p>\u30fb\u30b5\u30fc\u30d0\u30fc\u69cb\u6210CentOS7.7 \/ PostgreSQL12 \/ PHP5.4 \/ Zabbix4.4 \u30fb\u3044\u305f\u3057\u305f\u7406\u7531 CentOS7\u306b\u5165\u3063\u3066\u308bPHP\u306f5.4\u3067\u3001\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30fc\u30b5\u30dd\u30fc\u30c8\u3082\u542b\u3081\u3066\u30b5\u30dd\u30fc\u30c8\u5207\u308c\u306b\u306a\u3063\u3066\u308b\u3002  [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"vkexunit_cta_each_option":"","footnotes":""},"categories":[126],"tags":[159,158],"class_list":["post-4666","post","type-post","status-publish","format-standard","hentry","category-blog-memo","tag-php7","tag-zabbix"],"_links":{"self":[{"href":"https:\/\/kumapress.com\/index.php?rest_route=\/wp\/v2\/posts\/4666","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kumapress.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kumapress.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kumapress.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kumapress.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4666"}],"version-history":[{"count":4,"href":"https:\/\/kumapress.com\/index.php?rest_route=\/wp\/v2\/posts\/4666\/revisions"}],"predecessor-version":[{"id":4670,"href":"https:\/\/kumapress.com\/index.php?rest_route=\/wp\/v2\/posts\/4666\/revisions\/4670"}],"wp:attachment":[{"href":"https:\/\/kumapress.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4666"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kumapress.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4666"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kumapress.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4666"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}