Now, open http://ip.add.re.ss:10000 in your browser and enter yor root username and password
Let’s login to webmin.
This can be done from http://yourserverIP:10000 or https://yourserverIP:10000 (add a security exception)
First create a directory for each site.
Let’s create the folder with the website domain name.
From webmin is pretty fast. Just go to: Others/File Manager (This require java in your browser) and create the folder under /var/www/html using the “yourdomain.com” .
mkdir -p /var/www/html/yourdomain.com
Once you have the folder created. Go to Servers/Apache Web Server (please make sure you “Start Apache” at the top right corner) and click on the tab named “Create Virtual Host”.
– You can leave it at “Any address” for now.
– Leave the next boxes checked.
– Set the port number to 80.
– In “Document Root” click on the button at the right of the box and it will open a pop up windows for you to browse the server’s folders. Make sure you browse to /var/www and the folder you created. Click OK to return to the “Create Virtual Host” screen and there you must see the path to the folder you created for this website.
– Check “Allow access to this directory”
– Set the server Name to the domain you are creating this host to without the “www”
– Add virtual server to file. Leave it on “New file under…”.
– Click on “Create Now”
It the Virtual Host has been created then we need to make a little more changes to finish this.
Click on the Virtual Host you just created. This will open the “Virtual Server Options page.
Click on “Edit Directives” and under the line “ServerName yourdomain.com”, insert a line that says the following:
This is an example of how this file must be:
allow from all
You will be taken back to the “Virtual Server Options page”
At the top right corner click on “Apply Changes”.
SETTING UP DNS USING WEBMIN
Go to Servers, and then click on “BIND DNS Server”. If you can’t see it then it needs to be installed .
Start BIND by clicking at the top right option on your browser.
Creating a Master Zone.
1) Click on “Create master zone”
2) Enter the domain without the www into the “Domain name / network” box.
3) For the master server, type in the domain name as well.
4) You can check the “Create NS record” box if you’d like.
5) Enter your email address in the appropriate box.
6) Type in the IP address of the server (The external IP address provided by your ISP).
7) Click “Create”
Creating A records.
1) Click on “Address”
2) Leave the name field blank, and type in the IP address.
3) Click Save.
(The following is dependent on what you want to run the server for.)
4) Type in www for the name, and type in the IP address.
5) Click Save.
6) Type in mail for the name, and type in the IP address.
7) Click Save.
8) Type in ftp for the name, and type in the IP address.
9) Click Save.
10) Type in ns1 for the name, and type in the IP address.
11) Click Save.
12) Type in ns2 for the name, and type in the IP address.
13) Click Save.
14) At the bottom, click “Return to Record Types”
Creating NS records.
1) Click on Name Server
2) For the zone name, type in the domain name (Put a . at the end; for example:
(Notice the ending period… DO Not Forget that)
3) For the name server, type in ns1.yourdomain.com.
(Also notice the period)
4) Click Save.
5) Type in ns2.yourdomain.com.
6) Click Save.
7) Click “Return to Record Types”
Creating an MX Record.
1) Click Mail Server (If you want a mail server).
(Make sure you put the period at the end; mail.yourdomain.com.
2) For the name, type in the domain.
3) For the mail server, type in mail.yourdomain.com.
4) Set the priority to what you like… 10 is usually default.
5) Click “Return to Record Types”
SETTING FTP ACCESS USING WEBMIN
Install proftpd via Un-used Modules in Webmin
After that go to System/Users and Groups, and select “Create a new user.
Provide a username for what is to be the FTP account.
As “Home directory” select “Directory” and press the button to show the folders in your server.
Select the /var/www//html/yourdomain.com folder you previously created or whatever folder you want the ftp account to login into.
Select the “Shell” /bin/false
Select “Normal Password” and provide a unique, complex password for the account
Select “New Group” and write down the same name as the user you’re creating
Create home directory
Copy template files…
Create user in other modules
Click on “Create”
It will complete the process and take you back to the users list page.
Go back to the SSH console and run the following:
#chown username /var/www/html/yourdomain.com
(folder you previously created )
Now start your favorite FTP Client en try your new user.