{"id":10604,"date":"2021-06-01T06:14:55","date_gmt":"2021-05-31T21:14:55","guid":{"rendered":"https:\/\/hack.gpl.jp\/?p=10604"},"modified":"2021-06-01T06:16:47","modified_gmt":"2021-05-31T21:16:47","slug":"post-10604","status":"publish","type":"post","link":"https:\/\/hack.gpl.jp\/2021\/06\/01\/post-10604.html","title":{"rendered":"Termux\u3067PHP7\u3092\u4f7f\u3044\u305f\u3044\uff01 PHP8\u304b\u3089PHP7\u306b\u3057\u3066\u4f7f\u3046\u3002"},"content":{"rendered":"\n
\n\"\u3058\u3083\u3093\u304f\u306f\u3063\u304f\"\n<\/div><\/div><\/div>
\u3058\u3083\u3093\u304f\u306f\u3063\u304f<\/div><\/div>
<\/svg><\/div>
\n

\u4eca\u5e74\u306e\u521d\u3081\u304f\u3089\u3044\u304b\u3089termux\u306ePHP\u306f7\u304b\u30898\u306b\u4e0a\u304c\u3063\u305f\u3088\u3046\u3067\u3059\u306d\uff01<\/p>\n<\/div><\/div><\/div><\/div><\/div><\/div><\/div><\/div>\n\n\n\n

<\/svg><\/div>
\n

\u4f55\u304b\u4e0d\u5177\u5408\u3067\u3082\uff1f<\/p>\n<\/div><\/div><\/div><\/div><\/div>

\n\"\u3074\u30fc\"\n<\/div><\/div><\/div>
\u3074\u30fc<\/div><\/div><\/div><\/div><\/div>\n\n\n\n
\n\"\u3058\u3083\u3093\u304f\u306f\u3063\u304f\"\n<\/div><\/div><\/div>
\u3058\u3083\u3093\u304f\u306f\u3063\u304f<\/div><\/div>
<\/svg><\/div>
\n

WordPress\u3092\u52d5\u304b\u3059\u306b\u306f\u5c11\u3005\u3001\u554f\u984c\u3042\u308a\u3067\u3002<\/p>\n<\/div><\/div><\/div><\/div><\/div><\/div><\/div><\/div>\n\n\n\n

<\/svg><\/div>
\n

termux \u306f\u30c0\u30a6\u30f3\u30b0\u30ec\u30fc\u30c9\u3067\u304d\u306a\u3044\u3067\u3059\u3088\u306d\uff1f<\/p>\n<\/div><\/div><\/div><\/div><\/div>

\n\"\u3074\u30fc\"\n<\/div><\/div><\/div>
\u3074\u30fc<\/div><\/div><\/div><\/div><\/div>\n\n\n\n

\u5148\u65e5\u3001termux\u4e0a\u3067NGINX\u3068PHP-FPM\u306e\u8a2d\u5b9a\u8a18\u4e8b\u3092\u66f8\u3044\u305f\u3068\u304d\u306b\u6c17\u304c\u3064\u3044\u305f\u3093\u3067\u3059\u304c\u3001termux\u306ePHP\u3063\u30667\u304b\u30898\u306b\u306a\u3063\u3066PHP7\u306f\u3082\u3046PKG\u304c\u306a\u304f\u5165\u308c\u3089\u308c\u307e\u305b\u3093\u3067\u3057\u305f\u3002<\/p>\n\n\n\n

Termux\u3067NGINX+php-fpm+mariadb\u3092\u52d5\u304b\u3059\u5177\u4f53\u7684\u306a\u8a2d\u5b9a\u4f8b<\/p>Link<\/a><\/cite><\/blockquote>\n\n\n\n

\u3067\u3001\u4e00\u3064\u524d\u306e\u8a18\u4e8b\u3067PHP7\u3092\u66ab\u5b9a\u914d\u5e03\u3057\u3066\u3044\u305f\u306e\u3067\u3059\u304c\u3001\u30d3\u30eb\u30c9\u3057\u305f\u306e\u3067\u305d\u306e\u904e\u7a0b\u3068\u30d3\u30eb\u30c9\u3057\u305fPHP7\u306edep\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u3069\u3046\u3084\u3063\u3066\u5165\u308c\u308b\u306e\u304b\u30cd\u30bf\u306b\u3057\u3088\u3046\u304b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n\n\n\n

\u30d3\u30eb\u30c9\u3057\u305fPHP7\u306e\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u5148<\/h3>\n\n\n\n

GITHUB\u306b\u3001\u30d3\u30eb\u30c9\u3057\u3066\u304a\u304d\u307e\u3057\u305f\u3002arm64bit\u306eCPU\u3092\u4f7f\u3063\u3066\u3044\u308b\u65b9\u5411\u3051\u3067\u3059\u300232bit\u7248\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n\n\n\n

Github: termux-php7<\/p>LINK<\/a><\/cite><\/blockquote>\n\n\n\n

\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306e\u4ed5\u65b9\u306f\u7c21\u5358\u306b\u8a18\u8f09\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n\n\n\n

(1) \u4e00\u65e6\u3001PHP8\u95a2\u9023\u3092\u5165\u308c\u3066\u304a\u304f<\/h4>\n\n\n\n

\u3068\u308a\u3042\u3048\u305a\u4e00\u65e6\u3001\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3057\u3066\u304a\u304d\u307e\u3059\u3002\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3067\u304d\u306a\u3044\u4eba\u306f\uff11\u3064\u524d\u306e\u8a18\u4e8b\u3092\u898b\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n

$ pkg update $$ upgrade<\/code><\/pre>\n\n\n\n

\u305d\u306e\u5f8c\u3001php8\u3084php-fpm\u3001php-apache\u306a\u3069\u5165\u308c\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n\n\n\n

$ pkg install php php-fpm php-apache<\/code><\/pre>\n\n\n\n

\u4eca\u5165\u3063\u3066\u3044\u308b\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u518d\u78ba\u8a8d\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n\n\n\n

$ dpkg -l | grep php<\/code><\/pre>\n\n\n\n

2021\/06\/01\u73fe\u5728\u3067\u3059\u3068\u4ee5\u4e0b\u304c\u6700\u65b0\u3067\u3059\u3002<\/p>\n\n\n\n

$ dpkg -l | grep php | cut -b 4-35\n php                8.0.6       \n php-apache         8.0.6       \n php-fpm            8.0.6 <\/code><\/pre>\n\n\n\n

PHP8\u95a2\u9023\u3060\u3051\u6d88\u3059<\/h3>\n\n\n\n

\u4f8b\u3048\u3070\u3001\u4e0a\u306e\uff13\u3064PHP8\u95a2\u9023\u3060\u3051\u6d88\u3057\u305f\u3044\u5834\u5408\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n\n\n\n

$ apt purge php php-apache php-fpm<\/code><\/pre>\n\n\n\n

\u3061\u3083\u3093\u3068\u6d88\u3048\u305f\u304b\u3001\uff11\u3064\u4e0a\u306e\u30b3\u30de\u30f3\u30c9\u3092\u30bf\u30a4\u30d7\u3057\u3066\u78ba\u8a8d\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n

PHP7\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n\n\n\n

php-pgsql\u306f\u4eca\u56de\u5165\u308c\u306a\u3044\u306e\u3067\u3001\u6d88\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n\n\n\n

$ wget https:\/\/github.com\/take-i\/termux-php7\/raw\/master\/php7.4.12-aarch64-deb.zip\n$ unzip php7.4.12-aarch64-deb.zip\n$ cd php7.4.12-aarch64-deb.deb\/\n$ rm php-pgsql*\n$ dpkg -i .\/php* .\/libicu_67.1_aarch64.deb<\/code><\/pre>\n\n\n\n

\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u308c\u3070OK\u3067\u3059\u3002<\/p>\n\n\n\n

$ dpkg -l | egrep \"php|libicu\"\nii  libicu             67.1           aarch64\nii  php                7.4.12         aarch64\nii  php-apache         7.4.12         aarch64\nii  php-fpm            7.4.12         aarch64<\/code><\/pre>\n\n\n\n

apache \u3084\u3001nginx\u306e\u8a2d\u5b9a\u3092\u3057\u3066\u307f\u3066phpinfo()\u95a2\u6570\u304c\u52d5\u4f5c\u3059\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u3066\u304a\u304d\u307e\u3057\u305f\u3002libicu\u3060\u3051\u6700\u65b0\u306e\u74b0\u5883\u304b\u3089\u4e0b\u304c\u3063\u3066\u3044\u307e\u3059\u306e\u3067\u3001\u4f55\u304b\u3053\u308c\u95a2\u9023\u3067\u5165\u308c\u3089\u308c\u306a\u3044\u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u51fa\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002\u4f55\u304b\u3042\u308c\u3070\u6559\u3048\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n

PHP7\u3092\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3057\u306a\u3044\u3088\u3046\u8a2d\u5b9a<\/h3>\n\n\n\n

\u4eca\u5165\u308c\u305f\u306e\u304c\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3055\u308c\u306a\u3044\u3088\u3046\u8a2d\u5b9a\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n\n\n\n

$ apt-mark hold libicu php php-apache php-fpm<\/code><\/pre>\n\n\n\n

\u78ba\u8a8d\u306f\u4ee5\u4e0b\u3067\u3002<\/p>\n\n\n\n

$ apt-mark showhold\nlibicu\nphp\nphp-apache\nphp-fpm<\/code><\/pre>\n\n\n\n

\u30db\u30fc\u30eb\u30c9\u3092\u89e3\u9664\u3057\u305f\u3044\u5834\u5408\u306f\u3001apt-mark unhold <package-name<\/em>> \u3067\u89e3\u9664\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n

\u307e\u3068\u3081<\/h3>\n\n\n\n

\u4eca\u56de\u3001\u306a\u3093\u3068\u306a\u304f\u308f\u304b\u3063\u305f\u306e\u306f\u4ee5\u4e0b\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n

\u30fb\u30d3\u30eb\u30c9\u3059\u308b\u3068\u304d\u306f\u3001docker\u30a4\u30e1\u30fc\u30b8\u3092ubuntu\u306b\u5b9f\u6a5f\u306b\u4f5c\u3063\u3066\u3042\u308c\u3053\u308c\u3059\u308b
\u30fb\u3053\u308c\u306f\u307e\u305f\u6b21\u56de\u306b\u7d39\u4ecb
\u30fbtermux\u72ec\u81ea\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u7ba1\u7406\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u306a\u3069\u306b\u3064\u3044\u3066\u306f\u672a\u8abf\u67fb
\u30fb\u3068\u308a\u3042\u3048\u305a\u3001PHP7\u306fapache\u3067\u3082nginx\u3067\u3082\u4f7f\u3048\u308b\u3088\u3046\u306b\u306a\u3063\u305f<\/p>\n\n\n\n

\u3042\u3068\u304c\u304d<\/h3>\n\n\n\n

WordPress\u306a\u3093\u304b\u3092\u52d5\u304b\u3059\u3068\u304d\u306f\u3001\u307e\u3060PHP7\u304c\u5b89\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002\u3053\u306e\u524d\u3001PHP8\u3067\u52d5\u304b\u3057\u3066\u307f\u305f\u3093\u3067\u3059\u304c\u5bfe\u5fdc\u3057\u3066\u3044\u306a\u3044\u30d7\u30e9\u30b0\u30a4\u30f3\u306a\u3069\u3082\u3042\u308a\u3001\u307e\u305fWP-CLI\u3068\u3044\u3046\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u306e\u30c4\u30fc\u30eb\u3082\u8b66\u544a\u3092\u51fa\u3057\u307e\u3059\u3002\u3068\u3044\u3046\u3053\u3068\u3067\u3001PHP8\u306f\u3082\u3046\u5c11\u3057\u3001\u69d8\u5b50\u898b\u3068\u306a\u308a\u307e\u3057\u305f\u3002termux\u3067PHP7\u3068\u304b\u52c9\u5f37\u3057\u3066\u3044\u308b\u4eba\u3082\u3044\u308b\u3068\u601d\u3046\u306e\u3067\u4eca\u56de\u306e\u30cd\u30bf\u306f\u5c11\u3057\u306f\u9700\u8981\u304c\u3042\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002\u3084\u3063\u3071\u308a\u30d3\u30eb\u30c9\u3059\u308b\u3063\u3066\u3001\u9762\u5012\u3067\u3059\u3057\u306d\u3002\u3044\u3064\u304b\u3001\u305d\u306e\u904e\u7a0b\u3082\u7d39\u4ecb\u3057\u3066\u3044\u304d\u305f\u3044\u3067\u3059\u3002<\/p>\n\n\n\n

\u8457\u8005\u306b\u30e1\u30c3\u30bb\u30fc\u30b8<\/h3>\n\n\n\n \n\n\n

\u9593\u9055\u3044\u306e\u3054\u6307\u6458\u306a\u3069\u3001\u30b3\u30e1\u30f3\u30c8\u3058\u3083\u306a\u304f\u3066\u3001\u500b\u4eba\u7684\u306b\u3084\u308a\u3068\u308a\u3057\u305f\u3044\u5834\u5408\u306f\u3053\u3061\u3089\u304b\u3089<\/a>\u3069\u3046\u305e\u3002\u304a\u8fd4\u4e8b\u304c\u9045\u304f\u306a\u308b\u3068\u304d\u3082\u3042\u308a\u307e\u3059\u304c\u3001\u3054\u4e86\u627f\u3092\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

\u5148\u65e5\u3001termux\u4e0a\u3067NGINX\u3068PHP-FPM\u306e\u8a2d\u5b9a\u8a18\u4e8b\u3092\u66f8\u3044\u305f\u3068\u304d\u306b\u6c17\u304c\u3064\u3044\u305f\u3093\u3067\u3059\u304c\u3001termux\u306ePHP\u3063\u30667\u304b\u30898\u306b\u306a\u3063\u3066PHP7\u306f\u3082\u3046PKG\u304c\u306a\u304f\u5165\u308c\u3089\u308c\u307e\u305b\u3093\u3067\u3057\u305f\u3002 Termux\u3067NGINX+php-fp […]<\/p>\n","protected":false},"author":1,"featured_media":10606,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_uag_custom_page_level_css":"","footnotes":""},"categories":[47],"tags":[],"acf":[],"uagb_featured_image_src":{"full":["https:\/\/hack.gpl.jp\/wp-content\/uploads\/2021\/06\/termux_php8_to_php7.png",800,800,false],"thumbnail":["https:\/\/hack.gpl.jp\/wp-content\/uploads\/2021\/06\/termux_php8_to_php7.png",96,96,false],"medium":["https:\/\/hack.gpl.jp\/wp-content\/uploads\/2021\/06\/termux_php8_to_php7.png",800,800,false],"medium_large":["https:\/\/hack.gpl.jp\/wp-content\/uploads\/2021\/06\/termux_php8_to_php7-768x768.png",768,768,true],"large":["https:\/\/hack.gpl.jp\/wp-content\/uploads\/2021\/06\/termux_php8_to_php7.png",800,800,false],"1536x1536":["https:\/\/hack.gpl.jp\/wp-content\/uploads\/2021\/06\/termux_php8_to_php7.png",800,800,false],"2048x2048":["https:\/\/hack.gpl.jp\/wp-content\/uploads\/2021\/06\/termux_php8_to_php7.png",800,800,false],"post-thumbnail":["https:\/\/hack.gpl.jp\/wp-content\/uploads\/2021\/06\/termux_php8_to_php7.png",800,800,false]},"uagb_author_info":{"display_name":"JunkHack","author_link":"https:\/\/hack.gpl.jp\/author\/junkhack\/"},"uagb_comment_info":0,"uagb_excerpt":"\u5148\u65e5\u3001termux\u4e0a\u3067NGINX\u3068PHP-FPM\u306e\u8a2d\u5b9a\u8a18\u4e8b\u3092\u66f8\u3044\u305f\u3068\u304d\u306b\u6c17\u304c\u3064\u3044\u305f\u3093\u3067\u3059\u304c\u3001termux\u306ePH…","_links":{"self":[{"href":"https:\/\/hack.gpl.jp\/wp-json\/wp\/v2\/posts\/10604"}],"collection":[{"href":"https:\/\/hack.gpl.jp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hack.gpl.jp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hack.gpl.jp\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hack.gpl.jp\/wp-json\/wp\/v2\/comments?post=10604"}],"version-history":[{"count":0,"href":"https:\/\/hack.gpl.jp\/wp-json\/wp\/v2\/posts\/10604\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/hack.gpl.jp\/wp-json\/wp\/v2\/media\/10606"}],"wp:attachment":[{"href":"https:\/\/hack.gpl.jp\/wp-json\/wp\/v2\/media?parent=10604"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hack.gpl.jp\/wp-json\/wp\/v2\/categories?post=10604"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hack.gpl.jp\/wp-json\/wp\/v2\/tags?post=10604"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}