How to specify a custom php.ini for a web site
Linux: Creating a new php.ini file
If you do not have a php.ini file in your public_html folder you can create one by following the steps below.
- Log in to cPanel, if you haven’t already done so
- Open File Manager
- Click New File
- In the box labelled New File Name: type php.ini
- Ensure New file will be created in: contains /public_html
- Click Create New File