Some of the little bits of Mac setup as I retired my home Linux server and made my Mac Desktop also my server.
Moving ssh to a new port
None of these matter.
/etc/sshd_config
SSHD is started from xinetd
/etc/inetd.conf
Mac uses xinetd
/etc/xinetd.conf
/etc/xinetd.d/ssh
This does not specify the port because xinetd is doing the listening and by the time it starts sshd, the port is already established.
So where does it do it?
/etc/services:
ssh 1222/udp # SSH Remote Login Protocol
ssh 1222/tcp # SSH Remote Login Protocol
Moving the Apache DocumentRoot
/etc/httpd/httpd.conf:
Port 8081
DocumentRoot “/Users/csev/www”
<Directory “/Users/csev/www”>
Turning on PHP in Apache
/etc/httpd/httpd.conf:
Uncomment:
LoadModule php4_module libexec/httpd/libphp4.so
AddModule mod_php4.c
http://www.sanbeiji.com/tech/tutorials/php/index.php
Turning on Apache and SSH
Apple-> System Preferences-> Sharing
Check “Remote Login” (ssh) and “Personal Web Sharing” (apache)