{"id":243,"date":"2011-11-04T11:37:10","date_gmt":"2011-11-04T04:37:10","guid":{"rendered":"http:\/\/masrifqi.staff.ugm.ac.id\/?p=243"},"modified":"2014-03-06T16:09:50","modified_gmt":"2014-03-06T09:09:50","slug":"troubleshooting-apache-di-freebsd","status":"publish","type":"post","link":"http:\/\/masrifqi.staff.ugm.ac.id\/index.php\/2011\/11\/troubleshooting-apache-di-freebsd\/","title":{"rendered":"Troubleshooting Apache di FreeBSD"},"content":{"rendered":"<h4>Troubleshooting Apache di FreeBSD<\/h4>\n<p>Ini hanya sekedar catatan beberapa permasalahan dan solusi pada instalasi Apache di sistem operasi FreeBSD yang pernah saya temui, siapa tau ada yang menemukan masalah yang sama kan bisa jadi contekan :D, atau malah saya sendiri yang ketemu lagi *lhoh*, biar nggak lupa jadi mending di tulisa saja.<!--more--><\/p>\n<p>Error\u00a0authz_host_module dengan error berikut<br \/>\n<code><br \/>\nSyntax error on line 73 of \/usr\/local\/apache2\/conf\/httpd.conf:<br \/>\nInvalid command 'Order', perhaps mis-spelled or defined by a module not included<br \/>\nin the server configuration<\/code><br \/>\nSolusinya, aktifkan modul authz_host_module di file config apache<br \/>\n<code><br \/>\nLoadModule authz_host_module modules\/mod_authz_host.so<br \/>\n<\/code><br \/>\nJika versi apache 2.0.x solusinya aktifkan mod_access berikut<br \/>\n<code><br \/>\nLoadModule access_module modules\/mod_access.so<br \/>\n<\/code><\/p>\n<p>Error http Accept Filter, dengan pesan error berikut<br \/>\n<code><br \/>\nhttpd not running, trying to start<br \/>\n[Thu Jan 06 11:35:46 2011] [warn] (2)No such file or directory: Failed to enable the 'httpready' Accept Filter<br \/>\n<\/code><br \/>\nError di atas di sebabkan karena modul &#8220;accf_http&#8221;, berikut penjelasan mengenai modul accf_http<\/p>\n<blockquote><p>This is a filter to be placed on a socket that will be using accept() to receive incoming HTTP connections. It prevents the application from receiving the connected descriptor via accept() until either a full HTTP\/1.0 or HTTP\/1.1 HEAD or GET request has been buffered by the kernel. If something other than a HTTP\/1.0 or HTTP\/1.1 HEAD or GET request is received the kernel will allow the application to receive the connection descriptor via accept().<\/p>\n<p>The utility of accf_http is such that a server will not have to context switch several times before performing the initial parsing of the request. This effectively reduces the amount of required CPU utilization to handle incoming requests by keeping active processes in preforking servers such as Apache low and reducing the size of the file descriptor set that needs to be managed by interfaces such as select(), poll() or kevent() based servers.<\/p>\n<p>The accf_http kernel option is also a module that can be enabled at run-time via kldload(8) if the INET option has been compiled into the kernel.<\/p><\/blockquote>\n<p>Solusinya aktifkan modul kernel accf_http menggunakan perintah kldload<br \/>\n<code><br \/>\nkldload accf_http<br \/>\n<\/code><br \/>\nUntuk membuat modul kernel ini otomatis di load ketika komputer booting, maka tambahkan opsi untuk mengaktifkanya pada file \/boot\/loader.conf dengan perintah beriku<br \/>\n<code><br \/>\naccf_http_load=\"YES\"<br \/>\n<\/code><br \/>\nSekian dulu pemirsa, sampai jumpa di lain kesempatan \ud83d\ude42<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Troubleshooting Apache di FreeBSD Ini hanya sekedar catatan beberapa permasalahan dan solusi pada instalasi Apache di sistem operasi FreeBSD yang pernah saya temui, siapa tau ada yang menemukan masalah yang sama kan bisa jadi contekan :D, atau malah saya sendiri &hellip;<\/p>\n<p class=\"read-more\"><a href=\"http:\/\/masrifqi.staff.ugm.ac.id\/index.php\/2011\/11\/troubleshooting-apache-di-freebsd\/\">Read more &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[2],"tags":[],"_links":{"self":[{"href":"http:\/\/masrifqi.staff.ugm.ac.id\/index.php\/wp-json\/wp\/v2\/posts\/243"}],"collection":[{"href":"http:\/\/masrifqi.staff.ugm.ac.id\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/masrifqi.staff.ugm.ac.id\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/masrifqi.staff.ugm.ac.id\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/masrifqi.staff.ugm.ac.id\/index.php\/wp-json\/wp\/v2\/comments?post=243"}],"version-history":[{"count":11,"href":"http:\/\/masrifqi.staff.ugm.ac.id\/index.php\/wp-json\/wp\/v2\/posts\/243\/revisions"}],"predecessor-version":[{"id":730,"href":"http:\/\/masrifqi.staff.ugm.ac.id\/index.php\/wp-json\/wp\/v2\/posts\/243\/revisions\/730"}],"wp:attachment":[{"href":"http:\/\/masrifqi.staff.ugm.ac.id\/index.php\/wp-json\/wp\/v2\/media?parent=243"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/masrifqi.staff.ugm.ac.id\/index.php\/wp-json\/wp\/v2\/categories?post=243"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/masrifqi.staff.ugm.ac.id\/index.php\/wp-json\/wp\/v2\/tags?post=243"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}