Recently I demonstrated how to install the CentOS Webpanel for easy server administration (see How to install CentOS Web Panel for easy server administration). With the CentOS Webpanel, you can take care of numerous tasks, making this tool a must have for administrators. One such task Webpanel can handle is the creation of Domain accounts on your server. With Webpanel, this process is incredibly simple.
Before we dive into the creation of the domain account, you must have the following taken care of:
- A fully functioning CentOS Webpanel (with proper DNS setup)
- DNS records setup with your ISP to point to the new domain
- Your network setup to tunnel traffic to the new domain
- A static IP address on the CentOS server hosting Webpanel
Once you have that setup, let's walk through the process of creating a new domain account with the help of the Webpanel. Note that I will be demonstrating this setup on a test server that does not have registered DNS setup. In order for this to actually function, you must have DNS setup corrected (and your DNS records updated with your ISP).
Creating a domain account
The first thing you must do is log into your CentOS Webpanel as an administrative user. There are two ways in which you can create a domain via Webpanel. The first is to simply create the domain alone. The second is to create a domain account, which, in turn, will create the domain itself. Because it offers the opportunity to get more granular with your setup, we'll opt for the second method. Here's how.
Once you've logged into Webpanel, click on the User Account section in the left navigation and then click New Account. In the resulting window (Figure A), fill out the necessary information.
Most of the information is self-explanatory, there are a couple of bits that might need further understanding. For instance, the Server IPs drop-down will allow you to select from any address associated with the server. This will depend upon how many network interfaces you have. You can also choose between an internal address and your outward-facing shared IP address. If this domain is to be reached from outside your network, you must select the shared IP option. Also, if you need the user account being created to have shell access to the domain, make sure to check the box associated with Shell Access. Finally, you can limit both the number of processes and open files for the new domain. The default should work fine, but if you predict the new domain will place a higher demand on the hardware, up these numbers.
Once you've filled out all of the information, click Create and Webpanel will create the domain. Click on List Accounts and you will see the domain ready for action (Figure B).
In the domain listing, you can also edit the DNS information (if necessary). To do that, click Edit DNS Zone, which will bring up the editor window, where you can add extra DNS information to the domain configuration (Figure C).
As long as you have your DNS records registered with your ISP, and DNS properly setup through Webpanel, your new domain should begin functioning within 24 hours. If you've not configured your server's main DNS settings, they can be found in DNS Functions | Edit Nameserver IPs. Here you will have to configure two addresses:
Where DOMAIN is the domain of your server. Each of those entries will have an associated IP address that will be given to you by your ISP. Without those two DNS entries properly setup, your domain accounts will not function.
Simple and efficient
That's all there is to creating a new domain account with the CentOS Webpanel! This web-based tool is incredibly simple to use and will make otherwise complicated tasks significantly more efficient. Keep digging around the CentOS Webpanel tool; you'll find many more opportunities to make your CentOS administrative duties much easier.
- How to install and enable memcached on Ubuntu and CentOS (TechRepublic)
- How to install malware detection and antivirus on CentOS 7 (TechRepublic)
- How to protect secure shell on CentOS 7 with Fail2ban (TechRepublic)
- 5 data center-ready Linux distributions (TechRepublic)
Jack Wallen is an award-winning writer for TechRepublic and Linux.com. He’s an avid promoter of open source and the voice of The Android Expert. For more news about Jack Wallen, visit his website jackwallen.com.