Step 1: Login to the cPanel and go to File Manager. Create a file named “info.php” under public_html.
Step 2: Open the file and add the following code in a text editor.
Step 3: Now you need to call the newly created phpinfo.php page from your browser. For example, it may be "http://yourdomain.com.au/info.php". You should see something like the following:
Note: Once you have the information we strongly urge you to delete phpinfo.php file from your server, as it may cause a security risk by displaying information about your system.