Page 1 of 1

Which Apache?

PostPosted: 31. August 2011 13:43
by TSIMikeW
I have a new computer with (ugh) Windows 7. I downloaded xampp. The control panel says that it is version 2.5 Windows 6.1 Build Platform 2. Current directory c:\xampp. The Apache server shows as Running. No other servers are running.

I placed my php files in c:\xampp\apache\htdocs. When I try to access one of them in localhost, the browser cannot find it. I changed the text displayed in c:\xampp\apache\htdocs\index.html, but when I access http://localhost/index.html, it still says "It works!" So, the index.html file being used is evidently in a different folder.

I noticed that there is another copy of Apache in c:\Program Files (x86). The "Date modified" is the same as the one in xampp. I did not download Apache by hand, so I assume that the xampp installation created both.

I am willing to start over. Are there idiot-proof instructions somewhere as to how to download, install, and configure Apache, php, and mysql for Windows 7?

TSIMikeW

Posts: 1
Joined: 30. August 2011 15:56

Re: Which Apache?

PostPosted: 31. August 2011 14:30
by Altrea
TSIMikeW wrote:The control panel says that it is version 2.5

Thats the control panel version. More helpful would be the XAMPP version number.

TSIMikeW wrote:I placed my php files in c:\xampp\apache\htdocs.

Not c:\xampp\htdocs ?

TSIMikeW wrote:I noticed that there is another copy of Apache in c:\Program Files (x86). The "Date modified" is the same as the one in xampp. I did not download Apache by hand, so I assume that the xampp installation created both.

no, thats not the default behavior of the xampp installation routine

Re: Which Apache?

PostPosted: 31. August 2011 15:11
by TSIMikeW
I think that the xampp version is 1.7.4. That is what the readme document says.

I put my php files in c:\xampp\apache\htdocs, as I said. I will gladly move them. However, I did edit the index.html file in c:\xampp\htdocs to say "It works sometimes!" When I access localhost in the browser, it displays "It works!"

Re: Which Apache?

PostPosted: 31. August 2011 15:20
by Altrea
TSIMikeW wrote:I put my php files in c:\xampp\apache\htdocs, as I said. I will gladly move them.

yes please. c:\xampp\htdocs is the default folder for all your scripts. Unless you change the Apache configuration, c:\xampp\apache\htdocs\ will not work.

TSIMikeW wrote:However, I did edit the index.html file in c:\xampp\htdocs to say "It works sometimes!" When I access localhost in the browser, it displays "It works!"

What do you have typed into your browser adress bar?
Have you cleared your Browser cache?

Re: Which Apache?

PostPosted: 31. August 2011 16:26
by TSIMikeW
Cache has been cleared.

The browser has http://localhost/
I also tried http://localhost/index.html

Re: Which Apache?

PostPosted: 31. August 2011 17:27
by Altrea
What do you get if you try http://localhost/xampp/ ?
If that will give you a 404 file not found error and your xampp folder inside your c:\xampp\htdocs\ folder is present, than there is another Webserver running on your machine on port 80.
XAMPPs Apache is configured to send out index.php files with higher priorisation than index.html. If you type http://localhost the index.php file inside this folder should be sended out.

Re: Which Apache?

PostPosted: 31. August 2011 19:58
by TSIMikeW
I do get 404 Not Found if I add xampp. Do you know how I can stop/get rid of the other Apache server?

BTW, thank you for your help.

Re: Which Apache?

PostPosted: 31. August 2011 20:07
by TSIMikeW
I am pretty sure that the server that is running is the one in Program Files (x86). The error logs there contain a whole lot of 404's. Since no one else has touched this computer, I must have downloaded it and forgot about doing so. I am old; I also misplace my keys often. I am not sure how the server started. I have no feather icons for it.

Re: Which Apache?

PostPosted: 31. August 2011 21:24
by TSIMikeW
I found the Apache server that was running, stopped it, and changed it to Manual, but I was unable to start the one in xampp. The control panel message box says ERROR: Apache service not started [-1]. Firefox cannot find localhost, so I don't think that another server is running.