If you are using cPanel to manage your website, you may have noticed the ability to create a PHP INI file. While this may seem daunting at first, creating a PHP INI file is actually quite simple and can provide many useful functions. In this blog post, we will discuss what a PHP INI file is, why it is beneficial, and how to set up one in cPanel.
What is a PHP INI File?
A PHP INI file stands for php initialisation file. It is an optional configuration file that allows you to customise the way that Apache (the web server software) interacts with your website’s files. This includes setting up parameters such as maximum memory size, error logging levels, display errors, and more.
Why Should You Use a PHP INI File?
By having an established set of rules for apache to follow when interacting with your website’s files, it ensures that your site runs smoothly and securely. It also allows you to troubleshoot any issues with your website more quickly since all of the important information regarding its performance can be found within the same place. In addition to this, it helps maintain consistency across pages since all of them will use the same settings provided by the INI file.
How To Create a PHP INI File in cPanel
Creating a php ini file in cpanel is quite straightforward and can be done with just a few clicks of the mouse. First off, log into your cpanel account and navigate to ‘Advanced’ > ‘PHP Version Manager’ > ‘Edit Configuration’ (under ‘Actions’). Then click on the option labeled ‘Create/Upload PHP Configuration File’ which will take you to the page where you can create or upload an existing php configuration file for use on your website. Once you have finished editing or uploading, save it and then restart apache for changes to take effect.
Setting up a php ini file in cpanel may seem intimidating at first but it really isn’t as hard as it looks! Once you get familiar with what each parameter does and how they interact with each other, creating one yourself becomes much easier. The benefits of having an optimized configuration far outweigh any initial learning curve which makes utilizing this feature well worth it!

