How to Change PHP Variables
PHP settings can be customized using a .user.ini file.
To change PHP variables:
- Navigate to your website's document root (usually
public_html). - Locate the
.user.inifile. - Edit the desired values.
- 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