Drupal in the Cloud, Part 3: Installing Virtualmin

Error message

  • Notice: unserialize(): Error at offset 2 of 8 bytes in variable_initialize() (line 1189 of /home/stevenmcmurry/public_html/includes/bootstrap.inc).
  • Notice: unserialize(): Error at offset 2 of 8 bytes in variable_initialize() (line 1189 of /home/stevenmcmurry/public_html/includes/bootstrap.inc).

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:

  1. Be on a supported system (CentOS, Debian, Ubuntu LTS, etc.)
  2. Change the hostname to what its final hostname will be
  3. 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
  • ubuntu@server:~$ hostname -f

    You'll see that the hostname will return an internal DNS name that cannot be accessed from the internet.

  • Edit your hostname file and change it to your DNS address instead of the internal DNS address
  • ubuntu@server:~$ sudo nano /etc/hostname

  • Reboot and verify that your hostname is changed
  • ubuntu@server:~$ hostname -f

  • 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
  • ubuntu@server:~$ wget http://software.virtualmin.com/gpl/scripts/install.sh
    ubuntu@server:~$ /bin/sh install.sh

  • If you are prompted, select yes and let the installer continue
  • When the installer is complete you will be able to access your newly-installed Virtualmin setup at:
    https://yourdomain.com:10000
  • Unfortunately, you won't be able to login yet! You need to create a user and give them the correct permisssions.
  • ubuntu@server:~$ sudo adduser [username]

    You will be able to create a password for the user and any other misc. information.

  • Add the user to the sudoers file.
  • ubuntu@server:~$ sudo nano /etc/sudoers

    Add a line just below root's line and save:

    root ALL=(ALL:ALL) ALL
    [username] ALL=(ALL:ALL) ALL

  • You can now login to Virtualmin with your newly created user and start setting up Drupal!
Share this

Tags: