bail give this a try, substituting the relevant username and password for the database connection:
PHP Code:
<?php
$apache_version = $_SERVER['SERVER_SOFTWARE'];
$php_version = phpversion();
$link = mysqli_connect("localhost", "db_user_name", "db_password");
$mysql_server_version = mysqli_get_server_info($link);
echo "
<p>Apache (Version: $apache_version) is running the following versions of PHP and MySQL:</br>
PHP: $php_version</br>
MySQL: $mysql_server_version</p>
";
?>
If that runs ok, then you'll find displayed the versions in use for the web server, MySQL and PHP. It also serves as a nice test to see if PHP can connect to MySQL ok.
Bookmarks