Page 1 of 1

something wrong with XAMPP installation

PostPosted: 07. February 2012 16:30
by ianxian
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?

Re: something wrong with XAMPP installation

PostPosted: 07. February 2012 19:41
by Altrea
Please describe exactly HOW you run xampp\htdocs\index.php.
Which URL does your Browser address bar have if you get this error?

Re: something wrong with XAMPP installation

PostPosted: 07. February 2012 19:47
by ianxian
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).

Re: something wrong with XAMPP installation

PostPosted: 07. February 2012 20:10
by Altrea
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

Re: something wrong with XAMPP installation

PostPosted: 07. February 2012 20:39
by ianxian
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.

Re: something wrong with XAMPP installation

PostPosted: 07. February 2012 21:11
by Altrea
just do one step after another after another... 8)
Everybody has started someday somewhere.