test.php doesn't work

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

test.php doesn't work

Postby kendrickdk » 28. January 2009 23:37

Hello, I've tried installing mysql, apache 2.2 and PHP using my textbook from school and did everything how it said to do it. Everything looked fine but when I tried the test.php, it did not work. I tried every fix described on the net and still no go. So, now I uninstall everything and start from scratch using xampp installer for windows. Everything looks great and no errors on installation. But again, test.php does not work.

I'm not an expert at this stuff. Just taking a class on www structures. I thought XAMPP was supposed to be awesome but it doesn't work for me. Any ideas of what is going on?
kendrickdk
 
Posts: 3
Joined: 28. January 2009 23:26

Re: test.php doesn't work

Postby Izzy » 28. January 2009 23:45

How are you trying to access test.php - the address you type in your browser and where did you put the test.php file in the xampp folder?
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06

Re: test.php doesn't work

Postby kendrickdk » 29. January 2009 00:38

I finally got it to work, but I had to enter http://127.0.0.1/xampp/test.php

That isn't how the instructions said to test, but read this on another post. After that I accidentally double clicked on start apache server button in the xampp control panel... then apache would not start! Jeez. I finally fixed that by uninstalling IIS. But now test.php is not working again. The splash screen is working now, and when I ran status it says everything is running except SMTP service??? So I guess I'll reinstall IIS and hope I don't accidentally hit that button twice.

My next question would be: Do I need IIS installed for all this stuff to work?

This stuff is way sensitive.
kendrickdk
 
Posts: 3
Joined: 28. January 2009 23:26

Re: test.php doesn't work

Postby kendrickdk » 29. January 2009 00:46

I just checked it and it's working without installing IIS. I made a test.php and put it in c:/xampp/htdocs folder and it works! :D

index.php works too. Nice. Maybe I can get some work done now.
kendrickdk
 
Posts: 3
Joined: 28. January 2009 23:26

Re: test.php doesn't work

Postby Izzy » 29. January 2009 00:50

Don't install IIS again if you are using XAMPP - use one or the other.

Your test.php file is best in the htdocs folder then http://localhost/test.php or http://127.0.0.1/test.php should find it.

Look in C:\Windows\system32\drivers\etc\HOSTS file (drag it into notepad).

Find this line:
::1 localhost
Comment it out like so
# ::1 localhost

Save and close the file.

Now instead of using http://127.0.0.1 you will also be able to use http://localhost.

PHP files have to be parsed by the server so double clicking on a PHP file will not load it.

Try and reboot after all the changes and see if these issues have been cleared up.

XAMPP is excellent and should work out of the box if all installation instruction are observed.

BTW you posted while I was compiling this reply.
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 122 guests