Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<List of php.ini directivesDescription of core php.ini directives>
^php.ini directivesLast updated: Mon, 26 Oct 2026

List of php.ini sections

This list includes the php.ini sections you can set to configure your PHP setup on a per Host or Path basis. These sections are optional.

These sections don't directly affect PHP. They are used to group other php.ini directives together and to get them to act upon a particular host or on a particular path.

These sections are used only in CGI/FastCGI mode and they can not set extension and zend_extension directives.

Directives set in these sections cannot be overridden by .user.ini files or at runtime, like those set with php_admin_value.

Regardless of their order in php.ini, [PATH=] takes precedence over [HOST=], and a deeper path over a shallower one. With PHP-FPM, these sections also take precedence over the pool configuration and FastCGI parameters, including php_admin_value and PHP_ADMIN_VALUE.

Sections
Name Changeable Changelog
[HOST=] INI_SYSTEM  
[PATH=] INI_SYSTEM  

Here's a short explanation of the configuration directives.

[HOST=<host>]

This section allows you to define a set of php.ini directives that will take effect on the named host.

Example #1 Activate full on-screen error reporting for dev. domain

[HOST=dev.site.com]
error_reporting = E_ALL
display_errors = On

[PATH=<path>]

This section allows you to define a set of php.ini directives that will take effect when a script runs from the named path.

Example #2 Add security script for protected areas

[PATH=/home/site/public/secure]
auto_prepend_file=security.php


<List of php.ini directivesDescription of core php.ini directives>
^php.ini directivesLast updated: Mon, 26 Oct 2026