Hosting Question? Find the Solution -

KNOWNHOST KNOWLEDGE BASE

Browse our Guides, Articles, and How-To's

cPanel and DirectAdmin: Development & Log Locations

Category: Courses
Tags: # # # # # #

cPanel and DirectAdmin both pioneer in integrating third-party apps to allow for more combined usage out of their panels. They do this by partnering with those developers to provide a robust platform that your average user could utilize for whatever project need that they have, we go over some of them below as well as providing a list of log locations for various applications at the end of this article.

Innovation and 3rd-party Apps

Nginx and Free Litespeed Technologies

DirectAdmin has been quick to implement some features that many have considered absolute hosting necessities. One such feature is Nginx. DirectAdmin has had support to Nginx for a very long time, whereas cPanel just began to support it in 2019. Despite this, cPanel was able to implement support for LSAPI whereas DirectAdmin has not. LSAPI is the free version of LSAPI PRO from Litespeed and CloudLinux. It lacks CRIU and connection pooling but is still much faster and for more efficient than DSO. DirectAdmin instead supports OpenLitespeed, which is still very new and has been reported to cause high CPU and/or RAM usage, though both the CloudLinux and DirectAdmin teams are typically quick to resolve such issues.

Passenger, Ruby, NodeJS, and Python

cPanel also implemented Apache’s ModPassenger, which has allowed them to offer support for Ruby on Rails, NodeJS, and Python applications. Using ModPassenger for RoR, WSGI, and NodeJS applications looks like a promising and more stable method of hosting these applications, which is how cPanel now handles these. DirectAdmin has no official support for this, however, considering that one can install custom Apache modules via CustomBuild, it may not be too difficult to implement.

Tomcat

cPanel also currently has official support for Tomcat, but like its Ruby on Rails and Python app support, the implementation has been completely overhauled.

FastCGI and PHP-FPM

DirectAdmin has been offering FastCGI and PHP-FPM for some time, where cPanel implemented these in the past few years. If the latest and greatest is your preference, DirectAdmin offers this. Both cPanel and DirectAdmin are good choices if you desire a stable, production environment.

MySQL 8

MySQL 8 is currently available for DirectAdmin servers, where version 5.7 is the highest available version for cPanel as of August 2019.

Useful Reseller Features

One feature that DirectAdmin includes that cPanel does not is an internal ticketing system. This ticketing system is intended for hosting resellers so that an account owner can be easily contacted by that account user.

Another feature that is useful especially for resellers is the ability to mass email all accounts they own. Both panels offer this capability.

DirectAdmin is highly, highly customizable. Ability to add your own package items in DirectAdmin. One feature that cPanel lacks that would be useful to admins and resellers alike would be the ability to add custom package features. For example, if you wanted to offer a custom service to these customers outside of the panel, such as Uptime Monitoring or Dynamic DNS, for example, you could add a custom package item for this.

Browser-based Terminal

cPanel has a Terminal Feature that is quite handy for those that are inexperienced with connecting to a server via SSH. It is essentially an SSL terminal inside your browser delivered via your panel. It exists in both WHM and in cPanel. The terminal inside WHM gives access to directories and files that are otherwise inaccessible via the panel and thus can be very useful.

Developer/Forum Support

One thing that most absolutely loved about cPanel was the level of support you could expect from cPanel via both the ticket system and the cPanel forums. You could find the answer to any issue you had in the forums. Both cPanel Staff and the cPanel user community contribute to the forums heavily and the forums have a tutorials section as well. If you couldn’t find the answer on the forums, then a quick ticket submission to cPanel support would surely have the issue resolved in no time.

DirectAdmin hasn’t always had this level of support with regards to the forums, however, they haven’t always had the demand they’ve seen recently, either. Time will tell, but thus far, their support for cPanel to DirectAdmin migrations has been exceptional. They’ve gone above and beyond to accommodate feature requests and to help those transitioning to DirectAdmin.

Equivalent Files, Log Locations, and Services in DirectAdmin and cPanel

DOMAINSDirectAdmincPanel
default docroot/home/USER/domains/DOMAIN/public_html/home/USER/public_html
subdomain docroot/home/USER/domains/DOMAIN/public_html/SUB/home/USER/public_html/SUB OR /home/USER/SUB/
https vs http location/home/USER/domains/DOMAIN/private_html , /home/USER/domains/DOMAIN/public_html/home/USER/public_html
find domain ownergrep DOMAIN.COM /etc/virtual/domainowners/scripts/whoowns DOMAIN.COM
custom docroot definitions file/usr/local/directadmin/data/users/USER/domains/DOMAIN.COM.cust_httpd/var/cpanel/userdata/USER/DOMAIN.TLD

USER DATADirectAdmincPanel
user root directory/home/USER/home/USER/
user data directory/usr/local/directadmin/data/users/USER/var/cpanel/userdata/USER

MAILDirectAdmincPanel
user email data directory/home/USER/imap/DOMAIN.TLD/ACCOUNT/Maildir/home/USER/mail/DOMAIN.TLD/ACCOUNT/
account’s default domain’s email directory/home/USER/Maildir/home/USER/mail
email account configuration/etc/virtual/DOMAIN.COM//home/USER/etc/DOMAIN.COM/
custom outgoing mail IPs file/etc/virtual/domainips/etc/mailips
custom domains’ HELO file/etc/virtual/helo_data/etc/mailhelo
local domains file/etc/virtual/domains/etc/localdomains
location of root forwarder/etc/aliases/root/.foward
location of domains’ aliases/etc/virtual/DOMAIN/aliases/etc/valiases/DOMAIN
Dovecot index files for info@email.com/home/USER/imap/EMAIL.COM/INFO/Maildir/dovecot*/home/USER/mail/EMAIL.COM/INFO/dovecot.index
email limits files/etc/virtual/limit, /etc/virtual/user_limit, etc/virtual/limit_${USER}/etc/email_send_limits
main exim activity log/var/log/exim/mainlog/var/log/exim_mainlog
fatal error logNA/var/log/exim_paniclog
Incoming-email rejection log/var/log/exim/rejectlog/var/log/exim_rejectlog
exim configuration files/etc/exim.*conf/etc/exim.conf*

PHPDirectAdmincPanel
PHP path/usr/local/php##/opt/cpanel/ea-php##
location of php.ini/usr/local/php##/lib/php.ini, /usr/local/lib/php##/php.conf.d/*.ini/opt/cpanel/ea-php##/root/etc/php.ini
php executable location/usr/local/php##/bin/php/opt/cpanel/ea-php##/root/usr/bin/php
pear executable location/usr/local/php##/bin/pear/opt/cpanel/ea-php##/root/usr/bin/pear
pecl executable location/usr/local/php##/bin/pecl/opt/cpanel/ea-php##/root/usr/bin/pecl
phar executable location/usr/local/php##/bin/phar/opt/cpanel/ea-php##/root/usr/bin/phar
PHP-FPM logs/usr/local/phpXX/var/log/php-fpm.log/usr/local/cpanel/logs/php-fpm/error.log, /var/cpanel/php-fpm/USER/logs/
command to check php & handler settings/usr/local/cpanel/bin/rebuild_phpconf –currentgrep -P php'[\d]’_ /usr/local/directadmin/custombuild/options.conf
PHP-FPM User pools configuration/usr/local/directadmin/data/users/USER/php/php-fpmXX.conf/opt/cpanel/ea-phpXX/root/etc/php-fpm.d/DOMAIN.conf , /var/cpanel/userdata/USER/DOMAIN.COM.php-fpm.yaml
PHP-FPM global configuration files/usr/local/phpXX/etc/php-fpm.conf/opt/cpanel/ea-phpXX/root/etc/php-fpm.conf
PHP-FPM default configuration templates/usr/local/directadmin/data/templates/php-fpm.conf/var/cpanel/ApachePHPFPM/system.yaml, /var/cpanel/ApachePHPFPM/system_pool_defaults.yaml

BACKUPSDirectAdmincPanel
panel backups/home/admin/admin_backups, /home/admin/user_backups/backups, /home/USER/
softaculous backups user settings/home/USER/.softaculous/home/USER/.softaculous
softaculous backups/home/USER/softaculous_backups/home/USER/.softaculous_backups
panel’s global backup exclusionsgrep “skip_*_in_backups” /usr/local/directadmin/conf/directadmin.conf/etc/cpbackup-exclude.conf
panel backup user configuration file/home/USER/.backup_exclude_paths/home/USER/cpbackup-exclude.conf
MySQL backups/usr/local/directadmin/custombuild/mysql_backups/backup/*/system/* & /backup/*/*/system/*

SERVICE MONITORDirectAdmincPanel
service monitoring/usr/local/directadmin/data/admin/services.status/etc/chkserv.d/chkservd.conf
commands/usr/local/directadmin/custombuild/build set_service mysql ON|OFF|deletewhmapi1 configureservice service=mysql enabled=1 monitored=1
logs/var/log/directadmin/system.log, /var/log/directadmin/errortaskq.log/var/log/chksrvd.log,/usr/local/cpanel/logs/tailwatchd_log

APACHEDirectAdmincPanel
error log/var/log/httpd/error_log, /var/log/httpd/domains/DOMAIN.COM.error.log/etc/apache2/logs/error_log
configuration files directory/etc/httpd/conf/, /etc/httpd/conf/extra//etc/apache2/conf/, /etc/apache2/conf.d/
domlogs/var/log/httpd/domains/DOMAIN.COM.log/etc/apache2/logs/domlogs
httpd customizations per domain/usr/local/directadmin/data/users/USER/domains/DOMAIN.COM.cust_httpd/etc/apache2/conf.d/userdata/s*/2_4/USER/DOMAIN.COM/*.conf
global apache customizations files directory/usr/local/directadmin/custombuild/custom/ap2, /etc/httpd/conf/extra/httpd-includes.conf/etc/apache2/conf.d/includes/
access logs/var/log/httpd/access_log/etc/apache2/logs/access_log
server docroot/var/www/html/var/www/html
binary/usr/sbin/httpd/usr/sbin/httpd
SSLsDirectAdmincPanel
domain SSLs/usr/local/directadmin/data/users/USERNAME/domains//var/cpanel/ssl/apache_tls/,
Apache server.crt/etc/httpd/conf//etc/apache2/conf.d/
Exim/etc/exim.cert, /etc/exim.key/var/cpanel/ssl/exim/
MySQLconfigurableconfigurable
OpenLitespeed/usr/local/lsws/ssl.*/NA
Nginx/etc/nginx/ssl.*/
FTP/etc/exim.cert, /etc/exim.key/var/cpanel/ssl/ftp/
Dovecot/etc/exim.cert, /etc/exim.key/var/cpanel/ssl/dovecot/

SSHDirectAdmincPanel
SSH/d configuration/etc/ssh//etc/ssh/
ssh log/var/log/secure/var/log/secure

NAMEDDirectAdmincPanel
default nameservers setting/usr/local/directadmin/conf/directadmin.conf/etc/wwwacct.conf
zone files location/var/named//var/named/
named configuration/etc/named.conf/etc/named.conf

WEBAPPSDirectAdmincPanel
PHPMYAdmin/var/www/html/phpMyAdmin/usr/local/cpanel/3rdparty/php/72/etc/phpmyadmin
Roundcube/var/www/html/roundcube/usr/local/cpanel/3rdparty/php/72/etc/roundcube
PHPPGAdminNA/usr/local/cpanel/3rdparty/php/72/etc/phppgadmin
HordeNA/usr/local/cpanel/3rdparty/php/72/etc/horde
MajorDomo/etc/virtual/majordomoNA
MailmanNA/usr/local/cpanel/3rdparty/mailman/

NGINXDirectAdmincPanel
configuration/etc/nginx/nginx.conf, /etc/nginx/*conf, /etc/nginx/conf.d//etc/nginx/nginx.conf, /etc/nginx/conf.d/*
user configurations/usr/local/directadmin/data/users/USER/nginx.conf/etc/nginx/conf.d/users/*.conf
domlogs/var/log/nginx/domains/var/log/nginx/access.log
access logs/var/log/nginx/access_log/var/log/nginx/access.log
error logs/var/log/nginx/error_log/var/log/nginx/error.log
domain access logs/var/log/nginx/domains/DOMAIN.COM.log/var/log/nginx/access.log
domain error logs/var/log/nginx/domains/DOMAIN.COM.error.log/var/log/nginx/error.log
LITESPEEDDirectAdmincPanel
Installation Location/usr/local/lsws//usr/local/lsws/
Error Log/usr/local/lsws/logs/stderr.log/var/log/apache2/stderr.log
* Litespeed is a drop in replacement for Apache, so the domlogs, access logs and error logs will be the same as they were when using Apache.

OPENLITESPEEDDirectAdmincPanel
configuration fies/usr/local/lsws/conf/NA
binary/usr/local/lsws/bin/openlitespeedNA
restart log/usr/local/lsws/logs/lsrestart.logNA
* OpenLitespeed is a drop in replacement for Apache, so the domlogs, access logs and error logs will be the same as they were when using Apache.

SPAMASSASSINDirectAdmincPanel
user-defined SA configuration/home/USER/.spamassassin/user_prefs/home/USER/.spamassassin/user_prefs
SA enabled user file/home/USER/.spamassassinenable/home/USER/.spamassassinenable
executable/usr/bin/spamassassin/usr/local/cpanel/3rdparty/perl/528/bin/spamassassin
CRONSDirectAdmincPanel
user crons/var/spool/cron/USER/var/spool/cron/USER
root crons (panel backups, etc)/etc/cron*/*/var/spool/cron/root
cron log/var/log/cron/var/log/cron
PANEL LOGS/DIRECTORIESDirectAdmincPanel
login log/var/log/login.log/usr/local/cpanel/logs/login_log
error log/var/log/error.log/usr/local/cpanel/logs/error_log
access log/var/log/${date}.log/usr/local/cpanel/logs/access_log
system log (tallies, LE, service reloads, etc)/var/log/system.log/usr/local/cpanel/logs/*, /var/cpanel/logs/*
task queue error log/var/log/directadmin/errortaskq.logNA
utility scripts location/usr/local/directadmin/scripts//usr/local/cpanel/scripts, /usr/local/cpanel/bin/
FIREWALLDirectAdmincPanel
LFD log/var/log/lfd.log/var/log/lfd.log
CSF/LFD configuration/etc/csf/csf.conf/etc/csf/csf.conf
Whitelist/etc/csf/csf.allow/etc/csf/csf.allow
Block list/etc/csf/csf.deny/etc/csf/csf.deny
Dynamic DNS/etc/csf/csf.dyndns/etc/csf/csf.dyndns
Ignored files/etc/csf/csf.fignore/etc/csf/csf.fignore
Ignored processes/etc/csf/csf.pignore/etc/csf/csf.pignore

MySQLDirectAdmincPanel
configuration file/etc/my.cnf/etc/my.cnf
data directory/var/lib/mysql//var/lib/mysql/
error log/var/lib/mysql/host.servername.tld.err/var/lib/mysql/host.servername.tld.err
CB/EA PATHS & CLI COMMANDSDirectAdmincPanel
activity log/usr/local/directadmin/custombuild/custombuild.log/var/log/yum.log
WP-CLIDirectAdmincPanel
executable/usr/local/bin/wp/usr/local/cpanel/3rdparty/bin/wp
user wp-cli configuration, cache, & data/home/USER/.wp-cli//home/USER/.wp-cli/
GITDirectAdmincPanel
executable/usr/bin/git/usr/local/cpanel/3rdparty/bin/git
gitk/usr/bin/gitk/usr/local/cpanel/3rdparty/bin/gitk
gitwebyesyes

Conclusion

We hope that this course of articles on cPanel and DirectAdmin comparison of development & log locations has helped provide you with the helpful information in regards to the differences between the two panels as well as the similarities that they both share in which would make any sort of panel transition easier.

Should you have any questions that weren’t covered in this course or have questions about specific features from this overview — feel free to contact our Sales department or if you’re a current customer — our Support department.

KnownHost offers 365 days a year, 24 hours a day, all 7 days of the week best in class technical support. A dedicated team is ready to help you should you need our assistance. You’re not using KnownHost for the best web hosting experience? Well, why not? Check with our Sales team to see what can KnownHost do for you in improving your web hosting experience.