The Filename Your PHP Initialization File Need To Use

PHP initialization files are read when PHP starts up, these files can manage forms, server, and environmental variables as well as server-side cookies, temporary directories, error display, and error logging. The directives these files can control can be found in PHP’s documentation.

The name of your PHP initialization file depends on the type of hosting account you have at SANGKRIT.net:

  1. cPanel -> .user.ini1 located in /public_html, one per account
  2. Plesk -> .user.ini1 located in website root, one per site
  3. Managed WordPress .user.ini1,3 located in /html one per site
  4. Other Hosting -> php5.ini located at the root of account, one per account

If you don’t see the file that you need listed in your hosting account, you will need to create a file with the filename listed above for your hosting type.

  1. cPanel supports .user.ini files.
  2. .user.ini files do not let you modify all of the same settings as php.ini files (php’s documentation) and are only compatible with PHP versions 5.4 and above
  3. Managed WordPress accounts also support using php.ini files, but because of the difficulty in refreshing them when they’re updated, it is recommended to use .user.ini files instead.

When using cPanel, you can also modify the php.ini file when selecting which php version you are using by clicking Switch To PHP Options. Read view or change your PHP version in cPanel hosting.

One thought on “The Filename Your PHP Initialization File Need To Use”

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.