<?php
// Check if PHP is working
echo "PHP is working!<br>";

// Check if Apache is properly configured
if (function_exists('apache_get_modules')) {
    echo "Apache modules loaded:<br>";
    print_r(apache_get_modules());
} else {
    echo "Apache module check not available<br>";
}

// Check PHP configuration
echo "<br>PHP Configuration:<br>";
echo "PHP Version: " . phpversion() . "<br>";
echo "Loaded Extensions:<br>";
print_r(get_loaded_extensions());

// Check file permissions
echo "<br>File permissions:<br>";
echo "Current directory: " . getcwd() . "<br>";
echo "Is writable: " . (is_writable('.') ? 'Yes' : 'No') . "<br>";
?> 