Using info.php to view PHP version and installed modules


We are often asked by our customers what PHP version they are running on a domain or if a specific module is installed on their web server. Checking the PHP version and its modules can be done easily using an info.php page which we will explain how to create in this guide.


What is an info.php file?

info.php is a small PHP script that you can run on a Linux server to parse information regarding the PHP version, and the respective modules that are installed on that server.
Please Note: This will only work with our Linux hosting accounts.

How do I create an info.php file?

  1. Open a text editor such as notepad++.
  2. Paste the following lines into your text editor
  3. <?php
    phpinfo();
    ?>
    
  4. Select File > Save As.
  5. Set the Save as type: to All types.
  6. Save the file as info.php
  7. Upload the file to your domain via FTP

That’s it! Visiting the page you uploaded should show something similar to this:

Information about the server including the PHP version, and specific modules will be displayed within the page.

As always, if you have any questions please leave them in the comment section below.


Rate this post 1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading...

This entry was posted in General, PHP and tagged , . Bookmark the permalink.

Leave a Reply

Please DO NOT use this form to submit support requests, all information submitted will be PUBLICLY VISIBLE.

Required fields are marked *

Time limit is exhausted. Please reload CAPTCHA.