XAMPP Install Error

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

XAMPP Install Error

Postby OzWaz » 14. December 2013 02:46

I have completed installation XAMPP on my computer. OS Windows 7 - 64 bit.

When I open the Control Panel (V3.2.1) I can start both Apache and MYSQL successfully

When I open index.php in Firefox browser window I get the message " Something is wrong with the XAMPP installation :-("

This is supported by the situation that any PHP code placed in a file and opened in the browser will not function

I have no idea what the problem could be and so far have not been able to locate any documentation that might suggest where to look or what to try

Could anyone be of assistance please?

Thanks

Waz
User avatar
OzWaz
 
Posts: 12
Joined: 02. December 2013 13:23
XAMPP Version: 1.8.3-3
Operating System: windows7

Re: XAMPP Install Error

Postby Altrea » 14. December 2013 02:58

OzWaz wrote:When I open index.php in Firefox browser window I get the message " Something is wrong with the XAMPP installation :-("

How do you "open" the index.php file in your browser?
Which address does your browsers address bar show if you get that message?
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 6494
Joined: 17. August 2009 13:05
XAMPP Version: 5.5.19
Operating System: W7Ux64

Re: XAMPP Install Error

Postby OzWaz » 14. December 2013 03:33

How do you "open" the index.php file in your browser=
Open Browser
File- Open file
select index.php
Which address does your browsers address bar show if you get that message=

file path = file:///C:/xampp/htdocs/index.php
User avatar
OzWaz
 
Posts: 12
Joined: 02. December 2013 13:23
XAMPP Version: 1.8.3-3
Operating System: windows7

Re: XAMPP Install Error

Postby Altrea » 14. December 2013 04:17

OzWaz wrote:Open Browser
File- Open file
select index.php

That can't work. Your Browser doesn't know that your php files need to be parsed by a php parser first (php is a serverside programming language, so the processing needs to be done by the server - not like rendering of html files which is done by the clients browser).

You need to request the file with the help of an URL as if it would be on any external server:
http://localhost/index.php
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 6494
Joined: 17. August 2009 13:05
XAMPP Version: 5.5.19
Operating System: W7Ux64

Re: XAMPP Install Error

Postby OzWaz » 14. December 2013 05:04

Okay

When I type (C&P) "http://localhost/index.php" into the browser window I get the XAMPP "Welcome" page - Not the index.php file

What should I try next?
User avatar
OzWaz
 
Posts: 12
Joined: 02. December 2013 13:23
XAMPP Version: 1.8.3-3
Operating System: windows7

Re: XAMPP Install Error

Postby OzWaz » 14. December 2013 05:11

Have also tried
http://localhost/xampp/htdocs/index.php AND

http://localhost/htdocs/index.php

and got

"Object not found!

The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again.

If you think this is a server error, please contact the webmaster.
Error 404
localhost
Apache/2.4.4 (Win32) OpenSSL/0.9.8y PHP/5.4.19"
User avatar
OzWaz
 
Posts: 12
Joined: 02. December 2013 13:23
XAMPP Version: 1.8.3-3
Operating System: windows7

Re: XAMPP Install Error

Postby Nobbie » 14. December 2013 11:47

OzWaz wrote:When I type (C&P) "http://localhost/index.php" into the browser window I get the XAMPP "Welcome" page - Not the index.php file ?


?????

The index.php in localhost IS(!!) the Xampp "Welcome" page! Everything works correctly!
Nobbie
 
Posts: 6502
Joined: 09. March 2008 13:04

Re: XAMPP Install Error

Postby OzWaz » 15. December 2013 01:54

The XAMPP welcome page in the system I have installed sit here:

http://localhost/xampp/

The index.php page sit here:

http://localhost/xampp/htdocs/index.php

contains this code
<?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 :-(


and gives this result when you attempt to open it using that browser window

Object not found!

The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again.

If you think this is a server error, please contact the webmaster.

Error 404

localhost
Apache/2.4.4 (Win32) OpenSSL/0.9.8y PHP/5.4.19
User avatar
OzWaz
 
Posts: 12
Joined: 02. December 2013 13:23
XAMPP Version: 1.8.3-3
Operating System: windows7

Re: XAMPP Install Error

Postby OzWaz » 15. December 2013 02:53

I have found the problem and it is now resolved

Thanks to those that offer their help

Waz
User avatar
OzWaz
 
Posts: 12
Joined: 02. December 2013 13:23
XAMPP Version: 1.8.3-3
Operating System: windows7

Re: XAMPP Install Error

Postby Altrea » 15. December 2013 09:34

You are requesting and getting free help from volunteers here spending their free time to providing help to solve issues of others.
Just posting the issue is solved without explaining how and why it is solved for you is worthless from the community side of view.
Other users should get the chance to participate from your issues and solutions.
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 6494
Joined: 17. August 2009 13:05
XAMPP Version: 5.5.19
Operating System: W7Ux64


Return to XAMPP for Windows

Who is online

Users browsing this forum: ben1960 and 51 guests