by xampp_wanna_use » 03. May 2021 00:21
If I go here: http://richstrinismini.lan/dashboard/phpinfo.php it works as expected.
when I go here: richstrinismini.lan/mcsga/phpinfo.php it sends me to google to search for that.
The files are identical: <?php phpinfo(); ?>
Oddly when I create a php file in dashboard and try to run it I get the same behavior where it's sending me to google.
This is content of that file:
<?php
$servername = "localhost";
$username = "test_user";
$password = "blah";
// Create connection
$conn = new mysqli($servername, $username, $password);
// Check connection
if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);
}
echo "Connected successfully";
?>