{"id":1561,"date":"2011-09-15T09:47:22","date_gmt":"2011-09-15T14:47:22","guid":{"rendered":"http:\/\/icesquare.com\/wordpress\/?p=1561"},"modified":"2011-12-28T15:31:56","modified_gmt":"2011-12-28T21:31:56","slug":"apache-wont-start-after-upgrading-to-2-2-21-in-freebsd-8-2","status":"publish","type":"post","link":"https:\/\/icesquare.com\/wordpress\/apache-wont-start-after-upgrading-to-2-2-21-in-freebsd-8-2\/","title":{"rendered":"Apache won&#8217;t start after upgrading to 2.2.21 in FreeBSD 8.2"},"content":{"rendered":"<p>Apache 2.2.21 was rolled out today. Since it has some security fixes, I decide to put a new version on my server farm. I didn&#8217;t know that it becomes a small headache today morning.<\/p>\n<p>The upgrade was running smooth, no error messages, no complaints, until I restart the Apache server manually<\/p>\n<pre>\r\nsudo apachectl restart\r\n<\/pre>\n<p>And guess what, my website didn&#8217;t show up on the browser. Instead, I saw the following picture on my browser:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"694\" height=\"316\" data-attachment-id=\"1562\" data-permalink=\"https:\/\/icesquare.com\/wordpress\/apache-wont-start-after-upgrading-to-2-2-21-in-freebsd-8-2\/connectionreset\/#main\" data-orig-file=\"https:\/\/icesquare.com\/wordpress\/wp-content\/uploads\/2011\/09\/connectionReset.png\" data-orig-size=\"694,316\" data-comments-opened=\"1\" data-image-title=\"The connection was reset\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/icesquare.com\/wordpress\/wp-content\/uploads\/2011\/09\/connectionReset.png\" src=\"\/wordpress\/wp-content\/uploads\/2011\/09\/connectionReset.png\" title=\"The connection was reset\" class=\"aligncenter size-full wp-image-1562\" srcset=\"https:\/\/icesquare.com\/wordpress\/wp-content\/uploads\/2011\/09\/connectionReset.png 694w, https:\/\/icesquare.com\/wordpress\/wp-content\/uploads\/2011\/09\/connectionReset-300x136.png 300w\" sizes=\"auto, (max-width: 694px) 100vw, 694px\" \/><\/p>\n<p>That was not fun at all. So I decided to investigate what was wrong to the upgrade.<\/p>\n<pre>\r\nsudo tail \/var\/log\/httpd-error.log\r\n<\/pre>\n<p>And I found something interesting:<\/p>\n<pre>\r\nhttpd: Syntax error on line 100 of \/usr\/local\/etc\/apache22\/httpd.conf:\r\nCannot load \/usr\/local\/libexec\/apache22\/mod_negotiation.so into server:\r\n\/usr\/local\/libexec\/apache22\/mod_negotiation.so: Undefined symbol \"ap_set_accept_ranges\"\r\n<\/pre>\n<p>Therefore, I edited my Apache configuration and commented out that module:<\/p>\n<pre>\r\n#LoadModule negotiation_module libexec\/apache22\/mod_negotiation.so\r\n<\/pre>\n<p>Saved the file and restarted the server again. Now the problem is gone!<\/p>\n<pre>\r\nsudo apachectl stop\r\nsudo apachectl start\r\n<\/pre>\n<p>When I tried to visited the website again, I found that the speed is bit slow. I think it has something to do with the mod_negotiation.so. I decided to rebuild the Apache.<\/p>\n<pre>\r\ncd \/usr\/ports\/www\/apache22\r\nsudo make config\r\n<\/pre>\n<p>Make sure that the Negotiation: <strong>Enable mod_negotiation<\/strong> is checked.<\/p>\n<pre>\r\nsudo make\r\n<\/pre>\n<p>Running <strong>sudo make<\/strong> is enough. You don&#8217;t need to re-run <strong>sudo make install<\/strong> or <strong>sudo make reinstall<\/strong>.<\/p>\n<p>This will rebuild the necessary libraries including the missing mod_negotiation.so.<\/p>\n<p>Go back to the configuration file and enable the module again:<\/p>\n<pre>\r\nLoadModule negotiation_module libexec\/apache22\/mod_negotiation.so\r\n<\/pre>\n<p>Restart the server:<\/p>\n<pre>\r\nsudo apachectl restart\r\n<\/pre>\n<p>That&#8217;s it! Happy Apaching!<\/p>\n<p>&#8211;Derrick<br \/>\n<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Apache 2.2.21 was rolled out today. Since it has some security fixes, I decide to put a new version on my server farm. I didn&#8217;t know that it becomes a <a class=\"more-link\" href=\"https:\/\/icesquare.com\/wordpress\/apache-wont-start-after-upgrading-to-2-2-21-in-freebsd-8-2\/\">Continue Reading &rarr;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_hide_featured_image":false,"_jetpack_featured_image_duplicate_dismissed":0,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[94,7,144,6,69],"tags":[8],"class_list":["post-1561","post","type-post","status-publish","format-standard","hentry","category-computer-problems-computer-help-pc-support","category-freebsd","category-sever-problem","category-technology","category-troubleshooting-technology","tag-apache"],"jetpack_publicize_connections":[],"jetpack_shortlink":"https:\/\/wp.me\/p1sqzr-pb","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":3539,"url":"https:\/\/icesquare.com\/wordpress\/freebsdshared-object-libaprutil-1-so-5-not-found-required-by-httpd\/","url_meta":{"origin":1561,"position":0},"title":"[FreeBSD]Shared object &#8220;libaprutil-1.so.5&#8221; not found, required by &#8220;httpd&#8221;","author":"Derrick","date":"June 11, 2014","format":false,"excerpt":"I upgraded the Apache to 2.2.27 on my FreeBSD box via portmaster. The upgrade went very smooth. After the upgrade, I decide to test the Apache by restarting the server. Oh well, I got the following error message: [FreeBSD]Shared object \"libaprutil-1.so.5\" not found, required by \"httpd\" Oh well, looks like\u2026","rel":"","context":"In &quot;Computer Problems&quot;","block_context":{"text":"Computer Problems","link":"https:\/\/icesquare.com\/wordpress\/category\/technology\/computer-problems-computer-help-pc-support\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":31,"url":"https:\/\/icesquare.com\/wordpress\/installing-apache-php-mysql-and-memcached-on-freebsd\/","url_meta":{"origin":1561,"position":1},"title":"Installing Apache, PHP, MySQL and MemCached on FreeBSD","author":"Derrick","date":"May 19, 2009","format":false,"excerpt":"This is my note on how to to install Apache, PHP, MySQL and MemCached on a FreeBSD 7 Box. 1. MySQL Go to the mysql52-server port directory by typing the command: cd \/usr\/ports\/databases\/mysql51-server Build the port by typing: make BUILD_OPTIMIZED=yes BUILD_STATIC=yes Using these two options will speed up the execution\u2026","rel":"","context":"In &quot;FreeBSD&quot;","block_context":{"text":"FreeBSD","link":"https:\/\/icesquare.com\/wordpress\/category\/sever-problem\/freebsd\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":3925,"url":"https:\/\/icesquare.com\/wordpress\/freebsdupgrade-php-5-5-to-5-6\/","url_meta":{"origin":1561,"position":2},"title":"[FreeBSD]Upgrade PHP 5.5 to 5.6","author":"Derrick","date":"February 20, 2015","format":false,"excerpt":"It is not easy to upgrade PHP 5.5 to 5.6 in FreeBSD. Without proper preparation, the upgrade process may drive you nut. Before you decide to get your hands wet, here are what I recommend you to do: Back up your files Test your website in a PHP 5.6 environment\u2026","rel":"","context":"In &quot;Computer Problems&quot;","block_context":{"text":"Computer Problems","link":"https:\/\/icesquare.com\/wordpress\/category\/technology\/computer-problems-computer-help-pc-support\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":3514,"url":"https:\/\/icesquare.com\/wordpress\/freebsdphp-does-not-work-after-upgrading-apache-to-2-2-27\/","url_meta":{"origin":1561,"position":3},"title":"[FreeBSD]PHP does not work after upgrading Apache to 2.2.27","author":"Derrick","date":"April 11, 2014","format":false,"excerpt":"I upgraded the Apache to 2.2.27 on my FreeBSD box via portmaster. The upgrade went very smooth. After the upgrade, I found that Apache no longer rendered the PHP page correctly. In the other words, it displayed the source code of the PHP files instead of executing the code. Before\u2026","rel":"","context":"In &quot;Computer Problems&quot;","block_context":{"text":"Computer Problems","link":"https:\/\/icesquare.com\/wordpress\/category\/technology\/computer-problems-computer-help-pc-support\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":351,"url":"https:\/\/icesquare.com\/wordpress\/installing-apache-on-snow-leopard-os-x-10-6\/","url_meta":{"origin":1561,"position":4},"title":"Installing Apache on Snow Leopard (OS X 10.6)","author":"Derrick","date":"October 30, 2009","format":false,"excerpt":"The Apache web server comes with the OS X is a bit out dated. So I decided to install a new one. After I tried installing it using mac port, it kept giving error. Finally, I built the Apache from source, and it worked! Grep Apache from here. Download the\u2026","rel":"","context":"In &quot;Server Problems&quot;","block_context":{"text":"Server Problems","link":"https:\/\/icesquare.com\/wordpress\/category\/sever-problem\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":3309,"url":"https:\/\/icesquare.com\/wordpress\/sftp-without-ssh-shell-access-2\/","url_meta":{"origin":1561,"position":5},"title":"SFTP Without SSH Shell Access","author":"Derrick","date":"October 7, 2013","format":false,"excerpt":"I got an interesting question today. Our client needs to access to the server via SFTP, but they want to disable to the access to the SSH shell. Assuming that you are fully aware of the potential issues of doing it, such ask security risk etc, here is how to\u2026","rel":"","context":"In &quot;Computer Problems&quot;","block_context":{"text":"Computer Problems","link":"https:\/\/icesquare.com\/wordpress\/category\/technology\/computer-problems-computer-help-pc-support\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/posts\/1561","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/comments?post=1561"}],"version-history":[{"count":12,"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/posts\/1561\/revisions"}],"predecessor-version":[{"id":2365,"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/posts\/1561\/revisions\/2365"}],"wp:attachment":[{"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/media?parent=1561"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/categories?post=1561"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/tags?post=1561"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}