A .user.ini file can be used to control PHP settings in a specific directory. For a more in-depth explanation, visit our php.ini vs .user.ini article. You can create a .user.ini file in your directory of choice by following the tutorial below.
Creating a .user.ini File with ACC File Interface
If your hosting account offers the built-in file editor interface, you can use it to create and edit a .user.ini file.
- Log in to the Account Control Center (ACC)
- Click Files in the left sidebar and then click Web in the drop-down
- From here, navigate to the directory where you’d like to create a .user.ini file
- Once within your chosen directory, click +New File in the navigation bar
- In the Editing file text field, enter “.user.ini”
- In the large text field below, add the desired PHP directives
- When finished, click Create File
If the file is created successfully, it will now appear within your chosen directory.
Creating a .user.ini with SSH
If your hosting account doesn’t offer a file management interface, you may be able to use SSH to create and manage a .user.ini file. See your hosting package details for more information about your hosting account’s features.
- Connect to your hosting account via SSH
- Navigate to the directory where you’d like to create a .user.ini file
- Once in your chosen directory, create a new file named “.user.ini”
Be sure to include the period at the beginning of the filename. - Once created, edit the file and add your desired PHP directive
- When finished, be sure to save the file