Codex tools: Log in
The easiest way to collect the information is to make use of a PHP function called phpinfo(). The phpinfo() function will query your (or your host's) server and generate a report with a long list of data. Note: Remember to bookmark this page, because, in the future, a volunteer in the WordPress Support Forum may ask you to use this method to get information to assist them in troubleshooting a question you asked on the Support Forum.
Warning: This file will contain some moderately sensitive information about your server that could help an attacker gain access to it. Make sure that you give the file an obscure filename and delete it as soon as you're done.
In a text editor, copy and paste the following command:
<?php phpinfo(); ?>
Make sure there are no spaces before or after the command, just the command, and save the file as something obscure like sffdsajk234.php. It's important to make the file difficult for hackers to file, because it will contain information that could help them compromise your server.
Upload the file to the root directory of your site. Then type in the address to the file in your browser:
The result will be several pages long and it will contain a ton of information. Though your data may be in a different order, for the most part, you just need the summary items that lists things like this:
|System||Windows NT FRONTIER 5.2 build 3790|
|Build Date||Apr 14 2004 17:17:11|
|Apache Version||Apache/1.3.31 (Unix) mod_log_bytes/0.3 FrontPage/18.104.22.16835 PHP/4.3.10 mod_ssl/2.8.19 OpenSSL/0.9.7d|
|Under MySQL: Client API version||3.23.49|
That's it. Make sure you remember to delete the file once you're done with it, because leaving it there could help hackers compromise your server.