Drupal in the Cloud, Part 3: Installing Virtualmin
Let me preface this section with a caveat: you do not need Virtualmin for Drupal to work. Drupal will work just fine without Virtualmin, provided it gets the three things it does need: Apache, MySQL, and PHP.
For those at home taking notes, this is typically called a LAMP setup- Linux, Apache, MySQL, PHP. LAMP. Get it? Cool, let's continue.
What Virtualmin does is provide an easy interface to manage your server, which is an absolute godsend for those who hate doing things by command line.
There are three things we need to get Virtualmin up and running:
- Be on a supported system (CentOS, Debian, Ubuntu LTS, etc.)
- Change the hostname to what its final hostname will be
- Run the install script
The first requirement is done, provided you have been doing things according to the tutorial.
The second requirement is fairly easy:
- In the command line, check to see what your hostname is
- Edit your hostname file and change it to your DNS address instead of the internal DNS address
- Reboot and verify that your hostname is changed
- Once rebooted and verified, go to Virtualmin and decide which version to install. I will be using the GPL version.
- Download the Virtualmin install script and run it
- If you are prompted, select yes and let the installer continue
ubuntu@server:~$ hostname -f
You'll see that the hostname will return an internal DNS name that cannot be accessed from the internet.
ubuntu@server:~$ sudo nano /etc/hostname
ubuntu@server:~$ hostname -f
ubuntu@server:~$ wget http://software.virtualmin.com/gpl/scripts/install.sh
ubuntu@server:~$ /bin/sh install.sh
