Page tree
Skip to end of metadata
Go to start of metadata


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 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:

AliasFile 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
  • CentOS 6: /var/run/apache2
  • CentOS 7: /run/apache2
file_conf_mime_types /etc/mime.type
dir_logs /etc/apache2/logs
file_conf_srm_conf /etc/apache2/conf.d/srm.conf

Additional documentation