1. Home
  2. Hosting
  3. cPanel Hosting
  4. How to Change Your PHP INI Basic Settings in cPanel

How to Change Your PHP INI Basic Settings in cPanel

Here is a step-by-step on how you can change your php.ini directives for one or more sites in your cPanel

This article assumes you are already logged into your cPanel account, if you do not already know how, please review How To Change Your Password as it will teach you how to log in from your client area.

  1. After logging in to your cPanel dashboard, scroll down and navigate to the Software Section. Inside that section click on the MultiPHP INI Editor icon.

    location of php.ini in cpanel
  2. This will bring you to the MultPHP INI Editor Page. It defaults to the Basic Mode, which is where you need to be. In the dropdown box, select the domain you want to work on. After doing this. A list of PHP Directives will display. with corresponding Information, and finally, a Settings Column, where you can either toggle the values or manually enter the setting you desire.

    select a location - domain
  3. For example in PHP 7.4,. the default PHP Directive settings are:

    allow_url_fopen enabled
    display errors disabled
    enable_dl disabled
    file_uploads enabled
    max_excution_time 30
    max_input_time 60
    max_input_vars 5000
    memory_limit 256M
    post_max_size 32M
    session.gc_maxlifetime 1440
    session_save_path /var/cpanel/php/sessions/ea-php74
    upload_max_filesize 32M
  4. A detailed description of core php.ini directives can be found at php.net. Below are the PHP Directives that you can change yourself via your cPanel:

    php directives



Not a customer? Did you like this knowledgebase article?
If you did like this knowledgebase article and you are not currently a customer but are looking for a trusted offshore host, feel free to browse what we have to offer over at OrangeWebsite. We have products that fit everyone from individuals to small, medium, and big-sized businesses. We just might be what you are looking for.

Updated on July 29, 2024
Was this article helpful?

Related Articles