{"id":7930,"date":"2023-10-08T22:26:35","date_gmt":"2023-10-08T13:26:35","guid":{"rendered":"https:\/\/jg7sfr.mydns.jp\/?p=7930"},"modified":"2023-10-09T05:50:12","modified_gmt":"2023-10-08T20:50:12","slug":"warning-php-startup-unable-to-load-dynamic-library-mcrypt-so","status":"publish","type":"post","link":"https:\/\/jg7sfr.mydns.jp\/?p=7930","title":{"rendered":"Warning: PHP Startup: Unable to load dynamic library &#8216;mcrypt.so&#8217;"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">#php -ini > test<br>#vi test<br>Warning: PHP Startup: Unable to load dynamic library &#8216;mcrypt.so&#8217; (tried: \/usr\/local\/lib\/php\/20230831\/mcrypt.so (Cannot open &#8220;\/usr\/lo cal\/lib\/php\/20230831\/mcrypt.so&#8221;), \/usr\/local\/lib\/php\/20230831\/mcrypt.so.so (Cannot open &#8220;\/usr\/local\/lib\/php\/20230831\/mcrypt.so.so&#8221;)) in Unknown on line 0<br><br>#php -m<br>Warning: PHP Startup: Unable to load dynamic library &#8216;mcrypt.so&#8217; (tried: \/usr\/local\/lib\/php\/20230831\/mcrypt.so (Cannot open &#8220;\/usr\/local\/lib\/php\/20230831\/mcrypt.so&#8221;), \/usr\/local\/lib\/php\/20230831\/mcrypt.so.so (Cannot open &#8220;\/usr\/local\/lib\/php\/20230831\/mcrypt.so.so&#8221;)) in Unknown on line 0<br><br>\u30c0\u30a4\u30ca\u30df\u30c3\u30af\u30ea\u30f3\u30af\u304c\u5207\u308c\u3066\u3044\u308b\u3088\u3046\u3067\u3059\u3002<br><br>\uff03cd \/usr\/local\/etc\/php<br>-rw-r&#8211;r&#8211; 1 root wheel 22 Oct 3 20:23 ext-20-mbstring.ini.sample<br>-rw-r&#8211;r&#8211; 1 root wheel 20 Sep 7 19:09 ext-20-mcrypt.ini<br>-rw-r&#8211;r&#8211; 1 root wheel 20 Oct 3 17:43 ext-20-mysqli.ini<br>-rw-r&#8211;r&#8211; 1 root wheel 20 Oct 3 17:43 ext-20-mysqli.ini.sample<br>ext-20-mcrypt.ini\u3060\u3051\u304c\u30bf\u30a4\u30e0\u30b9\u30bf\u30f3\u30d7\u304c\u7570\u306a\u308a\u307e\u3059\u3002<br>\u4ee5\u524d\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3044\u305f\u306e\u304c\u6b8b\u3063\u3066\u3044\u305f\u306e\u3067\u3057\u3087\u3046\u304b\u3002<br>mcrypt.so\u3082\/usr\/local\/lib\/php\/20230831\/\u306b\u306f\u3042\u308a\u307e\u305b\u3093\u3002<br><br>ext-20-mcrypt.ini\u306e\u4e2d\u8eab\u306f<br>extension=mcrypt.so<br>\u6709\u52b9\u5316\u3055\u308c\u3066\u3044\u308b\u3088\u3046\u3067\u3059\u3002\u30b3\u30e1\u30f3\u30c8\u30a2\u30a6\u30c8\u3057\u306a\u3044\u3067\u3001\u30d5\u30a1\u30a4\u30eb\u540d\u3092\u5909\u66f4\u3057\u3001php -ini\u306e\u7d50\u679c\u3092\u898b\u308b\u3068\u3001Warning\u306f\u6d88\u3048\u305f\u306e\u3067\u826f\u3057\u3068\u3057\u307e\u3057\u3087\u3046\u3002php72?\u53e4\u3044\u30d0\u30fc\u30b8\u30e7\u30f3\u3067\u62e1\u5f35\u30e2\u30b8\u30e5\u30fc\u30eb\u304c\u975e\u63a8\u5968\u3068\u306a\u3063\u305f\u3088\u3046\u3067\u3001\u6050\u3089\u304fphp83\u3067\u306f\u5b58\u5728\u3057\u306a\u3044\uff1f\u306e\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u306d\u3002<br><br>\u4eca\u56de\u306e\u4ef6\u3001\u30b5\u30a4\u30c8\u30d8\u30eb\u30b9\u3092\u898b\u308b\u307e\u3067\u306f\u6c17\u306b\u3057\u3066\u304a\u308a\u307e\u305b\u3093\u3067\u3057\u305f\u304c\u3001curl\u3084mcypt\u306a\u3069\u6709\u52b9\u5316\u3055\u308c\u3066\u3044\u306a\u3044\u306e\u304b\u30e2\u30b8\u30e5\u30fc\u30eb\u304c\u7121\u3044\u3068\u306e\u30a8\u30e9\u30fc\u304c\u3002\u4eca\u65e5\u306e\u4f5c\u696d\u4e2d\u306fphp -m\u3067\u78ba\u8a8d\u3057\u305f\u3064\u3082\u308a\u3067\u3057\u305f\u304c\u3001\u4f55\u304b\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u6d88\u3048\u3066\u3057\u307e\u3063\u305f\u306e\u304b\uff1f<br><br>#pkg info -r php83-pecl-mcrypt-1.0.6\u3000\u306b\u4f9d\u5b58\u3057\u3066\u3044\u308b\u30d1\u30c3\u30b1\u30fc\u30b8\uff08\u3092\u5fc5\u8981\u3068\u3059\u308b\uff09<br>php83-pecl-mcrypt-1.0.\u4f9d\u5b58\u3057\u3066\u3044\u308b\u30d1\u30c3\u30b1\u30fc\u30b8<br><br>#pkg info -d php83-pecl-mcrypt-1.0.6 \u304c\u4f9d\u5b58\u3057\u3066\u3044\u308b\u30d1\u30c3\u30b1\u30fc\u30b8<br>libmcrypt-2.5.8_3<br>php83-8.3.0.r3<br>libltdl-2.4.7<br><br>\u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3001ini\u30d5\u30a1\u30a4\u30eb\u3060\u3051\u540d\u524d\u3092\u5909\u3048\u308b\u3068daily security run output\u306b\u3066\u901a\u77e5\u3055\u308c\u308b\u3088\u3046\u3067\u3059\u3002<br>daily security run output<br><br>\u7d50\u5c40<br>#pkg delete php83-pecl-mcrypt-1.0.6<br>#pkg install php83-pecl-mcrypt-1.0.6<br>\u6d88\u3057\u3066\u69d8\u5b50\u898b\u3068\u601d\u3044\u307e\u3057\u305f\u304c\u3001\u518d\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3057\u305f\u3002<br>\u79c1\u306f\u4f55\u3092\u3084\u3063\u3066\u3044\u308b\u306e\u3067\u3057\u3087\u3046\u306d\u3002\u518d\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\/usr\/local\/lib\/php\/20230831\u304b\u3089\u6d88\u3048\u3066\u3044\u305fmcrypt.so\u306f\u5fa9\u6d3b\u3057\u3001php -m\u3084php -ini\u3067\u3082Warning\u306f\u51fa\u529b\u3055\u308c\u307e\u305b\u3093\u3002<br><br>\u6570\u5206\u5f8c<br>#pkg delete php83-pecl-mcrypt-1.0.6<br>\u30b5\u30a4\u30c8\u30d8\u30eb\u30b9\u3067\u78ba\u8a8d\u3002\u554f\u984c\u306a\u3057\u3002\u6d88\u3057\u3066\u69d8\u5b50\u3092\u898b\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><br><\/p>\n","protected":false},"excerpt":{"rendered":"<p>#php -ini > test#vi testWarning: PHP Startup: Unable to load dynamic library &#8216;mcrypt.so&#8217; (tried: \/&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"image","meta":{"footnotes":""},"categories":[4],"tags":[637,636,638,631],"class_list":["post-7930","post","type-post","status-publish","format-image","hentry","category-bsd","tag-dynamic-library","tag-mcrypt","tag-php-ini","tag-php-m","post_format-post-format-image"],"_links":{"self":[{"href":"https:\/\/jg7sfr.mydns.jp\/index.php?rest_route=\/wp\/v2\/posts\/7930","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jg7sfr.mydns.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jg7sfr.mydns.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jg7sfr.mydns.jp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jg7sfr.mydns.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=7930"}],"version-history":[{"count":6,"href":"https:\/\/jg7sfr.mydns.jp\/index.php?rest_route=\/wp\/v2\/posts\/7930\/revisions"}],"predecessor-version":[{"id":7939,"href":"https:\/\/jg7sfr.mydns.jp\/index.php?rest_route=\/wp\/v2\/posts\/7930\/revisions\/7939"}],"wp:attachment":[{"href":"https:\/\/jg7sfr.mydns.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7930"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jg7sfr.mydns.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=7930"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jg7sfr.mydns.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=7930"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}