Webmin is a web-based interface to manage websites or domains easily.
In Webmin, there is an advanced feature to quickly add the domain.
But, we often see some errors after adding domains due to the misconfiguration of DNS file, permission issues and much more.
At Bobcares, we often get requests from our customers to resolve the problems with “Webmin add domain” as part of our Server Management Services.
Today, we’ll see how our Support Engineers add a domain in Webmin and fix the related issues.
How we add a domain in Webmin
Adding domain is quite easy with the advanced feature in Webmin control panel.
Let’s take a closer look at how we add the domain in Webmin.
1. First, we log into Webmin panel with username & password.
2. Then, click on Servers > BIND DNS Server.
3. Under Existing DNS Zones, we click on Create master zone and enter the following fields:
– Zone type [ Forward ]
– Domain name / Network [ Enter Domain Name you want to add ]
– Records file [Automatic]
– Master server [your server’s host name]
– Email address [admin’s email address]
– IP Address for template records [Provide the host’s IP Address]
4. Next, we navigate to Edit Master Zone > Address Records & enter the following details.
– Name [www]
– Address [Server’s Ip Address]
– Time-To-Live [Default]
– Update reverse? [yes]
5. To create virtual host we navigate to Servers > Apache Webserver > Create virtual host & enter the details too:
– Port: 80
– Document Root: /var/www/html/mydomain
– Server Name: www.mydomain.com
6. Finally, we click Apply changes.
Related issues & fixes in Webmin add domain
Even after adding the domain properly, we often see errors in Webmin.
Let’s see the top 2 common errors and how our Support Engineers fixed it.
1. Incorrect entry in DNS file
Recently, one of our customers reported that after entering the DNS details & when he clicked Bind DNS server in Webmin, it resulted in an error like this.
"Failed to start BIND: Starting named: Error in named configuration: zone mydomain.com/IN: has no NS records zone mydomain.com/IN: not loaded due to errors. _default/mydomain.com/IN: bad zone [FAILED]"
This error happens due to the missing trailing character on the domain name.
So, to solve this error our Support Engineers took the following steps.
1. We logged in to Webmin control panel.
2. Then, we clicked on Servers > BIND DNS Server > Edit Master Zone.
3. In the zone file, we edited the domain name.
mydomain.com. IN NS ns1.mydomain.com.
4. Finally, we saved the file.
That fixed the problem and the user couldn’t get any error.
2. Permission issue
Likewise, another customer approached us with the problem after adding the domain in Webmin & when he tried to access the URL, it resulted in an error like this.
"You don't have permission to access / on this server."
This error happens when the user does not have permission to access the domain.
We solved this error by performing the following steps.
1. First, we opened the terminal.
2. Next, we run the command to grant permission to the corresponding user.
chmod 755 /home/your_virtual_server_username -Rvf
3. Finally, we restarted apache services to reflect the changes made.
systemctl restart apache
That’s how we fixed the problem. Now, the user could access the domain without any failure.
[Having trouble with Webmin add domain? We’ll fix it for you.]
Conclusion
To be more precise, for web developers, adding the domains in Webmin is quite easy. Today, we saw how our Support Engineers added a domain in Webmin and fixed the related issues.
0 Comments