{"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
\/etc\/apache2\/<\/pre>\nAlong with the httpd.conf:<\/h2>\n
\/etc\/apache2\/httpd.conf<\/pre>\nBy default apache2 logs are located at:<\/h2>\n
\/var\/log\/apache2<\/pre>\nBy default files in the root directory are at:<\/h2>\n
\/Library\/WebServer\/Documents\/<\/pre>\nTo restart apache:<\/h2>\n
sudo \/usr\/sbin\/apachectl restart<\/pre>\nor<\/p>\n
sudo apachectl -k restart<\/pre>\nTo 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\n\n\n\n\n\n\n\n\n\n\n\n\t\n\t\n\t\n