How To Create a Phpinfo Page ?

The phpinfo.php may be a reasonably file that enables you to observe the information regarding your dedicated server. The phpinfo file doesn’t consists of the MySQL data, however it holds all the version data regarding the PHP, Apache/IIS, GD and lots of alternative things on your server. Most of the times you’ll see several important settings details within the phpinfo file, which could be causing some problems with the installations.

There are several alternative things which will be seen using the phpinfo file, such as: current version, path to php.ini file, operating system version, hostname, timezone of your system, server API, path to native php.ini file, configuration options like log_errors, register_globals, post_max_size, memory_limit, safe_mode, etc… additionally to this, the phpinfo file can show you the active modules that are loaded with PHP and its existing configuration settings.

The phpinfo.php file may be a simple php script and will be created and stored anywhere on your dedicated server.

Step 1: So as to make a phpinfo file, simply open a plain text file and add the subsequent single line to that and save the file as phpinfo.php.

<? phpinfo(); ?>

Step 2: That’s all you need, now to your web server you have to simply upload the created file. You must upload the file to the precise destination you wish to check. Usually, it’ll be your public_html folder, though its upto you. you’ll even upload the file to any subdirectory on your server. To upload the file you ca use your favorite FTP client.

Step 3: So as to visit to the page in your browser, simply type the destination URL where you’ve uploaded the file. Here during this tutorial we’ve add the the file in the public_html directory thus, the url would be as shown below:

http://www.yourdomain.com/phpinfo.php

You have make sure that you replace your sitename with “yourdomain”.

Thus in this way you can view all the information about PHP for your dedicated server for that specific directory.