openpanel/website/docs/admin/domains/domains.md
Radovan Ječmenica 1f084ac1bb
Update domains.md
2025-05-05 15:33:17 +02:00

2.9 KiB

sidebar_position
1

Manage Domains

Domains page displays all domains currently hosted on server.

List domains

To list all current domains navigate to Domains page:

Field Description
Domain The domain name.
Status Indicates whether the domain is active or suspended.
PHP Version The PHP version configured for the domain.
SSL Shows whether SSL is enabled for the domain.
WAF Indicates if Coraza WAF is enabled or disabled for the domain.
Owner The user who added or owns the domain.
Analytics View analytics data and reports for the domain.

To list all current domains run:

opencli domains-all

Example output:

opencli domains-all
stefan.openpanel.org
pejcic.rs
nesto.com
pcx3.com

Add domain

Domains can only be added from the user interface.

To create a new plan run the following command:

opencli domains-add <DOMAIN_NAME> <USERNAME> [--debug]

Example:

root@stefan:/usr/local/admin# opencli domains-add pejcci.rs wzs11p2i --debug
Checking if domain already exists on the server
Adding pejcci.rs to the domains database
Purging cached list of domains for the account
Creating document root directory /home/wzs11p2i/pejcci.rs
Checking webserver configuration
Checking if default vhosts file exists for Nginx
Checking IPv4 address for the account
Creating /etc/nginx/sites-available/pejcci.rs.conf
Restarting nginx to apply changes
Creating vhosts proxy file for Nginx
Webserver is running, reloading configuration
Creating DNS zone file: /etc/bind/zones/pejcci.rs.zone
DNS service is running, adding the zone
Adding the newly created zone file to the DNS server
Checking and setting nginx service to automatically start on reboot
Starting service for the default PHP version 8.2
Checking and setting PHP service to automatically start on reboot
Checking and starting the ssl generation service
Starting Let'sEncrypt SSL generation in background
Domain pejcci.rs added successfully

Move domain

This is currently not possible.

Delete domain

Domains can currently be deleted only from the user interface.