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:
- cPanel ->
.user.ini1 located in /public_html, one per account
- Plesk ->
.user.ini1 located in website root, one per site
- Managed WordPress
.user.ini1,3 located in /html one per site
- 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.
- cPanel supports .user.ini files.
- .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
- 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.