Change PHP settings for my hosting account
If the default PHP settings for your hosting account don't meet the requirements of your website or application, follow these steps to change your PHP settings.
Note: All of our shared hosting platforms use a .user.ini file for PHP directives. Not all INI settings can be changed in a .user.ini. Changes are limited to settings with the modes PHP_INI_PERDIR and PHP_INI_USER from the list of php.ini directives at PHP.net.
- Read our article about PHP initialization file.
- Access the File Manager
Web Hosting (cPanel) |Windows Hosting (Plesk) |Managed WordPress |VPS - Look for the .user.ini file in the root directory. That's the file you need to edit in the next step.
If you can't find that file in the root directory, use a text editor (for example, in cPanel use
File Manager) to create the file and then save it in the root directory. Be sure you name the file .user.ini. - Edit the file:
Example:
memory_limit = 128M max_input_vars = 2000 upload_max_filesize = 64M post_max_size = 64M max_execution_time = 120
Note: For more specific info on these PHP settings, see the PHP documentation for core php.ini directives. - Use a phpinfo file to confirm the changes are complete.
More info
- Take a look at Web Hosting
- For more information about our premium support for WordPress, please visit our WP Premium Support Catalog.