How to Change PHP Variables

PHP settings can be customized using a .user.ini file.

To change PHP variables:

  1. Navigate to your website's document root (usually public_html).
  2. Locate the .user.ini file.
  3. Edit the desired values.
  4. Save the changes.

Common PHP settings include:

upload_max_filesize = 256M
memory_limit = 256M
post_max_size = 256M
max_input_vars = 15000
max_execution_time = 300
max_input_time = 3600

If a .user.ini file does not exist, you can create a new one manually.

Important: Changes made in .user.ini apply only to the directory where the file is located and its subdirectories.

For more details, see the related documentation below:

Switch PHP Versions & Tune PHP Settings (memory_limit, upload_max_filesize) on AXSpace

Was this answer helpful? 0 Users Found This Useful (0 Votes)