Last Updated: 17 April 2018
By Maynard Paton
Welcome to Part 7 of Installing Sendy and Virtualmin on Amazon Web Services (AWS).
This page describes how to install Virtualmin on your AWS server. The instructions also include installing extra PHP 7.0 modules and amending a file to prevent Virtualmin DNS errors. (Source: Tharindu Kumara and Tharindu Kumara)
Here are the steps to follow
1) Open a new Terminal window. At the command line, enter:
...replacing 126.96.36.199 with the Elastic IP created within Part 4:
You should then be asked for a password.
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:
You should then see something like this:
3) At the command line, enter:
sh /root/install.sh --bundle LEMP
4) A welcome message should now appear:
Enter y to continue.
5) An [ERROR] message about memory should now appear:
Enter y to continue.
6) A message about a swap file should now appear:
Enter y to continue.
7) The Virtualmin installation process will now commence. The process has three phases and can take ten minutes to complete.
Phase 1 should complete like this:
Phase 2 should complete like this:
Phase 3 should complete like this:
The Installation Complete! message should then appear with no errors:
8) At the command line, enter:
apt-get install memcached php7.0-mysql php7.0-curl php7.0-gd php-pear php-imagick php7.0-imap php7.0-mcrypt php-memcache php7.0-tidy php7.0-xmlrpc php7.0-xsl php7.0-mbstring php7.0-zip
9) A message about disk space should appear:
The extra PHP 7.0 modules will now be installed:
10) Back at the command line, enter:
11) You should now see something like this, and be able to edit the file:
Insert the following extra line above the exit 0
echo nameserver 127.0.0.1 >> /etc/resolv.conf
12) Press CTRL + O
File Name to Write: should appear. Press Enter.
13) Press CTRL + X and you should return to the command line:
14) At the command line, enter:
The connection to your AWS server should now close:
15) Open a new browser window and enter Your Virtualmin Installation URL:
(For the purposes of this guide, I have used testdemo.colcolmail.co.uk:10000)
Be patient if Your Virtualmin Installation URL cannot be reached immediately, as your AWS server may still be rebooting. Click Reload or similar, depending on your browser (Chrome is shown above):
You should soon be able to connect to Your Virtualmin Installation URL, albeit security warnings may appear depending on your browser:
Depending on your browser, you may need to acknowledge certain warnings.
For Chrome, click Advanced:
Then click Proceed to Your Sendy Installation URL (unsafe):
Eventually the Virtualmin/Webmin login should appear:
It may take a few minutes between issuing the reboot command during step 12 and connecting to your Virtualmin/Webmin login during step 13. Be patient!
If you are having no luck, try entering http://188.8.131.52:10000 into your browser, where 184.108.40.206 is the Elastic IP created within Part 4.
If the Virtualmin/Webmin login appears using the Elastic IP, then double-check whether your new DNS record is pointing correctly to Your Sendy Installation URL as described within Part 4. Either the new DNS record has been created incorrectly, or it has yet to become effective.
If the Elastic IP option has not worked, open a new Terminal session and log back in to your AWS server as per step 1. Then at the command line enter:
This command starts Virtualmin manually.
Alternatively, my Troubleshooting Virtualmin page could help if you experience repeated Not Secure (or similar) warnings that prevent you reaching the Virtualmin/Webmin login screen.
16) Once you reach the Virtualmin/Webmin login screen using Your Virtualmin Installation URL, you can log out of Your Webhost’s Control Panel used during Part 4.
17) Then at the command line, enter:
Now close the Terminal window.
18) All done!
If you have any questions or comments about this page, please let me know so I can keep this website as helpful as possible.
(Want to learn more? Click here to visit the full website index.)
This is the secret of cheap email-marketing software that actually works.
Amazon is a trusted name worldwide and their servers have a high email success rate. I pay just around 30-50 cents every month for my email marketing, compared to $19 a month for Aweber.
Sendy is a fantastic product.
MailChimp 'Disruptor'. $59 One-Off Fee. Full Refund Available.