The info.php file is a good 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:
-
Log in to your DirectAdmin account. For instructions on how to log in to your DirectAdmin account, please click here.
-
Once logged in, under System Info & Files, click on the File Manager icon.

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

- You will need to 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](/images/blog/HowToCreateAPHPInfoFileInDirectAdmin_Image3.png)
- Name the file “info.php”, then click the CREATE button.

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

- When the page opens up, enter the following, then click Save.
<?php
phpinfo();
?>

Now that this file has been created, you can access the file to view your PHP settings.
You would type in “yourdomainname/info.php” into your web browser.
As per our example, you would type in “example1.com/info.php”.