Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Beginner's question, so please bear with me.

I installed XAMPP under Windows XP, and PHP seems to work: when I click "phpinfo()" in http://localhost/xampp/ the complete list of settings is shown. However, when I check file:///C:/xampp/htdocs/index.php I get an error message saying "Something is wrong with the XAMPP installation :-(". Apparently the PHP code in this file is not being executed. Any ideas?


share|improve this question
up vote 2 down vote accepted

When you access http://localhost/xampp/index.php then your request is processed by apache web server, which invokes php interpreter.

Accessing the same file directly (via file:///C:/xampp/htdocs/index.php) does not go through the apache web server and that is why no php interpreter is invoked.

share|improve this answer
Thanks a million! – stevenvh Aug 8 '10 at 6:23

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.