{"id":128,"date":"2006-01-14T12:38:28","date_gmt":"2006-01-14T16:38:28","guid":{"rendered":"http:\/\/www.dr-chuck.com\/wordpress\/?p=128"},"modified":"2011-12-17T12:19:05","modified_gmt":"2011-12-17T16:19:05","slug":"notes-on-bootstrapping-a-mac-desktop-to-be-a-server","status":"publish","type":"post","link":"https:\/\/www.dr-chuck.com\/csev-blog\/2006\/01\/notes-on-bootstrapping-a-mac-desktop-to-be-a-server\/","title":{"rendered":"Notes on Bootstrapping a Mac Desktop to be a server"},"content":{"rendered":"<p>Some of the little bits of Mac setup as I retired my home Linux server and made my Mac Desktop also my server.<\/p>\n<p><!--more--><\/p>\n<h4>Moving ssh to a new port<\/h4>\n<p>None of these matter.<br \/>\n\/etc\/sshd_config<br \/>\nSSHD is started from xinetd<br \/>\n\/etc\/inetd.conf<br \/>\nMac uses xinetd<br \/>\n\/etc\/xinetd.conf<br \/>\n\/etc\/xinetd.d\/ssh<br \/>\nThis does not specify the port because xinetd is doing the listening and by the time it starts sshd, the port is already established.<br \/>\nSo where does it do it?<br \/>\n\/etc\/services:<br \/>\nssh              1222\/udp     # SSH Remote Login Protocol<br \/>\nssh              1222\/tcp     # SSH Remote Login Protocol<\/p>\n<h3> Moving the Apache DocumentRoot<\/h3>\n<p>\/etc\/httpd\/httpd.conf:<br \/>\nPort 8081<br \/>\nDocumentRoot &#8220;\/Users\/csev\/www&#8221;<br \/>\n&lt;Directory &#8220;\/Users\/csev\/www&#8221;><\/p>\n<h4>Turning on PHP in Apache<\/h4>\n<p>\/etc\/httpd\/httpd.conf:<br \/>\nUncomment:<br \/>\nLoadModule php4_module libexec\/httpd\/libphp4.so<br \/>\nAddModule mod_php4.c<br \/>\nhttp:\/\/www.sanbeiji.com\/tech\/tutorials\/php\/index.php<\/p>\n<h4>Turning on Apache and SSH<\/h4>\n<p>Apple-> System Preferences-> Sharing<br \/>\nCheck &#8220;Remote Login&#8221; (ssh) and &#8220;Personal Web Sharing&#8221; (apache)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Some of the little bits of Mac setup as I retired my home Linux server and made my Mac Desktop also my server.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-128","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.dr-chuck.com\/csev-blog\/wp-json\/wp\/v2\/posts\/128","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dr-chuck.com\/csev-blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dr-chuck.com\/csev-blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dr-chuck.com\/csev-blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dr-chuck.com\/csev-blog\/wp-json\/wp\/v2\/comments?post=128"}],"version-history":[{"count":1,"href":"https:\/\/www.dr-chuck.com\/csev-blog\/wp-json\/wp\/v2\/posts\/128\/revisions"}],"predecessor-version":[{"id":2221,"href":"https:\/\/www.dr-chuck.com\/csev-blog\/wp-json\/wp\/v2\/posts\/128\/revisions\/2221"}],"wp:attachment":[{"href":"https:\/\/www.dr-chuck.com\/csev-blog\/wp-json\/wp\/v2\/media?parent=128"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dr-chuck.com\/csev-blog\/wp-json\/wp\/v2\/categories?post=128"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dr-chuck.com\/csev-blog\/wp-json\/wp\/v2\/tags?post=128"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}