Last Updated: 17 April 2018
By Maynard Paton


Configuring Ubuntu's Host Files For Virtualmin


Welcome to Part 6 of Installing Sendy and Virtualmin on Amazon Web Services (AWS).

This page describes how to amend two host files within the Ubuntu operating software to ensure Virtualmin can be installed correctly on your AWS server. (Source: Tharindu Kumara)

Here are the steps to follow

1) Open a new Terminal window. At the command line, enter:

ssh root@12.34.56.78

...replacing 12.34.56.78 with the Elastic IP created within Part 4.


Enter the server root password you set within Part 3 (note: the cursor may not move when entering the password). You should then gain access to your AWS server.


2) At the command line, enter:

nano /etc/hostname


You should see something like this, and now be able to edit the file:


3) Overwrite the existing content with Your Sendy Installation URL:


(For the purposes of this guide, I have used testdemo.colcolmail.co.uk.)

4) Press CTRL + O 


File Name to Write: should appear. Press Enter.

5) Press CTRL + X and you should return to the command line:


6) At the command line, enter:

nano /etc/hosts


You should see something like this, and now be able to edit the file:


7) Underneath the first line, add this extra line:

127.0.1.1 Your Sendy Installation URL


(For the purposes of this guide, I have used 127.0.1.1 testdemo.colcolmail.co.uk.)

8) Press CTRL + O 


File Name to Write: should appear. Press Enter.

9) Press CTRL + X and you should return to the command line:


10) At the command line, enter:

reboot


The connection to your AWS server should now close,


11) At the command line, enter

exit


Now close the Terminal window.

12) All done!

Click here to start Part 7. Alternatively, click here to return to the Introduction.

If you have any questions or comments about this page, please let me know so I can keep this website as helpful as possible.

Happy installing!

Maynard Paton

(Want to learn more? Click here to visit the full website index.)


profile-pic

I Bought It On The Spot!

A Twitter person told me about Sendy. It's a PHP app that you host yourself. It fronts Amazon's Simple Email Service (SES), which is dirt cheap for email. The app is REALLY polished and just lovely.

It's $59 to buy, but they said on their site: "If you encounter problems, we will help you. If it doesn't work out, we'll refund you." That matters to me, so I bought it on the spot.

Scott Hanselman, hanselman.com , Sendy customer

MailChimp 'Disruptor'. $59 One-Off Fee. Full Refund Available.