something wrong with XAMPP installation

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

something wrong with XAMPP installation

Postby ianxian » 07. February 2012 16:30

I just installed XAMPP 1.7.7 on Windows 7 64 bit. Loaded fine, Control Panel shows Apache and MySQL running, but running xampp\htdocs\index.php returns “ Something is wrong with the XAMPP installation :-( “. I noticed something was wrong before anyway because it wasn't running any (other) php script (so why did it run that one?). Is this because I am on 64 bit Windows 7? Or else, what other possibilities? What should I check?
ianxian
 
Posts: 3
Joined: 07. February 2012 06:13
Operating System: windows 7 64 bit

Re: something wrong with XAMPP installation

Postby Altrea » 07. February 2012 19:41

Please describe exactly HOW you run xampp\htdocs\index.php.
Which URL does your Browser address bar have if you get this error?
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: 11926
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: something wrong with XAMPP installation

Postby ianxian » 07. February 2012 19:47

browser URL = file:///C:/xampp/htdocs/index.php ; Whether I run it through my text editor or enter it directly into the address line (same end).
ianxian
 
Posts: 3
Joined: 07. February 2012 06:13
Operating System: windows 7 64 bit

Re: something wrong with XAMPP installation

Postby Altrea » 07. February 2012 20:10

ianxian wrote:browser URL = file:///C:/xampp/htdocs/index.php

And that is your problem. file:/// is a protocol which uses your local filesystem, not your webserver.
You can't simply open a .php file in your browser or doubleclicking it.

You have to request files with your browser, otherwise your webserver don't get the request and will never process it.
The correct url to start is http://localhost/index.php which request your file C:/xampp/htdocs/index.php (localhost = your Apaches DocumentRoot = C:\xampp\htdocs)

for further reading about the differences of file:/// and http://
http://en.wikipedia.org/wiki/File_URI_scheme
http://en.wikipedia.org/wiki/HTTP

best wishes,
Altrea
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: 11926
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: something wrong with XAMPP installation

Postby ianxian » 07. February 2012 20:39

Thank you. That was exactly the problem. I was relying on my text editor when I selected "Preview in browser", and assumed that it was sending it through the browser. I suppose I have configuration issues to address with the editor so I don't have to keep copying or typing directly into the browser each time. As you can tell, this is the beginning of a learning process, and these are my first tools for learning PHP and MySQL.
ianxian
 
Posts: 3
Joined: 07. February 2012 06:13
Operating System: windows 7 64 bit

Re: something wrong with XAMPP installation

Postby Altrea » 07. February 2012 21:11

just do one step after another after another... 8)
Everybody has started someday somewhere.
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: 11926
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 113 guests