There was a problem loading the comments.

How to Create a PHP Info File in DirectAdmin

Support Portal  »  Knowledgebase  »  Viewing Article

How to Create a PHP Info File in DirectAdmin

The info.php file is an excellent way to verify your PHP settings. Once created, you can access this page online to view the current PHP settings enabled for your website.

 

Follow these steps to create a PHP info file in DirectAdmin:

 

1. Log in to your DirectAdmin account.
For instructions on how to log in to your DirectAdmin account, please click here.

93fa78453a69c8622e20602c56d427ffbc75b0d076fae439ca797766e8b0a04e417dcdf46c774d2d?t=edf763a81977cd2c9a4f74c2f4d2f115

 

2. Under System Info & Files, click File Manager.

Screenshot: System Info & Files Section in DirectAdmin

 

3. Go to the public_html folder directory. (In this example, the domain name is example1.com.)

Screenshot: public_html Folder Directory

 

4. You must create a new file. Click the [+] NEW button on the top left-hand side of the screen. Hover over Text File, then click Plain Text.

Screenshot: [+] NEW Drop-Down List

 

5. Name the file “info.php”, then click the Create button.

Screenshot: Create File Form

 

6. Now that you have created the file, right-click on the file, then click Edit.

Screenshot: Right-Click Drop-Down List of info.php File

 

7. When the page opens, enter the following, then click Save.

<?php
phpinfo();
?>

Screenshot: Edit

 

8. Now that this file has been created, you can access the file to view your PHP settings.

Note: You would type in “yourdomainname/info.php” into your web browser. As per our example, you would type in “example1.com/info.php”.

Did you find this article useful?