How To Create a .user.ini file via the cPanel

  • Open up File Manager through your control panel (cPanel) and ensure you are in the public_html (www) directory (also ensure that “hidden files” are visible).

File Manager public_html

  • Then, click the “New File” link at the top of the page to access the tool to create your new .user.ini file.

File Manager New File

  • 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” (without quotes). Be sure to include the dot before “user” in the filename.

File Manager new userini file

  • 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.

File Manager userini file

  • Once the .user.ini file has been highlighted, click the “Edit” link at the top of the page.

File Manager Edit File

  • 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 value such as the example image below.

File Editor userini config

And that’s it! You’ve now created your .user.ini file and all of your custom PHP configuration changes added to the file will be used by your website!

  • 4 Users Found This Useful
Was this answer helpful?

Related Articles

What are cron jobs?

Cron jobs are routines that execute a script on any given interval. For instance, you may have a...

What are error pages?

Error pages are the pages displayed when a user tries to access a location on your site and...

How do I configure a cron job?

Login to cPanel. Locate and click on the "Cron Jobs" icon under the "Advanced" category....

What does Network Tools do?

Network Tools enables you to query a domain and retreieve relevant information about that domain....

Make Custom PHP Changes Using .user.ini File

Pelican Server - At times, you will want to use software that requires a custom php.ini file or...

Powered by WHMCompleteSolution