{"id":543,"date":"2011-09-15T12:01:57","date_gmt":"2011-09-15T22:01:57","guid":{"rendered":"http:\/\/mymonkeydo.com\/?p=543"},"modified":"2023-07-05T21:42:56","modified_gmt":"2023-07-06T07:42:56","slug":"mac-os-x-linux-stuff","status":"publish","type":"post","link":"https:\/\/mymonkeydo.com\/mac-os-x-linux-stuff\/","title":{"rendered":"Mac OS X Linux Stuff"},"content":{"rendered":"

Locations and commands on the Mac OS X vs any other Linux\/Unix system are different.  Below are some of the locations and commands I ran across in setting up my macbook as a webserver.<\/p>\n

apache2 is located in<\/h2>\n
\/etc\/apache2\/<\/pre>\n

Along with the httpd.conf:<\/h2>\n
\/etc\/apache2\/httpd.conf<\/pre>\n

By default apache2 logs are located at:<\/h2>\n
\/var\/log\/apache2<\/pre>\n

By default files in the root directory are at:<\/h2>\n
\/Library\/WebServer\/Documents\/<\/pre>\n

To restart apache:<\/h2>\n
sudo \/usr\/sbin\/apachectl restart<\/pre>\n

or<\/p>\n

sudo apachectl -k restart<\/pre>\n

To Enable PHP, in httpd.conf remove the ‘#’ from this line:<\/h2>\n
#LoadModule php5_module        libexec\/apache2\/libphp5.so<\/pre>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_genesis_hide_title":false,"_genesis_hide_breadcrumbs":false,"_genesis_hide_singular_image":false,"_genesis_hide_footer_widgets":false,"_genesis_custom_body_class":"","_genesis_custom_post_class":"","_genesis_layout":"","footnotes":""},"categories":[6],"tags":[9,43,45,54],"yoast_head":"\nMac OS X Linux Stuff - My Monkey Do<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/mymonkeydo.com\/mac-os-x-linux-stuff\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Mac OS X Linux Stuff - My Monkey Do\" \/>\n<meta property=\"og:url\" content=\"https:\/\/mymonkeydo.com\/mac-os-x-linux-stuff\/\" \/>\n<meta property=\"og:site_name\" content=\"My Monkey Do\" \/>\n<meta property=\"article:published_time\" content=\"2011-09-15T22:01:57+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-07-06T07:42:56+00:00\" \/>\n<meta name=\"author\" content=\"Webhead\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Webhead\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/mymonkeydo.com\/mac-os-x-linux-stuff\/\",\"url\":\"https:\/\/mymonkeydo.com\/mac-os-x-linux-stuff\/\",\"name\":\"Mac OS X Linux Stuff - My Monkey Do\",\"isPartOf\":{\"@id\":\"https:\/\/mymonkeydo.com\/#website\"},\"datePublished\":\"2011-09-15T22:01:57+00:00\",\"dateModified\":\"2023-07-06T07:42:56+00:00\",\"author\":{\"@id\":\"https:\/\/mymonkeydo.com\/#\/schema\/person\/b16fc650a8c182faaac896bab099b829\"},\"breadcrumb\":{\"@id\":\"https:\/\/mymonkeydo.com\/mac-os-x-linux-stuff\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/mymonkeydo.com\/mac-os-x-linux-stuff\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/mymonkeydo.com\/mac-os-x-linux-stuff\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/mymonkeydo.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Mac OS X Linux Stuff\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/mymonkeydo.com\/#website\",\"url\":\"https:\/\/mymonkeydo.com\/\",\"name\":\"My Monkey Do\",\"description\":\"A Log of Coding Solutions\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/mymonkeydo.com\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/mymonkeydo.com\/#\/schema\/person\/b16fc650a8c182faaac896bab099b829\",\"name\":\"Webhead\",\"url\":\"https:\/\/mymonkeydo.com\/author\/corey\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Mac OS X Linux Stuff - My Monkey Do","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/mymonkeydo.com\/mac-os-x-linux-stuff\/","og_locale":"en_US","og_type":"article","og_title":"Mac OS X Linux Stuff - My Monkey Do","og_url":"https:\/\/mymonkeydo.com\/mac-os-x-linux-stuff\/","og_site_name":"My Monkey Do","article_published_time":"2011-09-15T22:01:57+00:00","article_modified_time":"2023-07-06T07:42:56+00:00","author":"Webhead","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Webhead","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/mymonkeydo.com\/mac-os-x-linux-stuff\/","url":"https:\/\/mymonkeydo.com\/mac-os-x-linux-stuff\/","name":"Mac OS X Linux Stuff - My Monkey Do","isPartOf":{"@id":"https:\/\/mymonkeydo.com\/#website"},"datePublished":"2011-09-15T22:01:57+00:00","dateModified":"2023-07-06T07:42:56+00:00","author":{"@id":"https:\/\/mymonkeydo.com\/#\/schema\/person\/b16fc650a8c182faaac896bab099b829"},"breadcrumb":{"@id":"https:\/\/mymonkeydo.com\/mac-os-x-linux-stuff\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/mymonkeydo.com\/mac-os-x-linux-stuff\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/mymonkeydo.com\/mac-os-x-linux-stuff\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/mymonkeydo.com\/"},{"@type":"ListItem","position":2,"name":"Mac OS X Linux Stuff"}]},{"@type":"WebSite","@id":"https:\/\/mymonkeydo.com\/#website","url":"https:\/\/mymonkeydo.com\/","name":"My Monkey Do","description":"A Log of Coding Solutions","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/mymonkeydo.com\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/mymonkeydo.com\/#\/schema\/person\/b16fc650a8c182faaac896bab099b829","name":"Webhead","url":"https:\/\/mymonkeydo.com\/author\/corey\/"}]}},"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/mymonkeydo.com\/wp-json\/wp\/v2\/posts\/543"}],"collection":[{"href":"https:\/\/mymonkeydo.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mymonkeydo.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mymonkeydo.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mymonkeydo.com\/wp-json\/wp\/v2\/comments?post=543"}],"version-history":[{"count":1,"href":"https:\/\/mymonkeydo.com\/wp-json\/wp\/v2\/posts\/543\/revisions"}],"predecessor-version":[{"id":1563,"href":"https:\/\/mymonkeydo.com\/wp-json\/wp\/v2\/posts\/543\/revisions\/1563"}],"wp:attachment":[{"href":"https:\/\/mymonkeydo.com\/wp-json\/wp\/v2\/media?parent=543"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mymonkeydo.com\/wp-json\/wp\/v2\/categories?post=543"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mymonkeydo.com\/wp-json\/wp\/v2\/tags?post=543"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}