but my vps only has one ip addess and I just used it for both. Is this going to be a problem? Anyway they seem to be resolving ok.
I have added two virtual servers in virtualmin and both domains seem to be resolving to their httpdocs folder ok.
The first of my problems is with the mx records, I am getting the following warning:
Warning - errors were found in this domain’s DNS records : This domain has email enabled, but none of the MX records mail.harmlesshosting.co.uk point to it. Either the MX records should be corrected, or the email feature disabled if mail is hosted externally.
and my mx records do seem to be pointing to godaddy and not my vps.
To be honest I am pretty clueless about mx records! I have attached a screen shot of my dns records for the domain. How do I add the correct mx records to sort this out?
Also I am not sure how to add a new domain email address such as admin@harmlesshosting.co.uk and have all server related mail go their? I need my email to be reliable on this server.
The second of my problems is with mod-rewrite. I seen that the module was enabled in the Configure Apache Modules but it does not seem to be enabled inside each virtual server, how do I enabled it for each virtual server? as this is essential for my websites.
And lastly I managed to get joomla installed on one of the virtual servers but I noticed during the setup that it would not connect to the database with the virtual server username and password I had to use root and my root password. This obviously isn’t right?
but my vps only has one ip addess and I just used it for both. Is this going to be a problem? Anyway they seem to be resolving ok.
That should be just fine, and is a common setup.
and my mx records do seem to be pointing to godaddy and not my vps.
Where do you want email to go? Your server, or GoDaddy?
The second of my problems is with mod-rewrite. I seen that the module was enabled in the Configure Apache Modules but it does not seem to be enabled inside each virtual server, how do I enabled it for each virtual server? as this is essential for my websites.
The mod_rewrite module should be available to every Virtual Server. You can use that in Apache, or a .htaccess file. You may simple need to set “Rewrite Engine On” prior to using rewrite directives.
And lastly I managed to get joomla installed on one of the virtual servers but I noticed during the setup that it would not connect to the database with the virtual server username and password I had to use root and my root password. This obviously isn’t right?
Did you by chance enable password hashing when setting up Virtualmin?
If so, you’d need to go into Edit Databases in Virtualmin in order to obtain your MySQL password, which will be randomly generated.
I want the email to go to my vps unless going to godaddy would be the safer option?
The mod_rewrite doesn’t seem to be working on every server tho. I have Rewrite Engine On and rewrite rules set up already in the .htaccess but its throwing up 500 Internal Server Errors. Is there any way to swirch it on in an indivdual virtual server? or determine if something else is wrong?
Also, note that for mod_rewrite to work, each VirtualHost block in the Apache config that needs to use mod_rewrite needs to have “Allowoverride None” set.
For security reasons, I would highly recommend keeping your original Apache config – and in the .htaccess file it mentions, I would change “FollowSymLinks” to “SymLinksIfOwnerMatch”.
Using “FollowSymLinks” enables a rather large security hole :-/
Ok that worked sweet! So my vps seems to be working fine, Iv got email working and Iv hardened security a bit by adding a new admin user and disabling root ssh logins, changed the ssh port and installed fail2ban and logwatch.
As far as keeping my vps up-to-date and secure should I just install the virtualmin/webmin updates as they come?
Will updating my ubuntu installation via this route have any effect on my virtualmin installation?
Update/upgrade is fine and very much recommended! There’s a package “unattended-upgrades” which can install security fixes automatically.
I personally don’t recommend using the dist-upgrade function. It can work okay, but it’s too much of a game of chance for my taste. It’s similar to live-updating Windows XP to Windows 7. I prefer a clean new installation in that case.
But you wrote that you have Ubuntu 12.04 installed? That’s the most recent LTS version and you should not need a dist-upgrade for some years.