What filename does my PHP initialization file need to use?
You can configure some of your PHP settings using a PHP initialization file. The file name your PHP initialization uses depends on the type of hosting account you have.
| Hosting account type | Filename | Location | 
|---|---|---|
| Web Hosting (cPanel) | .user.ini | /public_html(one per account) | 
| Windows Hosting with Plesk | .user.ini | Website root (one per website) | 
| Managed Hosting for WordPress | .user.ini | /html(one per website) | 
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.
Related steps
- To see changes you made to the .user.inifile, check the PHP settings with a phpinfo file.
More info
- What is a .user.ini file?
- See the PHP documentation for more info on PHP files.