I'm not sure if what I'm asking is possible, but I'd like to pick the brains of smart sysadmins here. I have a domain mysite.com to which I add sub-domains. I then install a piece of software on each sub-domain.
Is there anyway I can automate this process so that I can connect directly from my localhost development environment and just run this script that say adds subdomain1.mysite.com and installw software1 on it, or adds subdomain2.mysite.com and installs this other software2 on it?
Since I'm a developer and use shared hosting, I'd prefer a solution that uses .htaccess if it exists. If not, what are my options.