Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
vms:webdev:start [2014/10/30 14:21] admin [Setup Network Adapters] |
vms:webdev:start [2015/04/03 18:51] (current) 66.249.64.157 Links adapted because of a move operation |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Web Development ====== | + | ====== Web Development (LAMP) ====== |
The purpose here is to build a virtual machine that will be used as a LAMP web development environment. | The purpose here is to build a virtual machine that will be used as a LAMP web development environment. | ||
Line 11: | Line 11: | ||
Install a Debian Wheezy system from Debian's stable netboot-mini.iso image. | Install a Debian Wheezy system from Debian's stable netboot-mini.iso image. | ||
- | You can refer to [[vms:webdev:debian|this section of the wiki]] for more in-depth information on how to do this. | + | You can refer to [[vms:debian|this section of the wiki]] for more in-depth information on how to do this. |
We'll have 2 adapters set up for this VM, one for local communication on a 172.20.20.x address and another one for internet access via DHCP. | We'll have 2 adapters set up for this VM, one for local communication on a 172.20.20.x address and another one for internet access via DHCP. | ||
Line 96: | Line 96: | ||
We're ready to move on... | We're ready to move on... | ||
+ | |||
+ | ----- | ||
+ | ==== Change VM's Hostname ==== | ||
+ | |||
+ | To make things clear, and have an indication of the machine we're logged to whenever we ssh into it, we'll change the machine's hostname. This is done by editing 2 more file: // /etc/hosts // and // /etc/hostname //: | ||
+ | |||
+ | In /etc/hosts, you'll only need to change the second line to make it look like the following: | ||
+ | <code> | ||
+ | > nano /etc/hosts | ||
+ | |||
+ | 127.0.0.1 localhost | ||
+ | 127.0.1.1 lamp-xd.virtual.net lamp-xd | ||
+ | |||
+ | # The following lines are desirable for IPv6 capable hosts | ||
+ | ::1 localhost ip6-localhost ip6-loopback | ||
+ | ff02::1 ip6-allnodes | ||
+ | ff02::2 ip6-allrouters | ||
+ | </code> | ||
+ | |||
+ | Then replace the content of /etc/hostname | ||
+ | <code> | ||
+ | > nano /etc/hostname | ||
+ | |||
+ | lamp-xd | ||
+ | </code> | ||
+ | |||
+ | You'll need to restart the VM for those changes to take effect | ||
+ | <code> | ||
+ | > reboot | ||
+ | </code> | ||
----- | ----- | ||
It is now time to [[apache|install the HTTP Server (Apache2)]]. | It is now time to [[apache|install the HTTP Server (Apache2)]]. |