{"id":10746,"date":"2021-07-11T03:32:13","date_gmt":"2021-07-10T18:32:13","guid":{"rendered":"https:\/\/hack.gpl.jp\/?p=10746"},"modified":"2021-11-22T16:08:29","modified_gmt":"2021-11-22T07:08:29","slug":"post-10746","status":"publish","type":"post","link":"https:\/\/hack.gpl.jp\/2021\/07\/11\/post-10746.html","title":{"rendered":"Termux\u306e\u30d1\u30c3\u30b1\u30fc\u30b8PHP7.4.21\u6700\u65b0\u30d3\u30eb\u30c9"},"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

\u6700\u8fd1\u3001\u4ed5\u4e8b\u304c\u5fd9\u3057\u304c\u3063\u305f\u30fc\uff01<\/p>\n<\/div><\/div><\/div><\/div><\/div><\/div><\/div><\/div>\n\n\n\n

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

\u3082\u3046\u4eca\u5e74\u3082\u534a\u5206\u7d42\u308f\u3063\u3061\u3083\u3044\u307e\u3057\u305f\u306d\u3002<\/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

\u4eca\u56de\u306f\u3001Termux\u306ePHP\u3092\u6700\u65b0\u306e7.4.21 \u306b\u3057\u305f\u3088<\/p>\n<\/div><\/div><\/div><\/div><\/div><\/div><\/div><\/div>\n\n\n\n

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

\u6700\u65b0\u30d3\u30eb\u30c9\u4f5c\u3063\u305f\u3093\u3067\u3059\u304b\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

Termux \u306ePHP\u30d0\u30fc\u30b8\u30e7\u30f3\u306f\u3001\u4eca\u306f\uff18\u7cfb\u306b\u306a\u3063\u3066\u3044\u30667.4\u7cfb\u306e\u6700\u7d42\u30ea\u30ea\u30fc\u30b9\u306f7.4.12 \u3067\u3057\u305f\u3002\u3061\u3087\u3063\u3068\u53e4\u304b\u3063\u305f\u306e\u3067\u30012021\u5e747\u670801\u65e5\u306b\u30ea\u30ea\u30fc\u30b9\u3055\u308c\u305fphp7.4.21\u3092\u30d3\u30eb\u30c9\u3057\u3066\u304a\u304d\u307e\u3057\u305f\u3002\uff17\u7cfb\u306f\u3042\u3068\uff11\u5e74\u304f\u3089\u3044\u306f\u4f7f\u3046\u3064\u3082\u308a\u3067\u3059\u3002\u3068\u3053\u308d\u3067\u3001xdebug\u4ed8\u304d\u306f\u3069\u3046\u3084\u3063\u3066\u30d3\u30eb\u30c9\u3059\u308b\u3093\u3067\u3057\u3087\u3046\u306d\u3002\u6b21\u306e\u8ab2\u984c\u3067\u3059\u3002<\/p>\n\n\n\n

PHP7.4.21\u306e\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u5148<\/h3>\n\n\n\n

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

\u5b8c\u5168\u306b\u306f\u30c6\u30b9\u30c8\u3057\u3066\u3044\u307e\u305b\u3093\u304c\u3001\u3053\u306e\u30b5\u30a4\u30c8\u306b\u3082\u5165\u308c\u306a\u304c\u3089\u30c6\u30b9\u30c8\u3057\u3066\u3044\u307e\u3059\u3002\u4eca\u306e\u3068\u3053\u308d\u5927\u4e08\u592b\u304b\u306a\uff1f\u5fc3\u914d\u306a\u4eba\u306f\u81ea\u5206\u3067\u30d3\u30eb\u30c9\u3057\u3066\u3001\u30c6\u30b9\u30c8\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u306d\u3002\u30d3\u30eb\u30c9\u65b9\u6cd5\u306f\u30b0\u30b0\u3063\u3066\u304f\u3060\u3055\u308c\u3002<\/p>\n\n\n\n

\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u65b9\u6cd5<\/h3>\n\n\n\n

\u524d\u306e\u8a18\u4e8b\u3067\u3001php8.x\u304b\u3089php7.4.12\u306b\u30c0\u30a6\u30f3\u30b0\u30ec\u30fc\u30c9\u3059\u308b\u65b9\u6cd5\u306f\u66f8\u3044\u3066\u3044\u307e\u3059\u306e\u3067\u3001\u4eca\u56de\u306f\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3067\u3059\u3002<\/p>\n\n\n\n

Termux\u3067PHP7\u3092\u4f7f\u3044\u305f\u3044\uff01 PHP8\u304b\u3089PHP7\u306b\u3057\u3066\u4f7f\u3046\u3002<\/p>URL<\/a><\/cite><\/blockquote>\n\n\n\n

\u3055\u304f\u3063\u3068\u3001\u30d0\u30fc\u30b8\u30e7\u30f3\u3042\u3052\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n

\u30b9\u30c6\u30c3\u30d7\uff11<\/h3>\n\n\n\n

ZIP\u5727\u7e2e\u3057\u305f\u306e\u3082\u4ee5\u4e0b\u306b\u3042\u308b\u306e\u3067\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u89e3\u51cd\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n\n\n\n

cd \u9069\u5f53\u306aDIR\nwget https:\/\/github.com\/take-i\/termux-php7\/raw\/master\/php_7.4.21-aarch64-deb.zip\nunzip php_7.4.21-aarch64-deb.zip<\/code><\/pre>\n\n\n\n

\u89e3\u51cd\u3059\u308b\u3068\u4ee5\u4e0b\u306a\u611f\u3058\u3067\u3059\u3002<\/p>\n\n\n\n

$ tree php_7.4.21-aarch64-deb\nphp_7.4.21-aarch64-deb\n\u251c\u2500\u2500 apache2_2.4.46-4_aarch64.deb\n\u251c\u2500\u2500 libicu_67.1_aarch64.deb\n\u251c\u2500\u2500 php-apache_7.4.21_aarch64.deb\n\u251c\u2500\u2500 php-fpm_7.4.21_aarch64.deb\n\u251c\u2500\u2500 php-pgsql_7.4.21_aarch64.deb\n\u2514\u2500\u2500 php_7.4.21_aarch64.deb<\/code><\/pre>\n\n\n\n

\u4eca\u56de\u306f\u3001nginx\u3067\u3059\u306e\u3067\u3001\u672c\u4f53\u3068php-fpm\u3092\u5165\u308c\u3066\u304a\u304d\u307e\u3059\u3002libicu_67\u306f\u524d\u56de\uff08php7.4.12\uff09\u3068\u540c\u3058\u306a\u306e\u3067\u305d\u306e\u307e\u307e\u3067\u3059\u3002apache\u3068php-apache\u306f\u307e\u3063\u305f\u304f\u30c6\u30b9\u30c8\u3057\u3066\u3044\u307e\u305b\u3093\u306e\u3067\u3001\u81ea\u5df1\u8cac\u4efb\u3067\u5165\u308c\u308b\u306a\u3089\u304a\u9858\u3044\u3057\u307e\u3059\u3002\u52d5\u4f5c\u3057\u306a\u3044\u5834\u5408\u306f\u3001\u3054\u9023\u7d61\u3092\u3002\u5bfe\u5fdc\u3059\u308b\u304b\u306f\u5225\u3067\u3059\u304c\u3002<\/p>\n\n\n\n

\u30b9\u30c6\u30c3\u30d7\uff12<\/h3>\n\n\n\n

\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3059\u308b\u524d\u306b\u3001\u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u66f4\u65b0\u3055\u308c\u306a\u3044\u3088\u3046\u3057\u3066\u3044\u305f\u5834\u5408\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u30d1\u30c3\u30b1\u30fc\u30b8\u540d\u304c\u51fa\u307e\u3059\u306e\u3067\u305d\u308c\u3092\u89e3\u9664\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n\n\n\n

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

\u89e3\u9664\u306f\u3001unhold \u3067\u3059\u3002<\/p>\n\n\n\n

$ apt-mark unhold php php-fpm\nCanceled hold on php.\nCanceled hold on php-fpm.<\/code><\/pre>\n\n\n\n

\u89e3\u9664\u3055\u308c\u305f\u304b\u3001\u518d\u5ea6 \uff11\u3064\u4e0a\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u65bd\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n\n\n\n

\u30b9\u30c6\u30c3\u30d7\uff13<\/h3>\n\n\n\n

\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3068\u3044\u3063\u3066\u3082\u3001\u30b3\u30de\u30f3\u30c9\u306f\u540c\u3058\u3067\u3059\u3002<\/p>\n\n\n\n

cd php_7.4.21-aarch64-deb\n\u203b\u4ee5\u4e0b\u306f\u4eca\u56de\u5165\u308c\u306a\u3044\u306e\u3067\u524a\u9664\u3002\nrm apache2_2.4.46-4_aarch64.deb php-apache_7.4.21_aarch64.deb* php-pgsql_7.4.21_aarch64.deb*\n\ndpkg -i .\/php*<\/code><\/pre>\n\n\n\n

\u30b9\u30c6\u30c3\u30d7\uff14<\/h3>\n\n\n\n

\u78ba\u8a8d\u3002\u3061\u3083\u3093\u3068\u30017.4.21\u304c\u5165\u3063\u3066\u3044\u307e\u3059\u306d\u3002<\/p>\n\n\n\n

$ php -v\nPHP 7.4.21 (cli) (built: Jul 10 2021 16:36:28) ( NTS )\nCopyright (c) The PHP Group\nZend Engine v3.4.0, Copyright (c) Zend Technologies<\/code><\/pre>\n\n\n\n

\u52dd\u624b\u306b\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3055\u308c\u306a\u3044\u3088\u3046\u30de\u30fc\u30af\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n\n\n\n

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

\u30de\u30fc\u30af\u3055\u308c\u305f\u304b\u3001\u78ba\u8a8d<\/p>\n\n\n\n

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

\u30b9\u30c6\u30c3\u30d7\uff14<\/h3>\n\n\n\n

nginx\u3068php-fpm \u3092\u518d\u8d77\u52d5\u3057\u3066\u304a\u304d\u307e\u3059\u3002\u3053\u306e\u30b9\u30de\u30db\u306froot\u5316\u3057\u3066\u3042\u3063\u3066\u3001nginx\u306froot\u6a29\u9650\u3067master\u30d7\u30ed\u30bb\u30b9\u304c\u52d5\u4f5c\u3057\u3066\u3044\u308b\u306e\u3067\u3001sudo\u3057\u3066KILL\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n\n\n\n

$ killall php-fpm\n$ sudo killall nginx\n\u518d\u8d77\u52d5\n$ php-fpm\n$ sudo nginx<\/code><\/pre>\n\n\n\n

phpinfo()\u306a\u3069\u3067\u78ba\u8a8d\u3057\u3066\u304a\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

\u30fbtermux\u306ephp\u6700\u65b0\u3092\u30d3\u30eb\u30c9\u3057\u3066\u307f\u305f
\u30fb\u30c6\u30b9\u30c8\u306f\u4eba\u67f1\u3068\u3057\u3066\u3001\u3053\u306e\u30db\u30b9\u30c8\u3084\u3063\u3066\u3044\u307e\u3059
\u30fb\u4f55\u304b\u3042\u308c\u3070\u5831\u544a\uff08\u3057\u3066\u306d\uff09
\u30fbxdebug\u4ed8\u304d\u306e\u3082\u30d3\u30eb\u30c9\u3057\u3066\u307f\u305f\u3044\u304c\u3069\u3046\u3084\u308b\u3093\u3060\u308d\u3046\u304b\uff1f<\/p>\n\n\n\n

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

\u307e\u3060\u3053\u306e\u30d6\u30ed\u30b0\u306f\u3001\u30b9\u30de\u30db\u306eumidigi F2\u3067\u52d5\u4f5c\u3055\u305b\u3066\u3044\u307e\u3059\u3002\u305d\u308d\u305d\u308d\u96fb\u6c60\u3092\u4ea4\u63db\u3057\u305f\u306e\u3067\u3001pixel3\u3092\u5fa9\u6d3b\u3055\u305b\u306a\u3044\u3068\u3067\u3059\u304c\u3001\u8170\u304c\u601d\u3044\u3067\u3059\u3002\u3042\u3068\u3001\u6700\u8fd1keyCDN\u3082\uff11\u30f6\u6708\u304f\u3089\u3044\u904b\u7528\u3057\u3066\u3044\u307e\u3059\u306e\u3067\u3001\u305d\u308d\u305d\u308d\u305d\u306e\u30cd\u30bf\u3082\u63cf\u304d\u305f\u3044\u306a\u3068\u3002\u3064\u3044\u3067\u306b\u30a2\u30c9\u30bb\u30f3\u30b9\u306a\u3093\u304b\u3082\u904b\u7528\u3057\u3066\u3044\u307e\u3059\u304c\u3001\u3053\u308c\u306f\u99c4\u8cc3\u304f\u3089\u3044\u306b\u3057\u304b\u306a\u3089\u306a\u3044\u306e\u3067\u3001\u3084\u3081\u305f\u65b9\u304c\u3044\u3044\u3093\u3058\u3083\u306a\u3044\u304b\u3068\u3044\u3046\u611f\u3058\u3002\u5e83\u544a\u3067\u308b\u306e\u306f\u597d\u304d\u3058\u3083\u7121\u3044\u3057\u3001\u56de\u907f\u65b9\u6cd5\u306f\u898b\u308b\u5074\u304c\u3044\u304f\u3089\u3067\u3082\u3067\u304d\u307e\u3059\u3057\u306d\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":"

Termux \u306ePHP\u30d0\u30fc\u30b8\u30e7\u30f3\u306f\u3001\u4eca\u306f\uff18\u7cfb\u306b\u306a\u3063\u3066\u3044\u30667.4\u7cfb\u306e\u6700\u7d42\u30ea\u30ea\u30fc\u30b9\u306f7.4.12 \u3067\u3057\u305f\u3002\u3061\u3087\u3063\u3068\u53e4\u304b\u3063\u305f\u306e\u3067\u30012021\u5e747\u670801\u65e5\u306b\u30ea\u30ea\u30fc\u30b9\u3055\u308c\u305fphp7.4.21\u3092\u30d3\u30eb\u30c9\u3057\u3066\u304a\u304d\u307e\u3057\u305f\u3002\uff17\u7cfb\u306f\u3042\u3068\uff11\u5e74\u304f\u3089 […]<\/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":[8,47,83],"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":1,"uagb_excerpt":"Termux \u306ePHP\u30d0\u30fc\u30b8\u30e7\u30f3\u306f\u3001\u4eca\u306f\uff18\u7cfb\u306b\u306a\u3063\u3066\u3044\u30667.4\u7cfb\u306e\u6700\u7d42\u30ea\u30ea\u30fc\u30b9\u306f7.4.12 \u3067\u3057\u305f\u3002\u3061\u3087\u3063\u3068…","_links":{"self":[{"href":"https:\/\/hack.gpl.jp\/wp-json\/wp\/v2\/posts\/10746"}],"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=10746"}],"version-history":[{"count":0,"href":"https:\/\/hack.gpl.jp\/wp-json\/wp\/v2\/posts\/10746\/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=10746"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hack.gpl.jp\/wp-json\/wp\/v2\/categories?post=10746"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hack.gpl.jp\/wp-json\/wp\/v2\/tags?post=10746"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}