Deleting A Child Domain in CyberPanel
A “Child Domain in CyberPanel” is a subdomain or secondary domain that is created and controlled in the CyberPanel control panel. It works as an extension of the main, or parent, domain and often uses the same settings and tools. With this feature, you can organize and host multiple websites or web apps on a single CyberPanel installation, but each one will have its own web address and settings.
Why is Child Domain Launcher necessary?
In CyberPanel version 1.5, “child domains” were added as a way to add more domains under a current site. But the rewrite rules don’t work the same way with OpenLiteSpeed as they do with LiteSpeed Enterprise/Apache. Each domain needs its own ‘.htaccess’ file, and OpenLiteSpeed needs special instructions to load rules from it. Otherwise, the file is ignored.
For example, let’s say we have a master domain at ‘/home/masterdomain.com/public_html’. Its ‘.htaccess’ file is located at ‘/home/masterdomain.com/public_html/.htaccess,’ and any ‘.htaccess’ files in folders are ignored.
Now, if we make a child domain under the master domain with the path ‘/home/masterdomain.com/public_html/childdomain.com’, its rewrite rules will be ignored because OpenLiteSpeed has not been told to load rewrite rules from ‘/home/masterdomain.com/public_html/childdomain.com/.htaccess’.
CyberPanel offers a special child name launcher that lets you do the following things to solve this problem:
- Examine the access/error logs.
- Change how the virtual hosts for the child’s name are set up.
- Change PHP settings.
- Add/Delete rewrite rules.
- Add SSL certificates.
- Turn on/off open basedir protection.
Delete Child Domain with CyberPanel
Using CyberPanel, there are two ways to delete a child domain: using the Master Domain Launcher or using a different method in the CyberPanel.
Method 1: Master Domain Launcher
- Go to https://USER-IP/domainname>:8090 and use the passwords you were given to access your CyberPanel.
- Once you are signed in, find the Master Domain Launcher and open it.
- On the left side of the Master Domain Launcher, there is a menu item called “List Child Domains.” Just click it.
- A full list of all the subdomains will be shown to make managing them easy.
- You’ll see a “Delete” button under each name. Click “Delete” next to the child name that you want to get rid of.
- A window will pop up asking if you’re sure you want to delete the root directory for this child’s name. If you choose this choice, the Document Root and all of its files, as well as the subdomain, will be deleted. If you don’t choose this choice, the subdomain will be deleted, but its files will still be in the file system.
Method 2: CyberPanel is an alternative way to do it.
- Go to https://USER-IP/domainname>:8090 and log in to your CyberPanel using the details you were given.
- Go to the CyberPanel homepage and find the “Website” main menu.
- Choose “List Child Domains” from the list of options.
- You’ll see a list of all the child names linked to your master domain.
- Look for the child name you want to get rid of and click “Delete” next to it.
- A window will pop up to ask you to accept. Choose whether to remove the root directory and its files along with the subdomain or to keep the files in the file system.
Conclusion
As a conclusion, we have now learned the two main complicated and easy-to-use ways to use CyberPanel support services to delete child domains.
Codeyo Genie is here to help, so don’t forget that. If you need more help or would rather have an expert show you the way. Contact us today to improve how your website works and make sure your users can always get to it.