View Server PHP Environment with phpinfo.php

This article provides a guide for how to view server PHP environment with phpinfo.php.

Launch 100% SSD VPS from $3.19/mo!

View Server PHP Environment with phpinfo.php

The phpinfo() function outputs a huge amount of information about the system you're using, such as (for example):

  • PHP Version
  • PHO environment
  • PHP options and extension available
  • OS version
  • predefined variables
  • ... and many others...

Create phpinfo.php File

To create a phpinfo file, simply open a plain text file in your web space, name it phpinfo.php, and insert in it the following line:

<?php
  phpinfo();
?>

Viewing the PHP Info

Access the following URL in the web browser: "http://yourwebaddress.com/phpinfo.php", replacing "yourwebaddress.com" with your actual domain name, to view the PHP information relating to your website.

Launch 100% SSD VPS from $3.19/mo!

Conclusion

You now know how to view server PHP environment with phpinfo.php.

  • php, phpinfo.php, phpinfo()
  • 15 Users Found This Useful
Was this answer helpful?

Related Articles

How to Create Sudo User on CentOS

This article provides step-by-step setup guide for adding Sudo user to CentOS system. The sudo...

How to Use Sudo

This article provides a guide to using a Sudo user on CentOS server. From the command line,...

Set Server Time Zones with Timedatectl

This article provides a guide to setting the server time and server time zone settings using...

htaccess RewriteRule Examples

Here are some useful mod_rewrite RewriteRule redirect examples that you can use in your .htaccess...

Using htaccess File to Block IPs

If your webserver is Apache, you may block access to your website from specific IP addresses...