{"id":351,"date":"2009-10-30T23:15:23","date_gmt":"2009-10-31T04:15:23","guid":{"rendered":"http:\/\/24.183.55.167:8101\/wordpress\/?p=351"},"modified":"2012-08-14T20:51:50","modified_gmt":"2012-08-15T01:51:50","slug":"installing-apache-on-snow-leopard-os-x-10-6","status":"publish","type":"post","link":"https:\/\/icesquare.com\/wordpress\/installing-apache-on-snow-leopard-os-x-10-6\/","title":{"rendered":"Installing Apache on Snow Leopard (OS X 10.6)"},"content":{"rendered":"<p>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.<\/p>\n<p>Finally, I built the Apache from source, and it worked!<\/p>\n<p>Grep Apache from <a href=\"http:\/\/httpd.apache.org\/download.cgi\" target=\"_blank\">here<\/a>.<\/p>\n<p>Download the file, where the link should look something like:<\/p>\n<p>Unix Source:  <a href=\"http:\/\/www.takeyellow.com\/apachemirror\/httpd\/httpd-2.2.14.tar.gz\" target=\"_blank\">httpd-2.2.14.tar.gz<\/a><\/p>\n<p>Run the following command in terminal:<\/p>\n<pre>tar -zxvf httpd-2.2.14.tar.gz\r\n\r\ncd httpd-2.2.14\r\n\r\n.\/configure\r\n\r\nmake\r\n\r\nsudo make install\r\n<\/pre>\n<p>That&#8217;s it! Now, let&#8217;s test the webserver.<\/p>\n<p>First, let&#8217;s disable the Apache that shipped with the OS X (Not the one you just install!). You can simply do it by going to:<\/p>\n<p><b>System Preferences -> Sharing -> Web Sharing<\/b><\/p>\n<p>Go back to Terminal. Make sure the default web server is not running:<\/p>\n<pre>\r\nsudo apachectl stop\r\n<\/pre>\n<p>Now, let&#8217;s verify the installations:<\/p>\n<pre>\r\n\/usr\/local\/apache2\/bin\/apachectl -v\r\n<\/pre>\n<p>You should see something like this:<\/p>\n<pre>\r\nServer version: Apache\/2.2.14 (Unix)\r\nServer built:   Oct 24 2009 20:53:45\r\n<\/pre>\n<p>Now, let&#8217;s start the web server:<\/p>\n<pre>\r\nsudo \/usr\/local\/apache2\/bin\/apachectl start\r\n<\/pre>\n<p>Open your browsers and access to http:\/\/localhost\/.<br \/>\nYou should see something like:<\/p>\n<p><b>It works!<\/b><\/p>\n<p>Have fun!<\/p>\n<p>&#8211;Derrick<\/p>\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>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, <a class=\"more-link\" href=\"https:\/\/icesquare.com\/wordpress\/installing-apache-on-snow-leopard-os-x-10-6\/\">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":[144,6],"tags":[8,12],"class_list":["post-351","post","type-post","status-publish","format-standard","hentry","category-sever-problem","category-technology","tag-apache","tag-os-x"],"jetpack_publicize_connections":[],"jetpack_shortlink":"https:\/\/wp.me\/p1sqzr-5F","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":31,"url":"https:\/\/icesquare.com\/wordpress\/installing-apache-php-mysql-and-memcached-on-freebsd\/","url_meta":{"origin":351,"position":0},"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":41,"url":"https:\/\/icesquare.com\/wordpress\/installing-apache-php-mysql-and-memcached-on-os-x\/","url_meta":{"origin":351,"position":1},"title":"Installing Apache, PHP, MySQL and MemCached on OS X","author":"Derrick","date":"May 19, 2009","format":false,"excerpt":"This is my note on how to to install Apache, PHP and MySQL on a an OS X box. Although some of these applications are come with the operating systems, it is always good to know how to upgrade them to the latest version. 1. Apple Developer Tools and Mac\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":1561,"url":"https:\/\/icesquare.com\/wordpress\/apache-wont-start-after-upgrading-to-2-2-21-in-freebsd-8-2\/","url_meta":{"origin":351,"position":2},"title":"Apache won&#8217;t start after upgrading to 2.2.21 in FreeBSD 8.2","author":"Derrick","date":"September 15, 2011","format":false,"excerpt":"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't know that it becomes a small headache today morning. The upgrade was running smooth, no error messages, no complaints, until I restart the Apache server\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":"\/wordpress\/wp-content\/uploads\/2011\/09\/connectionReset.png","width":350,"height":200,"srcset":"\/wordpress\/wp-content\/uploads\/2011\/09\/connectionReset.png 1x, \/wordpress\/wp-content\/uploads\/2011\/09\/connectionReset.png 1.5x"},"classes":[]},{"id":3539,"url":"https:\/\/icesquare.com\/wordpress\/freebsdshared-object-libaprutil-1-so-5-not-found-required-by-httpd\/","url_meta":{"origin":351,"position":3},"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":3514,"url":"https:\/\/icesquare.com\/wordpress\/freebsdphp-does-not-work-after-upgrading-apache-to-2-2-27\/","url_meta":{"origin":351,"position":4},"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":3883,"url":"https:\/\/icesquare.com\/wordpress\/mysql-random-error-error-2013-hy000-lost-connection-to-mysql-server-at-reading-authorization-packet-system-error-0\/","url_meta":{"origin":351,"position":5},"title":"MySQL Random Error: ERROR 2013 (HY000): Lost connection to MySQL server at &#8216;reading authorization packet&#8217;, system error: 0","author":"Derrick","date":"December 6, 2014","format":false,"excerpt":"Recently, I am experiencing a weird error when connecting to a MySQL server remotely: ERROR 2013 (HY000): Lost connection to MySQL server at 'reading authorization packet', system error: 0 Basically, this error is similar to the busy tone when you are making calls. The key thing is, it happens randomly.\u2026","rel":"","context":"In &quot;Everyday Computer Problem&quot;","block_context":{"text":"Everyday Computer Problem","link":"https:\/\/icesquare.com\/wordpress\/category\/everyday-computer-problem\/"},"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\/351","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=351"}],"version-history":[{"count":12,"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/posts\/351\/revisions"}],"predecessor-version":[{"id":2928,"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/posts\/351\/revisions\/2928"}],"wp:attachment":[{"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/media?parent=351"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/categories?post=351"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/tags?post=351"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}