Control panel paths, ports, and logs

A comparison of the five most common server control panels: cPanel and WHM, Plesk, DirectAdmin, CyberPanel, and aaPanel. For each topic, the ports, paths, logs, and commands of every control panel appear side by side. You can search for a port or a path and filter by topic.

Control panel ports

  • cPanel and WHM

    cPanel
    2083 (HTTPS), 2082 (HTTP)
    WHM
    2087 (HTTPS), 2086 (HTTP)
    Example URL
    https://server.example.com:2087

    WHM is the server administrator's control panel, and cPanel is the control panel of a single account.

  • Plesk

    Plesk
    8443 (HTTPS), 8880 (HTTP)
    Example URL
    https://server.example.com:8443

    The same control panel serves the server administrator, resellers, and customers, and each of them sees only what they're allowed to.

  • DirectAdmin

    DirectAdmin
    2222
    Example URL
    https://server.example.com:2222

    The same port serves the server administrator, resellers, and users. The connection is secure (HTTPS) when a certificate is set up for the server hostname.

  • CyberPanel

    CyberPanel
    8090 (HTTPS)
    OpenLiteSpeed WebAdmin
    7080 (HTTPS)
    Example URL
    https://192.0.2.10:8090

    Port 7080 is for the separate WebAdmin console of the web server, and you open it in the firewall only when you need it.

  • aaPanel

    aaPanel
    A random port set during installation
    Show the full URL
    bt default
    phpMyAdmin
    888

    A secret path (the security entrance) is added to the control panel URL, and without it, the login screen doesn't open. The bt 8 command changes the port.

Webmail

  • cPanel and WHM

    Port
    2096 (HTTPS), 2095 (HTTP)
    Example URL
    https://example.com:2096

    You log in with the full email address and the mailbox password.

  • Plesk

    URL
    webmail.example.com
    Software
    Roundcube

    The URL needs a DNS record named webmail that points to the domain's IP address on the server.

  • DirectAdmin

    URL
    example.com/roundcube
    Ports
    Web server ports 80 and 443

    By default, the webmail link in the control panel leads to /roundcube. The one_click_webmail_link setting points it to a different URL, for example a subdomain.

  • CyberPanel

    Current versions
    https://192.0.2.10:8090/webmail/
    Earlier versions
    SnappyMail at /snappymail

    Webmail runs through the control panel port, and it also opens from the Email menu in the control panel.

  • aaPanel

    Software
    Roundcube, through the Mail Server plugin
    URL
    The domain chosen for the Roundcube website

    Roundcube is installed as a regular PHP website, so it's available on web server ports 80 and 443.

Main configuration files

  • cPanel and WHM

    Server settings (Tweak Settings)
    /var/cpanel/cpanel.config
    Apache
    /etc/apache2/conf/httpd.conf
    Update channel
    /etc/cpupdate.conf

    Change Tweak Settings from WHM, because a direct edit of the file isn't always picked up. The rebuildhttpdconf script rebuilds httpd.conf.

  • Plesk

    Control panel settings
    /usr/local/psa/admin/conf/panel.ini
    System paths
    /etc/psa/psa.conf

    When the panel.ini file doesn't exist, create it or copy panel.ini.sample from the same directory.

  • DirectAdmin

    DirectAdmin
    /usr/local/directadmin/conf/directadmin.conf
    CustomBuild
    /usr/local/directadmin/custombuild/options.conf
    Exim
    /etc/exim.conf

    Change directadmin.conf with da config-set, which reloads the service after the change.

  • CyberPanel

    OpenLiteSpeed
    /usr/local/lsws/conf/httpd_config.conf
    Website settings
    /usr/local/lsws/conf/vhosts/example.com
    PowerDNS
    /etc/pdns/pdns.conf, and on Ubuntu /etc/powerdns/pdns.conf
    MariaDB root password
    /etc/cyberpanel/mysqlPassword
  • aaPanel

    Nginx websites
    /www/server/panel/vhost/nginx
    Apache websites
    /www/server/panel/vhost/apache
    MySQL
    /etc/my.cnf
    Redis
    /www/server/redis/redis.conf

    The control panel's own database is /www/server/panel/data/default.db.

Website root directory

  • cPanel and WHM

    Main domain
    /home/username/public_html
  • Plesk

    Domain
    /var/www/vhosts/example.com/httpdocs

    You can change the website directory in the domain's Hosting Settings.

  • DirectAdmin

    Domain
    /home/username/domains/example.com/public_html
  • CyberPanel

    Website
    /home/example.com/public_html
    Child domain
    /home/example.com/public_html/shop.example.com
  • aaPanel

    Website
    /www/wwwroot/example.com
    Web server user
    www

Website logs

  • cPanel and WHM

    Website access log
    /etc/apache2/logs/domlogs/example.com
    Over a secure connection
    example.com-ssl_log, in the same directory
    Apache error log
    /var/log/apache2/error_log

    The Apache error log is shared by all the websites on the server.

  • Plesk

    Directory
    /var/www/vhosts/system/example.com/logs
    Apache
    error_log, access_ssl_log
    nginx
    proxy_error_log, proxy_access_ssl_log
  • DirectAdmin

    Apache
    /var/log/httpd/domains/example.com.error.log
    Access log
    example.com.log, in the same directory
    nginx
    /var/log/nginx/domains
  • CyberPanel

    Errors
    /home/example.com/logs/example.com.error_log
    Access
    /home/example.com/logs/example.com.access_log
    General web server log
    /usr/local/lsws/logs/error.log
  • aaPanel

    Directory
    /www/wwwlogs
    Nginx
    example.com.error.log, example.com.log
    Apache
    example.com-error_log, example.com-access_log
    OpenLiteSpeed
    example.com_ols.error_log, example.com_ols.access_log

Control panel logs

  • cPanel and WHM

    Errors
    /usr/local/cpanel/logs/error_log
    Login attempts
    /usr/local/cpanel/logs/login_log
    Updates
    /var/cpanel/updatelogs
  • Plesk

    Control panel
    /var/log/plesk/panel.log
    Control panel web server
    /var/log/sw-cp-server/error_log
    Live view
    plesk log panel.log
  • DirectAdmin

    Directory
    /var/log/directadmin
    Files
    error.log, system.log, login.log, security.log
    Task queue
    errortaskq.log
    CustomBuild
    /usr/local/directadmin/custombuild/custombuild.log
  • CyberPanel

    Control panel
    /home/cyberpanel/error-logs.txt
    Detailed logging
    touch /usr/local/CyberCP/debug
  • aaPanel

    Control panel
    /www/server/panel/logs/error.log
    Last 100 lines
    bt 22

Mail log

  • cPanel and WHM

    Exim
    /var/log/exim_mainlog
    Rejected messages
    /var/log/exim_rejectlog
    IMAP and POP3
    /var/log/maillog
  • Plesk

    Mail log
    /var/log/maillog
    Live view
    plesk log maillog
  • DirectAdmin

    Exim
    /var/log/exim/mainlog
    Rejected messages
    /var/log/exim/rejectlog
    Dovecot
    /var/log/maillog
  • CyberPanel

    Postfix and Dovecot
    /var/log/maillog
  • aaPanel

    Mail services
    Postfix, Dovecot, and Rspamd, through the Mail Server plugin
    Mailboxes
    /www/vmail

    The mail services write to the operating system's mail log.

Backup locations

  • cPanel and WHM

    Scheduled backups
    /backup
    pkgacct
    The directory you specify in the command, for example /root
    Full backup from the account
    The account's home directory
  • Plesk

    Backup storage
    /var/lib/psa/dumps
    Directory setting
    DUMP_D in the /etc/psa/psa.conf file
  • DirectAdmin

    Server administrator backups
    /home/admin/admin_backups
    CustomBuild SQL backup
    /usr/local/directadmin/custombuild/mysql_backups
  • CyberPanel

    Website backup
    /home/example.com/backup
    Restore by file name only
    /home/backup
  • aaPanel

    Websites
    /www/backup/site
    Databases
    /www/backup/database
    Control panel settings
    /www/backup/panel

Restarting the control panel

  • cPanel and WHM

    Control panel service
    cpsrvd
    Command
    /usr/local/cpanel/scripts/restartsrv_cpsrvd
  • Plesk

    Control panel service
    sw-cp-server
    Command
    systemctl restart sw-cp-server
  • DirectAdmin

    Control panel service
    directadmin
    Command
    systemctl restart directadmin
  • CyberPanel

    Control panel service
    lscpd
    Command
    systemctl restart lscpd
  • aaPanel

    Check the status
    bt status
    Command
    bt restart

PHP versions

  • cPanel and WHM

    php.ini
    /opt/cpanel/ea-php83/root/etc/php.ini
    Change a website's version
    MultiPHP Manager, or whmapi1 php_set_vhost_versions
    Run from the command line
    /usr/local/bin/ea-php83
  • Plesk

    php.ini
    /opt/plesk/php/8.3/etc/php.ini
    Change a website's version
    The website's PHP settings, or plesk bin site -u with -php_handler_id
    Run from the command line
    /opt/plesk/php/8.3/bin/php
  • DirectAdmin

    php.ini
    /usr/local/php83/lib/php.ini
    Versions on the server
    da build set php1_release, and php2_release for an additional version
    Change a website's version
    Choose the version for each domain in the control panel
  • CyberPanel

    Version directory
    /usr/local/lsws/lsphp83
    Change a website's version
    cyberpanel changePHP
    Edit php.ini
    In the control panel, PHP > Edit PHP Configs
  • aaPanel

    php.ini
    /www/server/php/83/etc/php.ini
    Restart PHP-FPM
    /etc/init.d/php-fpm-83 restart
    Run from the command line
    /www/server/php/83/bin/php

Command-line tools

  • cPanel and WHM

    Server level
    whmapi1
    Account level
    uapi --user=username
    Scripts
    /usr/local/cpanel/scripts
  • Plesk

    Management tool
    plesk bin
    Extensions
    plesk ext
    Help
    plesk help
  • DirectAdmin

    DirectAdmin
    da
    CustomBuild
    da build
    Help
    da --help
  • CyberPanel

    Management tool
    cyberpanel
    Help
    cyberpanel -h
    Admin password
    adminPass
  • aaPanel

    Command menu
    bt
    Login details
    bt default
    Service file
    /etc/init.d/bt

How to use the comparison

  • Default values: The ports and paths on this page are the defaults of a standard installation. The server administrator can change some of them, so when a path doesn't exist, check the control panel's settings.
  • Operating system: Some paths depend on the distribution. The mail log, for example, is at /var/log/maillog on Red Hat family servers, such as AlmaLinux and Rocky Linux, and at /var/log/mail.log on Debian and Ubuntu servers.
  • Examples: example.com, username, and 192.0.2.10 are examples, and so is the number 83 in PHP paths, which stands for version 8.3. Replace them with your real values.

Ports and the firewall

To reach a control panel from outside, its port must be open in the server's firewall. When the server provider also runs an external firewall, open the port there too. When you change a port, open the new port before you close the old one, and keep an SSH session open until you've confirmed that you can log in.

A control panel port that's open to every address also receives automated login attempts. We recommend allowing access to the port only from fixed IP addresses, turning on two-factor authentication, and connecting only over a secure connection (HTTPS). Another option is to keep the port closed and reach the control panel through an SSH tunnel, as explained on the SSH commands page.

Did you know?

On a Linux VPS, you can choose a control panel (DirectAdmin, cPanel and WHM, or Plesk) that our team installs, or work on a clean server over SSH. Every server comes with full root access to all the paths, ports, and logs on this page.

Linux VPS plans

Control panel paths, ports, and logs FAQ

Which port does each control panel use?

cPanel uses port 2083, WHM uses 2087, and cPanel webmail uses 2096, all over a secure connection. Plesk uses port 8443, DirectAdmin uses 2222, and CyberPanel uses 8090. In aaPanel, the port is chosen at random during installation, and the bt default command shows the full URL, including the port and the security entrance.

Where is a website's error log in each control panel?

In cPanel, each website's access logs are in the /etc/apache2/logs/domlogs directory, in a file named after the domain, and Apache errors are written to the shared /var/log/apache2/error_log log. In Plesk, each domain's logs are in the /var/www/vhosts/system/example.com/logs directory. In DirectAdmin, they're in the /var/log/httpd/domains directory, and on a server with nginx, in the /var/log/nginx/domains directory. In CyberPanel, they're in the logs directory inside the website's directory, and in aaPanel, in the /www/wwwlogs directory.

Which ports should be open in the firewall on a server with a control panel?

Besides the control panel's own port, open the ports of the services the server actually provides: 80 and 443 for websites, 22 for SSH, 25, 465, and 587 for sending email, 110, 143, 993, and 995 for mailboxes, 21 for FTP, and 53 when the server acts as a DNS server. It's best to keep unused ports closed. When the server provider also runs an external firewall, open the same ports there.

How do I secure access to the control panel?

The most effective way is to allow access to the control panel port only from fixed IP addresses, for example your office's. In addition, turn on two-factor authentication, use a strong and unique password, and connect only over a secure connection (HTTPS) with a certificate for the server hostname. You can also keep the port fully closed and reach the control panel through an SSH tunnel.

How do I restart a control panel that won't load?

Connect to the server over SSH as root and restart the control panel service: in cPanel with /usr/local/cpanel/scripts/restartsrv_cpsrvd, in Plesk with systemctl restart sw-cp-server, in DirectAdmin with systemctl restart directadmin, in CyberPanel with systemctl restart lscpd, and in aaPanel with bt restart. If the control panel still doesn't load, check its log and the firewall.

Shopping cart

Your cart is emptyYou can start with one of our popular plans.

Site search

Accessibility

Text size
100%
Accessibility statement