bail give this a try, substituting the relevant username and password for the database connection:
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.
$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);
<p>Apache (Version: $apache_version) is running the following versions of PHP and MySQL:</br>