Child pages
  • How to Customize PHP Directives
Skip to end of metadata
Go to start of metadata

Overview

The PHP .user.ini file allows you to customize PHP directives on a per-directory basis.

System requirements

  • You must use PHP version 5.3.0 or higher.
  • You cannot use the DSO PHP handler.

Configuration requirements

We recommend that you review the .user.ini PHP documentation before you implement any configuration changes.

User.ini file setup

To set up a user.ini file, perform the following steps:

  1. Log in to your cPanel account.
  2. Navigate to the cPanel's File Manager interface ( Home >> Files >> File Manager ).
  3. Click the Web Root.
  4. Select the Show hidden files checkbox.
  5. Click Go.
  6. Click the target directory.
  7. Click New File.
  8. In the Create a New Field text box, enter .user.ini

    Note:

    Do not forget to include the period that precedes the file name.

  9. Click Create New File.
  10. Click .user.ini and click Edit.
  11. Enter the PHP directives that you wish to adjust for the directory and click Save.

Additional documentation