Page 1 of 1

Couldn't open http://localhost

PostPosted: 17. March 2013 04:59
by theo999
I couldn't open localhost, but when I start xampp, it started normally.
I installed Xampp version 1.8.1 on linux mint 13(maya) - 32 bit

This is the result of me starting /opt/lampp/lampp start:
Code: Select all
/opt/lampp/lampp start
Starting XAMPP for Linux 1.8.1...
XAMPP: Starting Apache with SSL (and PHP5)...
XAMPP: Starting MySQL...
XAMPP: Starting ProFTPD...
XAMPP for Linux started.


but when I open http://localhost, I downloaded some text named "download":
Code: Select all
<?php
   if (!empty($_SERVER['HTTPS']) && ('on' == $_SERVER['HTTPS'])) {
      $uri = 'https://';
   } else {
      $uri = 'http://';
   }
   $uri .= $_SERVER['HTTP_HOST'];
   header('Location: '.$uri.'/xampp/');
   exit;
?>
Something is wrong with the XAMPP installation :-(


I already tried re-installing XAMPP, but it still didn't work. Please help :(

Re: Couldn't open http://localhost

PostPosted: 17. March 2013 05:02
by Altrea