Page 1 of 1

Something is wrong with the XAMPP installation :-(

PostPosted: 11. December 2009 09:21
by Alistair
My index.php has gone mad. It was the only way I could make my footer work, have it in the index.php file, now though it's gone mad and that's what it shows. Goes without saying I lost my footer, but I fear I might have other repercussions too, how to restore it to how it was?

<?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 :-(

Re: Something is wrong with the XAMPP installation :-(

PostPosted: 14. December 2009 09:01
by Alistair
No one has ever seen this error message before then? Should I reinstall Xampp? Please tell me not to, I fear I'll lose all my work...

Re: Something is wrong with the XAMPP installation :-(

PostPosted: 14. December 2009 09:32
by Izzy
Missing support info - what XAMPP version and which Windows OS?

Your first post I don't understand.

The code you have posted is the XAMPP index.php file and shows the error message when there is no php parsing by the Apache server.

Use your own index.php file not the xampp index.php for your footer as the sole purpose of the XAMPP index.php file is to redirect to the index.php file in the htdocs\xampp folder.

How did you install XAMPP?

Any clues in the \xampp\apache\logs\error.log file?

Is Apache and MySQL running - check using the XAMPP Control Panel.

More helpful reading for new XAMPP users:
\xampp\readme_en.txt file
or
http://www.apachefriends.org/winxampp/readme_en.txt

http://www.apachefriends.org/en/xampp-windows.html
http://www.apachefriends.org/en/faq-xampp-windows.html

Re: Something is wrong with the XAMPP installation :-(

PostPosted: 15. December 2009 18:24
by Alistair
Hi, I'm using the latest version of Xampp and Windows XP service pack 3.

You say there is no php parsing by the Apache server, that I really don't understand, but if it's no cause of concerne it's fine by me.

What do you mean by my own index.php file? I'm a bit confused, how many are there?

I installed Xampp following the instructions and it's worked brilliantly for months, and it's still working great. My only worry is that I lost my d^mn footer.

Re: Something is wrong with the XAMPP installation :-(

PostPosted: 16. December 2009 08:38
by Alistair
Hey, I found the index.php file you mentioned, sorry sorry my mistake I didn't see it and used the xampp one. Thanks

Re: Something is wrong with the XAMPP installation :-(

PostPosted: 18. January 2015 20:28
by dendic3840
I have this problem and re-installed xampp but continue to have the same problem. I read the responses but I fail to understand this index.php issue. Here is the error from my error log.
[Sat Jan 17 13:51:46.436302 2015] [:error] [pid 4420:tid 1724] [client ::1:60037] script 'C:/xampp/htdocs/xampp/imdex.php' not found or unable to stat
Please help me I'v been stuck on this problem for a week.

Re: Something is wrong with the XAMPP installation :-(

PostPosted: 18. January 2015 23:06
by Nobbie
dendic3840 wrote:I have this problem and re-installed xampp but continue to have the same problem. I read the responses but I fail to understand this index.php issue. Here is the error from my error log.
[Sat Jan 17 13:51:46.436302 2015] [:error] [pid 4420:tid 1724] [client ::1:60037] script 'C:/xampp/htdocs/xampp/imdex.php' not found or unable to stat
Please help me I'v been stuck on this problem for a week.


DO NOT double click index.php in your explorer, instead enter a valid URL into the browser (i.e. http://localhost/xampp).

Anyway, you have a typo in your message: "C:/xampp/htdocs/xampp/imdex.php". File imdex.php is unknown.

Re: Something is wrong with the XAMPP installation :-(

PostPosted: 19. January 2015 16:23
by dendic3840
This is not error but the response back from apache when I typed localhost.

Re: Something is wrong with the XAMPP installation :-(

PostPosted: 19. January 2015 17:32
by Altrea
no no never.
There is definitely no imdex.php reference in the default configs, only index.php