How to Create a phpinfo.php File for Addon Domains Print

  • cPanel, phpinfo.php, Addon Domains
  • 512

To view PHP configuration details for an addon domain, you can create a phpinfo.php file. Follow the steps below to generate and access this file for your addon domain.

STEP 1: Log in to cPanel.

There are two methods to log into your cPanel.

  • Method 1: Log in to your cPanel directly.
  • Method 2: Log in to your cPanel through your Customer Portal.

Through your Customer Portal;                

  • Log in to your Customer Portal.
  • Click on "Log in to cPanel".

Login - to - cPanel

STEP 2: Locate the Domains section and click Domains.

cPanel - Domains Section - Domains

STEP 3: Locate the addon domain where you want to create the phpinfo.php file.

STEP 4: Click on its document root.

Domains Page - Click on Document Root

STEP 5: In the top-right menu, click + File to create a new file, and name it phpinfo.php.

STEP 6: Click Create New File.

cPanel - + File - phpinfo.php - Create New File

STEP 7: Right-click the phpinfo.php file and select Edit, then click Edit again.

phpinfo.php File - Edit

STEP 8: Paste the code provided below into the file.

<?phpphpinfo();?>

STEP 9: Once done, click Save Changes.

phpinfo.php - Paste Code - Save Changes

 

Checking PHP Information Using a Browser

You should have a phpinfo.php file in your addon directory by now. So, all that’s left is to access the file by adding /phpinfo.php at the end of your domain name.

Checking PHP Information Using a Browser


Was this answer helpful?

« Back