{"id":532,"date":"2019-10-28T15:28:13","date_gmt":"2019-10-28T06:28:13","guid":{"rendered":"https:\/\/medicalfields.jp\/blog\/?p=532"},"modified":"2019-10-28T15:28:21","modified_gmt":"2019-10-28T06:28:21","slug":"centos7%e3%81%aephp5-4%e3%82%92php7-x%e3%81%ab%e3%82%a2%e3%83%83%e3%83%97%e3%83%87%e3%83%bc%e3%83%88%e3%81%97%e3%81%9f%e3%82%89%e3%83%88%e3%83%a9%e3%83%96%e3%81%a3%e3%81%9f","status":"publish","type":"post","link":"https:\/\/medicalfields.jp\/blog\/php\/centos7%e3%81%aephp5-4%e3%82%92php7-x%e3%81%ab%e3%82%a2%e3%83%83%e3%83%97%e3%83%87%e3%83%bc%e3%83%88%e3%81%97%e3%81%9f%e3%82%89%e3%83%88%e3%83%a9%e3%83%96%e3%81%a3%e3%81%9f\/","title":{"rendered":"CentOS7\u306ePHP5.4\u3092PHP7.x\u306b\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3057\u305f\u3089\u30c8\u30e9\u30d6\u3063\u305f"},"content":{"rendered":"\n<p>\u5f53\u793e\u306e\u4f1a\u793e\u306eHP\u306e\u66f4\u65b0\u3067PHP\u306e\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3092\u884c\u3063\u305f\u3002<\/p>\n<p>5.4\u7cfb\u30687.x\u7cfb\u3060\u3068\u51e6\u7406\u306e\u901f\u3055\u304c\u9055\u3046\u306e\u3068\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u5bfe\u7b56\uff08\u4e00\u5fdccentos\u3067\u306f\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\uff15\uff0e\uff14\u7cfb\u3067\u3082\u30b5\u30dd\u30fc\u30c8\u306f\u3057\u3066\u304f\u308c\u3066\u3044\u308b\uff09\u304c\u7406\u7531\u3002<\/p>\n<p>\u307e\u3041\u6b63\u76f4\u4e00\u756a\u306e\u7406\u7531\u306fGoogle\u306e<a href=\"https:\/\/developers.google.com\/speed\/pagespeed\/insights\/\">PageSpeed insights<\/a>\u3067\u5f53\u793e\u306eHP\u304c\u3059\u3054\u304f\u60aa\u3044\u7d50\u679c\u3060\u3063\u305f\u304b\u3089\u52d5\u4f5c\u3092\u5c11\u3057\u3067\u3082\u65e9\u304f\u3059\u308b\u305f\u3081\u306b\u91cd\u3044\u8170\u3092\u4e0a\u3052\u3066\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3057\u305f\u3002<\/p>\n<p>\u3084\u3063\u305f\u3053\u3068<\/p>\n<p>\u53c2\u8003\uff1a<a href=\"https:\/\/qiita.com\/heimaru1231\/items\/84d0beca81ca5fdcffd0\">CentOS7\u306ePHP\u30925.6\uff0f7.0\uff0f7.1\uff0f7.2\uff0f7.3\u7cfb\u306b\u30d0\u30fc\u30b8\u30e7\u30f3\u30a2\u30c3\u30d7\u3059\u308b<\/a><\/p>\n<p>\u3010EPEL\u30ea\u30dd\u30b8\u30c8\u30ea\u3011<\/p>\n<p>yum install epel-release<\/p>\n<p>rpm -Uvh http:\/\/rpms.famillecollet.com\/enterprise\/remi-release-7.rpm<\/p>\n<p>\u3010PHP\u306e\u524a\u9664\u3011<\/p>\n<p>cp \/etc\/php.ini \/etc\/php-old.ini<\/p>\n<p>yum remove php-*<\/p>\n<p>\u3010PHP7.x\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3011<\/p>\n<p>yum install &#8211;disablerepo=* &#8211;enablerepo=epel,remi,remi-safe,remi-php73 php<\/p>\n<p>yum install &#8211;disablerepo=* &#8211;enablerepo=epel,remi,remi-safe,remi-php73 php-mbstring<\/p>\n<p>\u3010MySQL\u3068\u304b\u3044\u308c\u308b\u3011<\/p>\n<p><del>yum install php73-php-mysqlnd<\/del><\/p>\n<p>\u203b\u3053\u308c\u9593\u9055\u3063\u3066\u308b\u304b\u3089\u5165\u308c\u306a\u3044\u3067\u306d<\/p>\n<p>\u3093\u3067OS\u3092\u518d\u8d77\u52d5\u3057\u305f<\/p>\n<p><code>\u304a\u4f7f\u3044\u306e\u30b5\u30fc\u30d0\u30fc\u306e PHP \u3067\u306f WordPress \u306b\u5fc5\u8981\u306a MySQL \u62e1\u5f35\u3092\u5229\u7528\u3067\u304d\u306a\u3044\u3088\u3046\u3067\u3059\u3002<\/code><\/p>\n<p>\u3088\u304f\u898b\u308bphp.ini\u306bMysql.so\u306eextension\u304c\u6307\u5b9a\u3055\u308c\u3066\u3044\u306a\u3044\u3068\u304d\u306b\u3067\u308b\u30a8\u30e9\u30fc\u304c\u3067\u305f\u3002<\/p>\n<p>MySQL\u3044\u308c\u305f\u3064\u3082\u308a\u3060\u3063\u305f\u304b\u3089\u304a\u304b\u3057\u3044\u306a\u3068\u601d\u3044\u3064\u3064\u306a\u3093\u304b\u8272\u3005MySQL\u95a2\u4fc2\u3092\u5165\u308c\u308b\u304b\u8a66\u3057\u3066\u307f\u308b<\/p>\n<p>\u5f53\u7136\u30c7\u30d5\u30a9\u30eb\u30c8\u3060\u30685.4\u7cfb\u306a\u306e\u3067\u6a19\u6e96\u306e\u306f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u306a\u3044<\/p>\n<p>\u304d\u3063\u3068Extension\u304c\u304a\u304b\u3057\u3044\u3068\u601d\u3063\u3066mysqli.so\u3068\u304b\u3092\u8ffd\u52a0\u3057\u305f\u308a\u3057\u305f\u3051\u3069\u52d5\u304b\u306a\u3044<\/p>\n<p>\u6b63\u3057\u304f\u306f<\/p>\n<p>\u3010Mysql\u3084\u4ed6\u306e\u5fc5\u8981\u306a\u95a2\u9023\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u65b9\u6cd5\u3011<\/p>\n<p>yum install &#8211;disablerepo=* &#8211;enablerepo=epel,remi,remi-safe,remi-php73 php-mysql<\/p>\n<p>\u203b73\u306f\uff17\uff0e\uff13\u3063\u3066\u610f\u5473<\/p>\n<p>\u3067\u3059<\/p>\n<p>\u3060\u304b\u3089\u3082\u3057<\/p>\n<p>Fatal error: Class &#8216;DOMDocument&#8217; not found in\u00a0<\/p>\n<p>\u304c\u51fa\u3066\u3001php-xml\u304c\u5fc5\u8981\u306a\u5834\u5408\u306f<\/p>\n<p>yum install &#8211;disablerepo=* &#8211;enablerepo=epel,remi,remi-safe,remi-php73 php-xml<\/p>\n<p>\u3092\u3057\u307e\u3057\u3087\u3046<\/p>\n<p>\u00a0<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5f53\u793e\u306e\u4f1a\u793e\u306eHP\u306e\u66f4\u65b0\u3067PHP\u306e\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3092\u884c\u3063\u305f\u3002 5.4\u7cfb\u30687.x\u7cfb\u3060\u3068\u51e6\u7406\u306e\u901f\u3055\u304c\u9055\u3046\u306e\u3068\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u5bfe\u7b56\uff08\u4e00\u5fdccentos\u3067\u306f\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\uff15\uff0e\uff14\u7cfb\u3067\u3082\u30b5\u30dd\u30fc\u30c8\u306f\u3057\u3066\u304f\u308c\u3066\u3044\u308b\uff09\u304c\u7406\u7531\u3002 \u307e\u3041\u6b63\u76f4\u4e00\u756a\u306e\u7406\u7531\u306fGo &hellip; <a href=\"https:\/\/medicalfields.jp\/blog\/php\/centos7%e3%81%aephp5-4%e3%82%92php7-x%e3%81%ab%e3%82%a2%e3%83%83%e3%83%97%e3%83%87%e3%83%bc%e3%83%88%e3%81%97%e3%81%9f%e3%82%89%e3%83%88%e3%83%a9%e3%83%96%e3%81%a3%e3%81%9f\/\" class=\"more-link\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"screen-reader-text\">CentOS7\u306ePHP5.4\u3092PHP7.x\u306b\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3057\u305f\u3089\u30c8\u30e9\u30d6\u3063\u305f<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false},"categories":[8],"tags":[],"aioseo_notices":[],"jetpack_featured_media_url":"","jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p6kJO0-8A","_links":{"self":[{"href":"https:\/\/medicalfields.jp\/blog\/wp-json\/wp\/v2\/posts\/532"}],"collection":[{"href":"https:\/\/medicalfields.jp\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/medicalfields.jp\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/medicalfields.jp\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/medicalfields.jp\/blog\/wp-json\/wp\/v2\/comments?post=532"}],"version-history":[{"count":1,"href":"https:\/\/medicalfields.jp\/blog\/wp-json\/wp\/v2\/posts\/532\/revisions"}],"predecessor-version":[{"id":533,"href":"https:\/\/medicalfields.jp\/blog\/wp-json\/wp\/v2\/posts\/532\/revisions\/533"}],"wp:attachment":[{"href":"https:\/\/medicalfields.jp\/blog\/wp-json\/wp\/v2\/media?parent=532"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/medicalfields.jp\/blog\/wp-json\/wp\/v2\/categories?post=532"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/medicalfields.jp\/blog\/wp-json\/wp\/v2\/tags?post=532"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}