What filename does my PHP initialization file need to use?

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

Hosting account type Filename Location
Web & Classic Hosting (except as noted below) php5.ini Root of account (one per account)
Web & Classic Hosting: Linux with PHP 5.6 php56.ini Root of account (one per account)
Web & Classic Hosting: Windows with PHP 5.4 .user.ini Root of account (one per account)
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)

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

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.
  • Web & Classic Hosting accounts running Windows with IIS 6 don't support PHP initialization files.

Hjalp denne artikel?
Tak for din feedback. Benyt telefonnummeret til support eller chat-funktionen ovenfor, hvis du vil tale med en kundeservicerepræsentant.
Det glæder os, at vi kunne hjælpe! Er der andet, vi kan gøre for dig?
Beklager. Fortæl os, hvad du fandt forvirrende, eller hvorfor løsningen ikke løste dit problem.