{"id":830,"date":"2020-06-16T00:13:01","date_gmt":"2020-06-16T06:13:01","guid":{"rendered":"http:\/\/www.schwie.com\/brad\/?p=830"},"modified":"2020-06-16T00:22:21","modified_gmt":"2020-06-16T06:22:21","slug":"macos-server-and-port-8080","status":"publish","type":"post","link":"https:\/\/www.schwie.com\/brad\/?p=830","title":{"rendered":"macOS Server and port 8080"},"content":{"rendered":"I\u2019m stubbornly keeping macOS Server on my Mac mini running High Sierra, as I love it\u2019s GUI for controlling server components. I understand macOS Server wasn\u2019t a profit leader for Apple, but it was such an elegant solution for some of us! Darn it, my mini will probably get hacked for its server components being out of date before someone pries my fingers off macOS Server.<br \/><br \/>\r\n\r\nAnyway, today I noticed I was suddenly having conflicts trying to launch Homebridge on port 8080 after installing a security patch on High Sierra. It appears the security patch messes with macOS Server\u2019s web server settings. Fortunately, mighty Wayne Dixon encountered this issue on Mojave and published <a href=\"https:\/\/www.waynedixon.com\/2018\/09\/26\/macos-mojave-and-websites\/\">a fix<\/a>. Thanks, Wayne! I changed mine from 8080 to 8081.<p>\r\n\r\nFor now I&#8217;m back in business and reading Wayne&#8217;s solution might have tempted me to try Mojave if this mini was compatible and it won&#8217;t be unless I also try DOSDude1&#8217;s app to load Mojave&#8230; Hmmm, I&#8217;ll think about it&#8230;<p>\r\n\r\nAlso, I briefly thought someone had hacked my server for their own use of port 8080, but <a href=\"https:\/\/stackoverflow.com\/questions\/24387451\/how-can-i-kill-whatever-process-is-using-port-8080-so-that-i-can-vagrant-up\/24388281\">this advice<\/a> quickly helped me track down what it was with these commands:<p>\r\n\r\n<code>sudo lsof -i :80 # checks port 8080<\/code><p>\r\n\r\nThen I saw something similar to:<p>\r\n\r\n<code>COMMAND   PID USER   FD   TYPE             DEVICE SIZE\/OFF NODE NAME\r\nacwebseca 312 root   36u  IPv4 0x34ae935da20560c1      0t0  TCP 192.168.1.3:50585->104.25.53.12:http (ESTABLISHED)<\/code><p>\r\n\r\nWhich showed a service using the PID and we probe that further:<p>\r\n\r\n<code>ps -ef 312<\/code><p>\r\n\r\nTo see:<p>\r\n\r\n<code>  UID   PID  PPID   C STIME   TTY           TIME CMD\r\n    0   312    58   0  9:32PM ??         0:02.70 \/opt\/cisco\/anyconnect\/bin\/acwebsecagent -console<\/code><p>\r\n\r\nMine showed an Apache2 folder that I led me to Wayne&#8217;s fix above.\r\n  ","protected":false},"excerpt":{"rendered":"<p>I\u2019m stubbornly keeping macOS Server on my Mac mini running High Sierra, as I love it\u2019s GUI for controlling server components. I understand macOS Server wasn\u2019t a profit leader for Apple, but it was such an elegant solution for some &hellip; <a href=\"https:\/\/www.schwie.com\/brad\/?p=830\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-830","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.schwie.com\/brad\/index.php?rest_route=\/wp\/v2\/posts\/830","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.schwie.com\/brad\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.schwie.com\/brad\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.schwie.com\/brad\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.schwie.com\/brad\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=830"}],"version-history":[{"count":7,"href":"https:\/\/www.schwie.com\/brad\/index.php?rest_route=\/wp\/v2\/posts\/830\/revisions"}],"predecessor-version":[{"id":864,"href":"https:\/\/www.schwie.com\/brad\/index.php?rest_route=\/wp\/v2\/posts\/830\/revisions\/864"}],"wp:attachment":[{"href":"https:\/\/www.schwie.com\/brad\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=830"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.schwie.com\/brad\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=830"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.schwie.com\/brad\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=830"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}