Which Apache?

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

Which Apache?

Postby TSIMikeW » 31. August 2011 13:43

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
TSIMikeW
 
Posts: 7
Joined: 30. August 2011 15:56

Re: Which Apache?

Postby Altrea » 31. August 2011 14:30

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
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11926
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: Which Apache?

Postby TSIMikeW » 31. August 2011 15:11

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!"
TSIMikeW
 
Posts: 7
Joined: 30. August 2011 15:56

Re: Which Apache?

Postby Altrea » 31. August 2011 15:20

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?
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11926
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: Which Apache?

Postby TSIMikeW » 31. August 2011 16:26

Cache has been cleared.

The browser has http://localhost/
I also tried http://localhost/index.html
TSIMikeW
 
Posts: 7
Joined: 30. August 2011 15:56

Re: Which Apache?

Postby Altrea » 31. August 2011 17:27

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.
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11926
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: Which Apache?

Postby TSIMikeW » 31. August 2011 19:58

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.
TSIMikeW
 
Posts: 7
Joined: 30. August 2011 15:56

Re: Which Apache?

Postby TSIMikeW » 31. August 2011 20:07

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.
TSIMikeW
 
Posts: 7
Joined: 30. August 2011 15:56

Re: Which Apache?

Postby TSIMikeW » 31. August 2011 21:24

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.
TSIMikeW
 
Posts: 7
Joined: 30. August 2011 15:56


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 130 guests