Categories

What filename does my PHP initialization file need to use?

< All Topics

The file name your PHP initialization must use depends on the type of hosting account you have.

Hosting account typeFilenameLocation
Linux Hosting with cPanel.user.ini/public_html (one per account)
Windows Hosting with Plesk.user.iniWebsite root (one per website)
Managed WordPress.user.ini/html (one per website)

 Note: Managed WordPress accounts also support using php.ini files, but because it’s difficult to refresh them when they’re updated, we recommend using .user.ini files instead.

Related steps

  • If changes to the .ini file aren’t visible on your website, see Changes to php.ini/.user.ini not taking effect.
  • For Linux Hosting, here’s how to view or change the PHP version.
  • For Windows Hosting with Plesk, here’s how to view or change the PHP version.
  • For Managed WordPress, here’s how to change the PHP version.

More info

  • See the PHP documentation for further info on PHP files.
  • .user.ini files are only compatible with PHP 5.4 and later, and you can’t modify all of the same settings as with php.ini files. For further info, see the PHP documentation for user.ini files.
Previous View database details for my Linux Hosting account
Next What is a dedicated IP?
Table of Contents