To change the php.ini file in cPanel, you can follow these steps:
Log in to your cPanel account using your username and password.
Once logged in, navigate to the "Software" or "Service" section and look for the "Select PHP Version" or "MultiPHP Manager" option. Click on it.
In the PHP version selector, you will see the current version of PHP being used by your account. Click on the "Options" or "Settings" link next to it.
A new page will open, showing the PHP options and settings. Here, you will find a link that says "Switch to PHP Options" or "Switch to PHP Settings." Click on it.
You will now see a list of configurable PHP directives and their current values. Locate the directive you want to modify, such as "upload_max_filesize" or "memory_limit."
Click on the current value of the directive, and a dropdown or input field will appear. Enter the desired value for the directive.
After making the necessary changes, scroll down to the bottom of the page and click on the "Save" or "Apply" button to save your modifications.
The php.ini file will be automatically updated with the new values you specified.