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


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 (cPanel >> Home  >> Files >> File Manager ).

    • In cPanel & WHM version 64 and earlier, select Web Root , select the Show hidden files checkbox, and then click Go .  
    • In cPanel & WHM version 66 and later, click Settings, select the Show hidden files checkbox, and click Save.
  3. Navigate to the target directory.
  4. Create a new file.
    • In cPanel & WHM version 64 and earlier, click New File.
    • In cPanel & WHM version 66 and later, click + File.
  5. Enter .user.ini


    You must include the period that precedes the file name.

  6. Click Create New File.
  7. Select the new file in the list of files and click Edit.
  8. Enter the PHP directives that you wish to adjust for the directory.
  9. Click Save.

Additional documentation