-
Notifications
You must be signed in to change notification settings - Fork 1
Installing a debian Morzo server from scratch
tdammers edited this page Feb 17, 2013
·
10 revisions
- Download the debian stable i386 netinst iso. Suitable jigdo, bittorrent and http download links can be found at http://www.debian.org/CD/.
- Boot from the netinst iso and install a minimal core system: check only the "SSH Server" and "Basic System Utilities" presets. We'll install all the dependencies in the next step.
- Set up ssh and networking to your preferences. I like to give my virtual servers two network interfaces: NAT on eth0 (to be used to access the internet from the virtual machine, for things like API calls and apt), and host-only on eth1 (to be used to ssh into the machine and serve web pages). This way, the VM can make outbound connections as needed, but will be naturally firewalled off of the real world for incoming connections.
- Install your favorite text editor. I use vim.
You should now be able to boot the server, ssh into it, and become root in order to install things.
We'll need to install a whole bunch of packages, so let's get started:
$ sudo aptitude install apache2 php5 php5-adodb php5-mysql php5-cli php5-xdebug php5-cli libapache2-mod-php5 mysql-client mysql-server memcached php5-memcache ntp
Aptitude tells me there's one conflict; the first resolution it offers should work fine.
There are two ways you can do this: either install git in the VM and use that, or set up a shared directory between the VM and the host machine.