Now that KAMP has successfully been set up on a Kubuntu box, setting up multiple sites on one server is the next logical step. This allows you to do Drupal testing in multiple versions/setups at the same time on one localhost server. To begin, open up Konsole (command line utility) and change to the Apache2 sites-available directory (this is where Apache stores the setup files for each Virtual Host):
cd /etc/apache2/sites-available/
Next, login as root and copy the existing default setup file and name it to the "server" you want to use:
sudo -s (prompts you for your password)
cp default exampleSiteUsing your favorite text editor, modify the newly copied file so that it points to the correct files (using VI in this example):
vi exampleSite
Modify/Add the following lines:
NameVirtualHost * to NameVirtualHost exampleSite:80
<VirtualHost *> to <VirtualHost exampleSite:80>
Add ServerName exampleSite
DocumentRoot /var/www/ to DocumentRoot /var/www/exampleSite/
