Would I start this (the two first scripts) with something like this?
Code:
# Ensure that Apache listens on port 80
Listen 80
<VirtualHost *:80>
DocumentRoot "/home/www/html/domain1.com"
ServerName domain1.com
# Other directives here
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "/home/www/html/sub.domain1.com"
ServerName sub.domain1.com
# Other directives here
</VirtualHost>
I already have two separate databases. Then, install two scripts in two separate folders, and get it to work like this?
After some time I want to change script A (current domain1.com) to sub.domain1.com and script B (current sub.domain1.com) to domain1.com (switch things around).
Again, this should be kind of obvious, but I dont work on it everyday, and I am not sure (just setting up websites from time to time, and working on them).