EasyApache 4 File System Layout
Last modified: September 26, 2024
Overview
This document provides an abridged list of the main EasyApache 4 file locations, and contains links to documentation with extended lists for specific use cases.
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 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. It contains the following directory and file:/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 the log files for the/etc/apache2
directory, including 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 About 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 thephp-cgi
binary for the configured PHP version. This allows you to configure PHP for web servers./usr/local/bin/php
— This executable calls thephp-cli
binary for the configured PHP version. This allows you to use PHP on the command line./usr/bin/lsphp
— This executable calls theLSPHP
binary for the configured PHP version. This allows Litespeed to interact with PHP./usr/local/bin/ea-php##
— This symlink calls a specificphp-cli
binary, where##
represents the two-digit PHP version./usr/bin/ea-php##
— This symlink calls a specificphp-cgi
binary, where##
represents the two-digit PHP version./etc/cpanel/ea4/php.conf
— This file contains the details of your PHP configuration. We strongly recommend that you do not edit this file manually, and instead use WHM’s MultiPHP Manager interface (WHM » Home » Software » MultiPHP Manager) or therebuild_phpconf
script./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 About 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.