{"id":10303,"date":"2025-01-06T15:50:38","date_gmt":"2025-01-06T06:50:38","guid":{"rendered":"https:\/\/www.k-in.co.jp\/niwakan\/?p=10303"},"modified":"2025-01-06T15:50:38","modified_gmt":"2025-01-06T06:50:38","slug":"web-server%e3%81%8c%e6%ad%a2%e3%81%be%e3%81%a3%e3%81%9f","status":"publish","type":"post","link":"https:\/\/www.k-in.co.jp\/niwakan\/archives\/2025\/01\/10303\/","title":{"rendered":"web  server\u304c\u6b62\u307e\u3063\u305f\u2026"},"content":{"rendered":"<p>\u51ac\u5b63\u4f11\u696d\u3082\u7d42\u308f\u308a\u3001\u4e45\u3057\u632f\u308a\u306b\u30b5\u30fc\u30d0\u30fc\u3092\u518d\u8d77\u52d5\u3057\u305f\u3002<br \/>\nApache2\u304c\u52d5\u304b\u306a\u304f\u306a\u3063\u3066\u5c45\u305f\u2026\u2026\u4f55\u304c\u8d77\u304d\u305f\u3002<br \/>\n<!--more--><\/p>\n<p>launchctl\u3067\u8d77\u52d5\u3057\u3066\u3082\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u5410\u304b\u306a\u3044\u306e\u3067\u3001apachectl\u3067\u8d77\u52d5\u3057\u3066\u307f\u308b\u3002<\/p>\n<pre class=\"height:300 lang:default decode:true\" title=\"\">% sudo apachectl restart\r\nhttpd: Syntax error on line 169 of \/opt\/local\/etc\/apache2\/httpd.conf: Cannot load lib\/apache2\/modules\/mod_php74.so into server: dlopen(\/opt\/local\/lib\/apache2\/modules\/mod_php74.so, 10): Library not loaded: \/opt\/local\/lib\/libicuuc.76.dylib\\n  Referenced from: \/opt\/local\/lib\/libxml2.2.dylib\\n  Reason: image not found<\/pre>\n<p>\u3046\u3093\u3001\u52d5\u304b\u306a\u3044\u306d\u3002<br \/>\nmod_php74.so\u306f\u5c45\u308b\u3002<br \/>\nlibxml2.2.dylib\u3082\u5c45\u308b\u3002<br \/>\nlibicuuc.76.dylib\u304c\u5c45\u306a\u3044\u3002<br \/>\nlibicuuc.74.dylib\u306a\u3089\u5c45\u305f\u3002<br \/>\n\u4f55\u6545\u6d88\u3048\u305f\u3002<\/p>\n<p>\u7406\u7531\u306f\u7c21\u5358\u3060\u3002<br \/>\n\u79c1\u304c\u6d88\u3057\u305f\u304b\u3089\u3060\u3002<br \/>\n\u5176\u308c\u4ee5\u5916\u306b\u6d88\u3048\u69d8\u304c\u7121\u3044\u3002<\/p>\n<p>\u3088\u3057\u3001\u898b\u4ed8\u304b\u3089\u306a\u3044\u306a\u3089\u5165\u308c\u76f4\u305d\u3046\u3002<br \/>\n\u3044\u3063\u305d\u306e\u3053\u3068\u6700\u65b0\u306b\u3057\u3088\u3046\u3002<\/p>\n<p>\u3068\u3001php84-apache2handler\u3068\u4e91\u3046\u306e\u3092\u5165\u308c\u3066\u307f\u305f\u3002<br \/>\n\u30b3\u30f3\u30d1\u30a4\u30eb\u30a8\u30e9\u30fc\u3067\u5165\u3089\u306a\u3044\u3002<br \/>\n\u30ed\u30b0\u3092\u898b\u308b\u3068\u3001\u304a\u3043\u3001x86_64\u306b\u306f\u5bfe\u5fdc\u3057\u3066\u5c45\u306a\u3044\u306e\u304b\u3088\u3063\uff01<\/p>\n<pre class=\"height:300 lang:default decode:true\" title=\"\">:info:build Undefined symbols for architecture x86_64:\r\n:info:build   \"_res_9_dn_expand\", referenced from:\r\n:info:build       _php_parserr in dns.o\r\n:info:build       _zif_dns_get_mx in dns.o\r\n:info:build   \"_res_9_dn_skipname\", referenced from:\r\n:info:build       _zif_dns_get_record in dns.o\r\n:info:build       _zif_dns_get_mx in dns.o\r\n:info:build   \"_res_9_init\", referenced from:\r\n:info:build       _zif_dns_check_record in dns.o\r\n:info:build       _zif_dns_get_record in dns.o\r\n:info:build       _zif_dns_get_mx in dns.o\r\n:info:build   \"_res_9_search\", referenced from:\r\n:info:build       _zif_dns_check_record in dns.o\r\n:info:build       _zif_dns_get_record in dns.o\r\n:info:build       _zif_dns_get_mx in dns.o\r\n:info:build ld: symbol(s) not found for architecture x86_64\r\n:info:build clang: error: linker command failed with exit code 1 (use -v to see invocation)\r\n:info:build make: *** [libs\/libphp.bundle] Error 1\r\n:info:build make: Leaving directory `\/opt\/local\/var\/macports\/build\/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_php\/php84-apache2handler\/work\/php-8.4.0RC1'\r\n:info:build Command failed:  cd \"\/opt\/local\/var\/macports\/build\/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_php\/php84-apache2handler\/work\/php-8.4.0RC1\" && \/usr\/bin\/make -j4 -w libs\/libphp.bundle\r\n\r\n:info:build Exit code: 2\r\n:error:build Failed to build php84-apache2handler: command execution failed\r\n:debug:build Error code: CHILDSTATUS 46993 2\r\n:debug:build Backtrace: command execution failed\r\n:debug:build     while executing\r\n:debug:build \"system {*}$notty {*}$callback {*}$nice $fullcmdstring\"\r\n:debug:build     invoked from within\r\n:debug:build \"command_exec -callback portprogress::target_progress_callback build\"\r\n:debug:build     (procedure \"portbuild::build_main\" line 10)\r\n:debug:build     invoked from within\r\n:debug:build \"$procedure $targetname\"\r\n:error:build See \/opt\/local\/var\/macports\/logs\/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_php\/php84-apache2handler\/main.log for details.<\/pre>\n<p>\u5176\u308c\u304b\u3089\u5e7e\u3064\u304b\u8a66\u3057\u3066\u307f\u305f\u3002<br \/>\nphp8\u7cfb\u306f\u5168\u6ec5\u304b\u3088\u3063\uff01<br \/>\n\u5176\u308c\u3067php74\uff087\u7cfb\u6700\u7d42\uff09\u306a\u306e\u304b\u2026\u2026\u5bc2\u3057\u3044\u306a\u3041\u3002<\/p>\n<p>\u518d\u5ea6\u3001php74-apache2handler\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u76f4\u3057\u3066\u6b64\u308c\u3092\u66f8\u3044\u3066\u3044\u308b\u3002<br \/>\n\u307e\u3041\u3001\u52d5\u3044\u3066\u3044\u308b\u3093\u306a\u3089\u826f\u3044\u3088\u306d\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u51ac\u5b63\u4f11\u696d\u3082\u7d42\u308f\u308a\u3001\u4e45\u3057\u632f\u308a\u306b\u30b5\u30fc\u30d0\u30fc\u3092\u518d\u8d77\u52d5\u3057\u305f\u3002 Apache2\u304c\u52d5\u304b\u306a\u304f\u306a\u3063\u3066\u5c45\u305f\u2026\u2026\u4f55\u304c\u8d77\u304d\u305f\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","footnotes":""},"categories":[115],"tags":[159,38,148],"class_list":["post-10303","post","type-post","status-publish","format-standard","hentry","category-software","tag-apache","tag-php","tag-server"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.k-in.co.jp\/niwakan\/wp-json\/wp\/v2\/posts\/10303","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.k-in.co.jp\/niwakan\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.k-in.co.jp\/niwakan\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.k-in.co.jp\/niwakan\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.k-in.co.jp\/niwakan\/wp-json\/wp\/v2\/comments?post=10303"}],"version-history":[{"count":0,"href":"https:\/\/www.k-in.co.jp\/niwakan\/wp-json\/wp\/v2\/posts\/10303\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.k-in.co.jp\/niwakan\/wp-json\/wp\/v2\/media?parent=10303"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.k-in.co.jp\/niwakan\/wp-json\/wp\/v2\/categories?post=10303"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.k-in.co.jp\/niwakan\/wp-json\/wp\/v2\/tags?post=10303"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}