Using .user.ini files
When you create a .user.ini file, any PHP directives in the file are only active in that directory (and any subdirectories beneath it). This enables you to have different PHP settings for different directories. This may be necessary, for example, if you install two applications on your account that have different PHP requirements. To enable custom settings in a .user.ini file, follow these steps:-
Use your preferred text editor to create a .user.ini file in the directory where you want to enable custom PHP settings.
🚧 Important Make sure you include the leading period at the start of the filename:
.user.ini - In the .user.ini file, add the setting (or settings) that you want active in the directory. For example, to activate error reporting for scripts in the directory, add the following directive:
- Save your changes to the .user.ini file. The new settings take effect immediately.