Advanced Apache Configuration - The paths.conf File

Last modified: June 2, 2022


To improve future compatibility within the cPanel & WHM codebase, we eliminated the use of hardcoded paths to refer to Apache files and directories.


We strongly recommend that you do not change Apache configuration file locations. EasyApache 4 controls the /etc/cpanel/ea4/paths.conf file with the ea-apache24-config-runtime package, and you can only change these values if you create a custom webstack.

Default file paths

EasyApache 4 configures the following file paths by default:

Alias File path
dir_domlogs /etc/apache2/logs/domlogs
bin_httpd /usr/sbin/httpd
bin_apachectl /usr/sbin/apachectl
bin_suexec /usr/sbin/suexec
dir_docroot /var/www/html
file_conf_php_conf /etc/apache2/conf.d/php.conf
dir_modules /etc/apache2/modules
dir_conf_userdata /etc/apache2/conf.d/userdata
file_conf /etc/apache2/conf/httpd.conf
dir_base /etc/apache2
dir_conf /etc/apache2/conf.d
file_access_log /etc/apache2/logs/access_log
file_error_log /etc/apache2/logs/error_log
dir_conf_includes /etc/apache2/conf.d/includes
dir_run /run/apache2
file_conf_mime_types /etc/apache2/conf/mine.types
dir_logs /etc/apache2/logs
file_conf_srm_conf /etc/apache2/conf.d/srm.conf

For more information about EasyApache 4 and Apache, read our Apache documentation.

Additional Documentation