I have an Amazon instance that I need to set up for multiple domains. I have the Lamp stack built so now I need to know how and in what order to proceed to copy my existing sites over to the instance.
My instance has 2 16 GB SSD drives. One is designated for swap. I have 10 GB set up for root and I have an EBS volume of 100 GB. But I am not sure on which disk the 10 GB is located. Is there a way to know on which disk the swap is located?
I am having trouble understanding where the various files are located. Meaning on which disk are they residing.
When I run df -h from the command line, I get the following
Filesystem Size Used Avail Use% Mounted on
/dev/xvda1 9.8G 3.4G 6.4G 35% /
devtmpfs 1.9G 24K 1.9G 1% /dev
tmpfs 1.9G 0 1.9G 0% /dev/shm
/dev/xvdb 16G 2.2G 13G 16% /media/ephemeral0
/dev/xvdd 99G 60M 94G 1% /data
When I SFTP into the instance I see /var/www/html but I am not sure what disk it is located on. Is there a way to determine this?
I have 4 websites that will be on the instance so please step me through how to get their files and mysql DB's over on the instance. I know I will need to setup virtual hosts but I don't know the sequence this needs to be done and how to get the respective websites in their correct locations.
I think if you talk in generalities I can do the specifics. For instance, I have a tutorial on virtual hosts like this one http://calebogden.com/multiple-websites-amazon-ec2-linux-virtual-hosts/