These forums are locked and archived, but all topics have been migrated to the new forum. You can search for this topic on the new forum: Search for Setting up sites in Virtualmin on the new forum.
Hi I have a VPS on Linode and have set up 4 sites through the command line. I installed Virtualmin now, and would like to manage these sites through it, what should be my next steps to associate these existing websites with Virtualmin for administration?
Howdy,
Well, that is the more difficult way of going about it :-)
However, it is possible to do what you're after...
If you go into Add Servers -> Import Virtual Server, you can use that screen to import existing Virtual Servers into Virtualmin.
-Eric
Ok thanks, I am unsure how to set up the user or group options within this screen.
I haven't set users for each domain I am hosting, just have root and a username for myself. All the sites are in the /srv/www directory.
I would like to set up email accounts for each domain as well, if that is relevant at this stage.
Howdy,
Well, Virtualmin requires each site to be owned by a user (multiple sites can be owned by the same user). It also typically expects them to be setup in /home, though if you aren't looking to use the FCGI or CGI modes, it may not matter.
In your case -- for the option "Unix user who owns the domain", you may want to create a new user there for your domains. As far as "Group for mailbox users", you probably want to set that to "Create automatically (same as username)".
Remember though that for all future Virtual Servers that Virtualmin creates, it'll put them in /home. Also, the FCGI/CGI modes that it defaults to require they be in /home, since that is where suexec is programmed to work.
So, you might consider moving those other domains as well so that they're all in the same place :-)
-Eric
Ok I moved all my sites to the /home/myusername/ directory.
so I have this structure:
/home/myusername/site1.com/public_html/ all the files in here /home/myusername/site2.com/public_html/ all the files in here etc.
In the end I would like to create something like I had with Cpanel, whereby I could login to one website's control panel and be able to create new email accounts etc.
I managed to import one of these sites but have no idea how to go about creating the email accounts.
Howdy,
You should be able to create email accounts by going into "Edit Mail and FTP Users", which is one of the options on the left.
If you don't see that -- go into Edit Virtual Server, and make sure the "Mail for Domain" feature is enabled.
-Eric