Page 1 of 1

test.php doesn't work

PostPosted: 28. January 2009 23:37
by kendrickdk
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?

Re: test.php doesn't work

PostPosted: 28. January 2009 23:45
by Izzy
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?

Re: test.php doesn't work

PostPosted: 29. January 2009 00:38
by kendrickdk
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.

Re: test.php doesn't work

PostPosted: 29. January 2009 00:46
by kendrickdk
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.

Re: test.php doesn't work

PostPosted: 29. January 2009 00:50
by Izzy
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.