Page 1 of 1

XAMPP Install Error

PostPosted: 14. December 2013 02:46
by OzWaz
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

Re: XAMPP Install Error

PostPosted: 14. December 2013 02:58
by Altrea
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?

Re: XAMPP Install Error

PostPosted: 14. December 2013 03:33
by OzWaz
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

Re: XAMPP Install Error

PostPosted: 14. December 2013 04:17
by Altrea
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

Re: XAMPP Install Error

PostPosted: 14. December 2013 05:04
by OzWaz
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?

Re: XAMPP Install Error

PostPosted: 14. December 2013 05:11
by OzWaz
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"

Re: XAMPP Install Error

PostPosted: 14. December 2013 11:47
by Nobbie
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!

Re: XAMPP Install Error

PostPosted: 15. December 2013 01:54
by OzWaz
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

Re: XAMPP Install Error

PostPosted: 15. December 2013 02:53
by OzWaz
I have found the problem and it is now resolved

Thanks to those that offer their help

Waz

Re: XAMPP Install Error

PostPosted: 15. December 2013 09:34
by Altrea
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.