How to change PHP ini using .user.ini file

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 >> 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

    Important:

    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.

  • edit php ini, php.ini, change php.ini, change upload_max_filesize, change php memory_limit

Esta resposta lhe foi útil?

5298 Usuários acharam útil