josh-chs wrote:
However, if I change the hostname, what's the easiest way to do it so that I don't break every other portion of my website? (I.E. every app where the config files points to the "current" hostname)
Generally speaking, web servers and web apps don't give a damn about the hostname of the machine they're on. For example, if you have a <VirtualHost> with ServerName mysite.com and ServerAlias
www.mysite.com, it will continue to work just fine after you've changed your hostname.
On Debian & Ubuntu systems, you can change the hostname by:
Step 1. Edit /etc/hostname (just type your new hostname and save)
Step 2. /etc/init.d/hostname.sh start
Step 3. Edit /etc/hosts (change any entries pointing to the old hostname)
Make sure you use a fully qualified domain name as your hostname, e.g. "subdomain.example.com" instead of "subdomain".