{"id":4372,"date":"2018-08-30T13:09:32","date_gmt":"2018-08-30T04:09:32","guid":{"rendered":"http:\/\/tsaitoh.net\/wp\/?p=4372"},"modified":"2018-09-14T19:42:44","modified_gmt":"2018-09-14T10:42:44","slug":"apachectl-graceful-segv","status":"publish","type":"post","link":"https:\/\/tsaitoh.net\/wp\/2018\/08\/30\/apachectl-graceful-segv\/","title":{"rendered":"apachectl graceful \u3067 segmentation fault"},"content":{"rendered":"<p>\u4ee5\u524d\u304b\u3089\u305f\u307e\u306b\u767a\u751f\u3057\u3066\u3044\u305f\u3001\u591c\u4e2d\u306b\u306a\u308b\u3068\u3001Web\u30b5\u30fc\u30d0\u304c\u505c\u6b62\u3059\u308b\u30c8\u30e9\u30d6\u30eb\u3002<\/p>\n<p>\u78ba\u8a8d\u3092\u3059\u308b\u3068\u3001logrotate \u3042\u305f\u308a\u306e cron \u3067\u3001<strong>&#8220;apachectl graceful&#8221;\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001apache2 \u306e\u5b50\u30d7\u30ed\u30bb\u30b9\u304c\u3001segmentation fault<\/strong> \u3067\u843d\u3061\u3066\u3044\u308b\u3002<\/p>\n<p>\u6700\u521d\u306f\u3001\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u306b geoip \u3042\u305f\u308a\u306e\u30e2\u30b8\u30e5\u30fc\u30eb\u306e\u30a8\u30e9\u30fc\u304c\u51fa\u3066\u3044\u305f\u306e\u3067\u3001\u3044\u308d\u3044\u308d\u8abf\u3079\u305f\u3051\u3069\u6539\u5584\u305b\u305a\u3002\u6839\u672c\u306e\u539f\u56e0\u3067\u306f\u306a\u304b\u3063\u305f\u3088\u3046\u3067\u3001\u66f4\u65b0\u3092\u30c0\u30e1\u5143\u3067\u304b\u3051\u3066\u3044\u308b\u3046\u3061\u306b\u51fa\u306a\u304f\u306a\u3063\u305f\u3002<\/p>\n<p>\u4ee5\u524d\u306b\u3001\u540c\u3058\u75c7\u72b6\u3067\u3001 php7.2 \u2192 php7.0 \u306b\u3057\u3066\u3044\u305f\u3051\u3069\u3001\u6539\u3081\u3066\u6700\u65b0\u30d1\u30c3\u30b1\u30fc\u30b8\u306b\u3059\u308b\u305f\u3081\u306b\u3001<strong>\u6700\u65b0\u306e php7.3 \u306b\u5207\u308a\u66ff\u3048\u308b\u3002\u3053\u308c\u306b\u3088\u308a\u3001graceful \u3092\u304b\u3051\u3066\u3082\u3001\u843d\u3061\u306a\u304f\u306a\u3063\u305f\u3002<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\">$ sudo aptitude install php7.3 php7.3-cli php7.3-common\r\n     php7.3-curl php7.3-gd php7.3-imap php7.3-json\r\n     php7.3-mbstring php7.3-mysql\r\n$ sudo a2dismod php7.0\r\n$ sudo a2enmod php7.3\r\n$ sudo \/etc\/init.d\/apache2 restart\r\n<\/pre>\n<p>\u3057\u304b\u3057\u3001\u6700\u65b0\u306e php7.3 \u306b\u3042\u3052\u305f\u3089\u3001wordpress \u306e\u6295\u7a3f\u6642\u306b\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u3002PHP\u306ecompact()\u306e\u8aac\u660e\u306b\u3082\u3001php7.3\u304b\u3089 E_NOTICE \u3092\u51fa\u3059\u3088\u3046\u306b\u306a\u3063\u305f\u3068\u66f8\u3044\u3066\u3042\u308b\u3002<\/p>\n<pre>Notice: compact() : Undefined variable:...\r\n<\/pre>\n<p>\u30a8\u30e9\u30fc\u8b66\u544a\u306f\u6d88\u3057\u305f\u304f\u306a\u3044\u3051\u3069\u3001\u30c7\u30d0\u30c3\u30b0\u30e2\u30fc\u30c9\u3092\u5916\u3059\u3002<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"php\">\/* \/etc\/wordpress\/config-default.php *\/\r\ndefine( 'WP_DEBUG' , false ) ;\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u4ee5\u524d\u304b\u3089\u305f\u307e\u306b\u767a\u751f\u3057\u3066\u3044\u305f\u3001\u591c\u4e2d\u306b\u306a\u308b\u3068\u3001Web\u30b5\u30fc\u30d0\u304c\u505c\u6b62\u3059\u308b\u30c8\u30e9\u30d6\u30eb\u3002 \u78ba\u8a8d\u3092\u3059\u308b\u3068\u3001logrotate \u3042\u305f\u308a\u306e cron \u3067\u3001&#8220;apachectl graceful&#8221;\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001apac [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[36,26],"tags":[181,182],"class_list":["post-4372","post","type-post","status-publish","format-standard","hentry","category-debian","category-linux","tag-apache","tag-php"],"_links":{"self":[{"href":"https:\/\/tsaitoh.net\/wp\/wp-json\/wp\/v2\/posts\/4372","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tsaitoh.net\/wp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tsaitoh.net\/wp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tsaitoh.net\/wp\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tsaitoh.net\/wp\/wp-json\/wp\/v2\/comments?post=4372"}],"version-history":[{"count":0,"href":"https:\/\/tsaitoh.net\/wp\/wp-json\/wp\/v2\/posts\/4372\/revisions"}],"wp:attachment":[{"href":"https:\/\/tsaitoh.net\/wp\/wp-json\/wp\/v2\/media?parent=4372"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tsaitoh.net\/wp\/wp-json\/wp\/v2\/categories?post=4372"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tsaitoh.net\/wp\/wp-json\/wp\/v2\/tags?post=4372"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}