EasyApache 4 File System Layout


Last modified: August 4, 2023

Overview

This document provides an abridged list of the main EasyApache 4 file locations. It also links to the documentation with the other file locations.

EasyApache 4

You can find the EasyApache 4 files in the following locations:

  • /etc/cpanel/ea4/ — This directory contains EasyApache 4’s files and directories.
  • /etc/cpanel/ea4/profiles/custom/ — This directory contains your custom EasyApache 4 profiles. For more information, read our EasyApache 4 - Create a Profile documentation.

Apache

You can the find the main Apache files in the following locations:

  • /usr/sbin/httpd — The Apache binary file.
  • /etc/apache2/ — This directory contains Apache configuration files. It also contains include files and modules. This directory does not contain log files.
  • /etc/apache2/conf.d/ — The main Apache configuration file directory.
  • /etc/apache2/conf/httpd.conf — The primary Apache configuration file.
  • /var/log/apache2/ — This directory contains all the logs for the apache2 file and all the access logs.
  • /var/www/html/ — This directory contains the document root for the server. It contains the default pages that users can see.

For a full list of Apache file locations, read our Apache documentation. You can find additional information in our Advanced Apache Configuration documentation.

PHP

You can find key PHP files and executables in the following locations:

  • /usr/bin/php — This executable calls the php-cgi binary for the configured PHP version.
  • /usr/local/bin/php — This executable calls the php-cli binary for the configured PHP version.
  • /usr/bin/lsphp — This executable calls the LSPHP binary for the configured PHP version.
  • /usr/local/bin/ea-php## — This symlink calls the PHP CLI binary, where ## represents the two-digit PHP version
  • /usr/bin/ea-php## — This symlink calls the PHP CGI binary, where ## represents the two-digit PHP version.
  • /etc/cpanel/ea4/php.conf — This file contains the details of your PHP configuration.
  • /opt/cpanel/ea-php##/root/etc/php.d/ — The system scans this directory for PHP .ini files. In this example, ## represents the two-digit PHP version.

For more information about PHP in EasyApache 4, read our Introduction to PHP, Advanced PHP Configuration, and EasyApache 4 and the ea-php-cli Package documentation. For more information about PHP inheritance, read our PHP Inheritance documentation.

Additional Documentation