XAMPP doesn't run php files

Problems with the Windows version of XAMPP, questions, comments, and anything related.

XAMPP doesn't run php files

Postby Owen Walker » 16. May 2016 15:26

Further to my last post (in which I wanted help with Apache not running php files), when I open c:\xampp\htaccess\index.php in Mozilla Firefox, I get as output not the code, as I get in IE, but rather the message "Something is wrong with the XAMPP installation". This is interesting because the text of the index.php file is:

<?php
if (!empty($_SERVER['HTTPS']) && ('on' == $_SERVER['HTTPS'])) {
$uri = 'https://';
} else {
$uri = 'http://';
}
$uri .= $_SERVER['HTTP_HOST'];
header('Location: '.$uri.'/dashboard/');
exit;
?>
Something is wrong with the XAMPP installation :-(

So apache is here running the program, but the php part isn't working.
Owen Walker
 
Posts: 4
Joined: 16. May 2016 14:46
XAMPP version: 7.0.6
Operating System: Windows 10

Re: XAMPP doesn't run php files

Postby JJ_Tagy » 16. May 2016 17:01

Owen Walker wrote:Further to my last post...

Did it disappear? I see it. Instead of creating another post on the same problem, just add on to your existing thread.
JJ_Tagy
 
Posts: 788
Joined: 30. January 2012 13:44
XAMPP version: 5.5.15
Operating System: Windows 10 Pro x64


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 97 guests