{"id":2568,"date":"2014-09-01T23:54:42","date_gmt":"2014-09-01T15:54:42","guid":{"rendered":"http:\/\/blog.pighead.cc\/whsyu\/?p=2568"},"modified":"2015-02-04T01:45:14","modified_gmt":"2015-02-03T17:45:14","slug":"php-applications-crash-httpd","status":"publish","type":"post","link":"https:\/\/blog.pighead.cc\/whsyu\/2014\/09\/01\/php-applications-crash-httpd\/","title":{"rendered":"\u8dd1 php \u9801\u9762\u8b93 httpd \u7576\u6389"},"content":{"rendered":"<p class=\"bb-post-separator\"><strong>[\u83ef\u8a9e, cmn-Hant-TW]  <\/strong><\/p><p>\u9019\u554f\u984c\u5361\u4e86\u4e00\u6bb5\u6642\u9593\uff0c\u4f46\u662f\u56e0\u70ba\u4e5f\u6c92\u592a\u7dca\u6025\u6240\u4ee5\u5c31\u6709\u7a7a\u7684\u6642\u5019\u624d\u4f86\u770b\u4e00\u4e0b\u554f\u984c\u5728\u54ea\u3002<\/p>\n<p>\u7e3d\u4e4b\u5c31\u662f\u6709\u4e00\u53f0 FreeBSD 11-CURRENT \u5728\u67d0\u6b21\u66f4\u65b0\u4e00\u5806\u5957\u4ef6\u4e4b\u5f8c laravel \u7684\u7279\u5b9a\u64cd\u4f5c\u5c31\u958b\u59cb\u6703\u8b93 httpd \u5403\u00a0segmentation fault \u4e86\u3002\u56e0\u70ba\u6709\u7528\u5230\u4e0d\u5c11\u5957\u4ef6\u6240\u4ee5\u4e00\u5c64\u4e00\u5c64\u7684\u8ffd\u4e0b\u53bb\u767c\u73fe\u662f\u00a0finfo_open() \u9020\u6210\u7684\uff0c\u6703\u7528\u5230\u9019\u500b\u51fd\u5f0f\u53ea\u662f\u8981\u627e\u6a94\u6848\u7684 mime-type \u800c\u5df2\u6240\u4ee5\u4e5f\u6c92\u505a\u592a\u5947\u602a\u7684\u4e8b\u60c5\uff0c\u63a5\u8457\u7528 laravel \u76f4\u63a5\u8dd1\u5167\u5efa\u7684\u4f3a\u670d\u5668\u6a21\u5f0f\u505a\u4e00\u6a23\u7684\u64cd\u4f5c\uff0c\u767c\u73fe\u4e5f\u6703\u5403\u00a0segmentation fault\uff0c\u90a3\u5dee\u4e0d\u591a\u5c31\u78ba\u5b9a\u662f php \u7684\u554f\u984c\u4e86\uff0c\u81ea\u5df1\u5beb\u4e86\u4e00\u500b\u5c0f\u7a0b\u5f0f\u53ea\u547c\u53eb\u9019\u500b\u51fd\u5f0f\uff0c\u7528 cli \u6a21\u5f0f\u8dd1\u4e00\u6a23\u70b8\u6389\uff0c\u7576\u4e0b\u7acb\u523b\u628a\u6240\u6709\u540d\u5b57\u542b php55 \u7684\u5957\u4ef6\u5168\u90e8\u66f4\u65b0\uff0c\u56e0\u70ba php \u8dd1\u5176\u4ed6\u6771\u897f\u90fd\u6c92\u7576\uff0c\u6240\u4ee5\u60f3\u8aaa\u61c9\u8a72\u662f\u67d0\u500b php \u5957\u4ef6\u721b\u6389\uff0c\u56e0\u70ba\u7576\u6389\u8ddf\u5716\u5f62\u64cd\u4f5c\u6709\u95dc\uff0c\u4e00\u5ea6\u9084\u4ee5\u70ba\u662f gd \u9020\u6210\u7684\u3002<\/p>\n<p>\u7d50\u679c\u5168\u90e8\u7528 ports \u91cd\u7de8\u4e4b\u5f8c\u2026 \u7167\u7576\uff0c\u90a3\u554f\u984c\u5c31\u602a\u4e86\uff0c\u9019\u6642\u5019\u5c31\u628a\u53e6\u4e00\u53f0\u66f4\u9592\u7684 FreeBSD 11-CURRENT \u66f4\u65b0\u5230\u6700\u65b0\u540c\u6642\u8dd1 php\u2026 \u5c45\u7136\u6c92\u6709\u7576\uff1f\uff01\u5c0d\u7167\u4e00\u4e0b\u5169\u908a\u51fd\u5f0f\u5eab\u5b89\u88dd\u7684\u76ee\u9304\u624d\u767c\u73fe\u6709\u554f\u984c\u90a3\u53f0\u7684\u76ee\u9304<strong>\u88e1\u9762\u6709 pecl \u5b89\u88dd\u7684\u6771\u897f<\/strong>\uff01\u91cd\u65b0\u7de8\u8b6f\u90a3\u5e7e\u500b\u5957\u4ef6\u4e4b\u5f8c\uff0c\u554f\u984c\u5c31\u89e3\u6c7a\u4e86\u3002<\/p>\n<p>\u6240\u4ee5\u60c5\u6cc1\u5c31\u53ef\u80fd\u662f php \u7684\u66f4\u65b0\u5728\u67d0\u4e9b\u60c5\u6cc1\u4e0b\u6703\u8b93 pecl \u9ce5\u6389\uff0cphp \u5167\u5efa\u76f8\u95dc\u7684\u5957\u4ef6\u56e0\u70ba\u7248\u865f\u662f\u8ddf php \u8dd1\u6240\u4ee5 portupgrade\/portmaster \u6642\u6703\u4e00\u8d77\u66f4\u65b0\uff0c\u4f46\u662f pecl \u7684\u5957\u4ef6\u7248\u865f\u662f\u7368\u7acb\u7684\u6240\u4ee5\u4e0d\u77e5\u9053\u4e5f\u5f97\u4e00\u8d77\u66f4\u65b0\uff0c\u7136\u5f8c\u5c31\u70b8\u4e86\u3002<\/p>\n<p>\u89e3\u6c7a\u65b9\u6848\u7684\u8a71\u561b\u2026 \u5c31\u6bcf\u6b21\u66f4\u65b0\u5b8c php \u8a18\u5f97\u628a\u6709\u5b89\u88dd\u7684 pecl \u5957\u4ef6\u901a\u901a\u66f4\u65b0\u4e00\u6b21\u5427<\/p>\n<h3>2015-02-03 \u66f4\u65b0<\/h3>\n<p>\u53c8\u9047\u5230\u4e86\uff0c\u9019\u6b21\u51fa\u554f\u984c\u7684\u72c0\u6cc1\u662f apache \u6703\u7576\uff0c\u4f46\u662f cli \u5c45\u7136\u6c92\u4e8b\uff0c\u627e\u4e86\u4e00\u4e0b\u6709\u770b\u5230<a href=\"https:\/\/bugs.php.net\/bug.php?id=64836\">\u985e\u4f3c\u7684\u72c0\u6cc1<\/a>\uff0c\u89e3\u6c7a\u65b9\u6cd5\u662f\u4e0d\u8981\u958b dav_svn\uff0c\u628a mod_dav_svn \u79fb\u6389\u5c31\u80fd\u6b63\u5e38\u904b\u4f5c\u4e86\uff0c\u5b8c\u5168\u4e0d\u77e5\u9053\u9019\u5169\u8005\u70ba\u4ec0\u9ebc\u6703\u6709\u95dc\u9023<\/p>\n","protected":false},"excerpt":{"rendered":"<p>[\u83ef\u8a9e, cmn-Hant-TW] \u9019\u554f\u984c\u5361\u4e86\u4e00\u6bb5\u6642\u9593\uff0c\u4f46\u662f\u56e0\u70ba\u4e5f\u6c92\u592a\u7dca\u6025\u6240\u4ee5\u5c31\u6709\u7a7a\u7684\u6642\u5019\u624d\u4f86\u770b\u4e00\u4e0b\u554f\u984c\u5728\u54ea\u3002 \u7e3d\u4e4b\u5c31\u662f\u6709\u4e00\u53f0 FreeBSD 11-CURRENT \u5728\u67d0\u6b21\u66f4\u65b0\u4e00\u5806\u5957\u4ef6\u4e4b\u5f8c laravel \u7684\u7279\u5b9a\u64cd\u4f5c\u5c31\u958b\u59cb\u6703\u8b93 httpd \u5403\u00a0segmentation fault \u4e86\u3002\u56e0\u70ba\u6709\u7528\u5230\u4e0d\u5c11\u5957\u4ef6\u6240\u4ee5\u4e00\u5c64\u4e00\u5c64\u7684\u8ffd\u4e0b\u53bb\u767c\u73fe\u662f\u00a0finfo_open() \u9020\u6210\u7684\uff0c\u6703\u7528\u5230\u9019\u500b\u51fd\u5f0f\u53ea\u662f\u8981\u627e\u6a94\u6848\u7684 mime-type \u800c\u5df2\u6240\u4ee5\u4e5f\u6c92\u505a\u592a\u5947\u602a\u7684\u4e8b\u60c5\uff0c\u63a5\u8457\u7528 laravel \u76f4\u63a5\u8dd1\u5167\u5efa\u7684\u4f3a\u670d\u5668\u6a21\u5f0f\u505a\u4e00\u6a23\u7684\u64cd\u4f5c\uff0c\u767c\u73fe\u4e5f\u6703\u5403\u00a0segmentation fault\uff0c\u90a3\u5dee\u4e0d\u591a\u5c31\u78ba\u5b9a\u662f php \u7684\u554f\u984c\u4e86\uff0c\u81ea\u5df1\u5beb\u4e86\u4e00\u500b\u5c0f\u7a0b\u5f0f\u53ea\u547c\u53eb\u9019\u500b\u51fd\u5f0f\uff0c\u7528 cli \u6a21\u5f0f\u8dd1\u4e00\u6a23\u70b8\u6389\uff0c\u7576\u4e0b\u7acb\u523b\u628a\u6240\u6709\u540d\u5b57\u542b php55 \u7684\u5957\u4ef6\u5168\u90e8\u66f4\u65b0\uff0c\u56e0\u70ba php \u8dd1\u5176\u4ed6\u6771\u897f\u90fd\u6c92\u7576\uff0c\u6240\u4ee5\u60f3\u8aaa\u61c9\u8a72\u662f\u67d0\u500b php \u5957\u4ef6\u721b\u6389\uff0c\u56e0\u70ba\u7576\u6389\u8ddf\u5716\u5f62\u64cd\u4f5c\u6709\u95dc\uff0c\u4e00\u5ea6\u9084\u4ee5\u70ba\u662f gd \u9020\u6210\u7684\u3002 \u7d50\u679c\u5168\u90e8\u7528 ports \u91cd\u7de8\u4e4b\u5f8c\u2026 \u7167\u7576\uff0c\u90a3\u554f\u984c\u5c31\u602a\u4e86\uff0c\u9019\u6642\u5019\u5c31\u628a\u53e6\u4e00\u53f0\u66f4\u9592\u7684 FreeBSD 11-CURRENT \u66f4\u65b0\u5230\u6700\u65b0\u540c\u6642\u8dd1 php\u2026 \u5c45\u7136\u6c92\u6709\u7576\uff1f\uff01\u5c0d\u7167\u4e00\u4e0b\u5169\u908a\u51fd\u5f0f\u5eab\u5b89\u88dd\u7684\u76ee\u9304\u624d\u767c\u73fe\u6709\u554f\u984c\u90a3\u53f0\u7684\u76ee\u9304\u88e1\u9762\u6709&hellip; <\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[13,4591,4566,4262],"class_list":["post-2568","post","type-post","status-publish","format-standard","hentry","category-freebsd","tag-apache","tag-freebsd","tag-laravel","tag-php"],"_links":{"self":[{"href":"https:\/\/blog.pighead.cc\/whsyu\/wp-json\/wp\/v2\/posts\/2568","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.pighead.cc\/whsyu\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.pighead.cc\/whsyu\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.pighead.cc\/whsyu\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.pighead.cc\/whsyu\/wp-json\/wp\/v2\/comments?post=2568"}],"version-history":[{"count":4,"href":"https:\/\/blog.pighead.cc\/whsyu\/wp-json\/wp\/v2\/posts\/2568\/revisions"}],"predecessor-version":[{"id":2626,"href":"https:\/\/blog.pighead.cc\/whsyu\/wp-json\/wp\/v2\/posts\/2568\/revisions\/2626"}],"wp:attachment":[{"href":"https:\/\/blog.pighead.cc\/whsyu\/wp-json\/wp\/v2\/media?parent=2568"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.pighead.cc\/whsyu\/wp-json\/wp\/v2\/categories?post=2568"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.pighead.cc\/whsyu\/wp-json\/wp\/v2\/tags?post=2568"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}