How to Create info.php

Follow these steps to create and view an info.php file on your server:

  1. Create a file called info.php.
  2. Access your webroot via FTP/SFTP or SSH.
  3. Inside the file, add the following code:
<?php
// Show all information, defaults to INFO_ALL
phpinfo();
?>

Accessing via SSH

Run the following command to create the file directly in your webroot:

nano /var/www/html/info.php

Add the code, save the file, and exit.

Uploading via FTP/SFTP

Create a text file named info.php on your computer, insert the PHP code, and upload it to your website's root directory.

Viewing the Page

Open a browser and visit:

http://yourdomain.com/info.php

Powered by 9stats Ltd