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 |
---|---|---|
Linux Hosting with cPanel | .user.ini | /public_html (one per account) |
Windows Hosting with Plesk | .user.ini | Website root (one per website) |
Managed 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.ini
file, 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.