Step 1: Log into your cPanel account
Step 2: Go to Files section and File Manager menu
Step 2: Navigate to public_html directory, click on new file and create a phpinfo.php file.
Step 3. Right click on the phpinfo.php file and choose code editor to edit
Step 4. Add the lines of the code provided below to the file and click on ‘Save’ to save the changes made.
Step 5. To see the detailed information about PHP configuration of your account, open http://yourdomain.com/phpinfo.php link in your browser, replacing yourdomain.com with your main domain name.