{"id":8383,"date":"2024-08-30T22:58:21","date_gmt":"2024-08-30T13:58:21","guid":{"rendered":"http:\/\/umezawa.dyndns.info\/wordpress\/?p=8383"},"modified":"2024-08-31T02:08:26","modified_gmt":"2024-08-30T17:08:26","slug":"debian-ubuntu-%e3%81%a7-apache-%e3%82%92%e3%83%95%e3%82%a9%e3%82%a2%e3%82%b0%e3%83%a9%e3%82%a6%e3%83%b3%e3%83%89%e5%ae%9f%e8%a1%8c%e3%81%99%e3%82%8b","status":"publish","type":"post","link":"http:\/\/umezawa.dyndns.info\/wordpress\/?p=8383","title":{"rendered":"Debian\/Ubuntu \u3067 Apache \u3092\u30d5\u30a9\u30a2\u30b0\u30e9\u30a6\u30f3\u30c9\u5b9f\u884c\u3059\u308b"},"content":{"rendered":"<p>Apache httpd \u3092\u30d5\u30a9\u30a2\u30b0\u30e9\u30a6\u30f3\u30c9\u5b9f\u884c\u3059\u308b\u306b\u306f <code>-DFOREGROUND<\/code> \u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u4ed8\u3051\u307e\u3059\u3002\u3057\u304b\u3057\u3001Debian\/Ubuntu \u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u306b\u5165\u3063\u3066\u3044\u308b\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u305d\u306e\u307e\u307e\u3060\u3068\u3053\u308c\u3060\u3051\u3067\u306f\u3046\u307e\u304f\u52d5\u304d\u307e\u305b\u3093\u3002<\/p>\n<p><!--more--><\/p>\n<blockquote>\n<pre>\r\n# apache2 -DFOREGROUND\r\n[Fri Aug 30 13:48:20.314938 2024] [core:warn] [pid 32:tid 32] AH00111: Config variable ${APACHE_RUN_DIR} is not defined\r\napache2: Syntax error on line 80 of \/etc\/apache2\/apache2.conf: DefaultRuntimeDir must be a valid directory, absolute or relative to ServerRoot\r\n#\r\n<\/pre>\n<\/blockquote>\n<p>\u78ba\u304b\u306b\u4f55\u304b\u66f8\u3044\u3066\u3042\u308a\u307e\u3059\u3002<\/p>\n<blockquote>\n<pre>\r\n# grep -n APACHE_RUN_DIR \/etc\/apache2\/apache2.conf\r\n80:DefaultRuntimeDir ${APACHE_RUN_DIR}\r\n#\r\n<\/pre>\n<\/blockquote>\n<p>\u3053\u306e\u74b0\u5883\u5909\u6570\u306f \/etc\/apache2\/envvars \u306b\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\u5f62\u5f0f\u3067\u66f8\u3044\u3066\u3042\u308a\u307e\u3059\u3002<\/p>\n<blockquote>\n<pre>\r\n# cat \/etc\/apache2\/envvars\r\n# envvars - default environment variables for apache2ctl\r\n\uff08\u4e2d\u7565\uff09\r\nexport APACHE_RUN_DIR=\/var\/run\/apache2$SUFFIX\r\n\uff08\u4ee5\u4e0b\u7565\uff09\r\n<\/pre>\n<\/blockquote>\n<p>\u3068\u3044\u3046\u308f\u3051\u3067\u3001\u30d5\u30a9\u30a2\u30b0\u30e9\u30a6\u30f3\u30c9\u5b9f\u884c\u3059\u308b\u306b\u306f\u3053\u3053\u304b\u3089\u74b0\u5883\u5909\u6570\u3092\u8aad\u3093\u3067\u304a\u3051\u3070\u3088\u3044\u3067\u3059\u3002<\/p>\n<blockquote>\n<pre>\r\n# . \/etc\/apache2\/envvars && apache2 -DFOREGROUND\r\n<\/pre>\n<\/blockquote>\n<p>\u3042\u308b\u3044\u306f\u3001apachectl \u3092\u4f7f\u3044\u305f\u3044\u5834\u5408\u306f\u3001<\/p>\n<blockquote>\n<pre>\r\n# APACHE_STARTED_BY_SYSTEMD=false APACHE_ARGUMENTS=\"-DFOREGROUND\" apachectl start\r\n<\/pre>\n<\/blockquote>\n<p>\u3061\u306a\u307f\u306b\u79c1\u306f\u5b9f\u969b\u306b\u306f exec \u3057\u305f\u304b\u3063\u305f\u306e\u3067\u3059\u304c\u3001 apachectl \u3092\u4f7f\u3046\u5834\u5408\u3067\u3082 APACHE_HTTPD \u74b0\u5883\u5909\u6570\u3092\u4e0e\u3048\u308c\u3070\u3067\u304d\u307e\u3059\u3002<\/p>\n<blockquote>\n<pre>\r\n# APACHE_HTTPD=\"exec \/usr\/sbin\/apache2\" APACHE_STARTED_BY_SYSTEMD=false APACHE_ARGUMENTS=\"-DFOREGROUND\" exec apachectl start\r\n<\/pre>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>Apache httpd \u3092\u30d5\u30a9\u30a2\u30b0\u30e9\u30a6\u30f3\u30c9\u5b9f\u884c\u3059\u308b\u306b\u306f -DFOREGROUND \u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u4ed8\u3051\u307e\u3059\u3002\u3057\u304b\u3057\u3001Debian\/Ubuntu \u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u306b\u5165\u3063\u3066\u3044\u308b\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u305d\u306e\u307e\u307e\u3060\u3068\u3053\u308c\u3060\u3051\u3067\u306f\u3046\u307e\u304f\u52d5\u304d\u307e\u305b\u3093\u3002<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[27],"tags":[],"class_list":["post-8383","post","type-post","status-publish","format-standard","hentry","category-technology"],"_links":{"self":[{"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/8383","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=8383"}],"version-history":[{"count":7,"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/8383\/revisions"}],"predecessor-version":[{"id":8390,"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/8383\/revisions\/8390"}],"wp:attachment":[{"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=8383"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=8383"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=8383"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}