1. Home
  2. Knowledge Base
  3. cPanel
  4. Settings
  5. How to make custom PHP changes using a .user.ini file

How to make custom PHP changes using a .user.ini file

Step 1: Open up File Manager through your control panel and ensure you are in the public_html (www) directory (also ensure that hidden files are visible).
Step 2: Then, click the New File link at the top of the page to access the tool to create your new .user.ini file.
Step 3: You will be presented with a popup allowing you to name and configure the new file. In the New File Name box, add the text .user.ini . Be sure to include the dot before “user” in the filename.
Step 4: Now, your .user.ini file has been created! The next step is to edit the file and add the lines that you would like to customize. Locate the file in the list and click on it 1 time to highlight it.
Step 5: Once the .user.ini file has been highlighted, click the Edit link at the top of the page.
Step 6: This will then open up the file editor so you can input your custom configuration settings. Since we’ve just created the .user.ini file, it will be blank. All you would need to do is add the line from the server-wide php.ini file you wish to change and the new values.

Related Articles