logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: localhost doesn't update when I change directory files
Author
AlexJ



Joined: 15 Jul 2013
Posts: 4
Location: USA, Mequon

PostPosted: Mon 15 Jul '13 23:12    Post subject: localhost doesn't update when I change directory files Reply with quote

Hello! I'm new to Apache. I'm using a version 2.4 for Windows 7. It didn't come in as an .msi so I had to configure the appropriate web-server name via the httpd text document.

Each time I go to http://localhost, I am present with a page with the content "It works." I tried adding a different .html file into the directory to see if I could access that also, but I was not able to navigate to it via the address bar. So I edited the content of index.html from 'It works!' to "It works?!!!" but sadly, the actual page is still showing 'It works!' for its content (Rather ironic, huh?).

So, for whatever reason, the actual 'localhost' page isn't updating or even noticing any of my edits in what I presume to be the correct directory. Any help would be greatly appreciated!

EDIT: Oh, and here's my httpd document for reference: http://pastebin.com/6k5J8hMW
Back to top
Steffen
Moderator


Joined: 15 Oct 2005
Posts: 3092
Location: Hilversum, NL, EU

PostPosted: Mon 15 Jul '13 23:18    Post subject: Reply with quote

What do you see when you double click on the changed index.html in the DocumentRoot "c:/Apache24/htdocs"

Maybe it is still cached by your browser, do an hard refresh with Ctrl-F5.

Steffen
Back to top
AlexJ



Joined: 15 Jul 2013
Posts: 4
Location: USA, Mequon

PostPosted: Mon 15 Jul '13 23:26    Post subject: Reply with quote

The actual content of index.html is...

Code:
<html>
<body>
<h1>It works!? Hmmm</h1>
</body>
</html>


I did a hard refresh via Ctrl+F5, but the page still reads "It works!"
Back to top
Steffen
Moderator


Joined: 15 Oct 2005
Posts: 3092
Location: Hilversum, NL, EU

PostPosted: Mon 15 Jul '13 23:55    Post subject: Reply with quote

When you double click on the index.html, do you see the changed one ?

Steffen
Back to top
AlexJ



Joined: 15 Jul 2013
Posts: 4
Location: USA, Mequon

PostPosted: Tue 16 Jul '13 0:54    Post subject: Reply with quote

Yeah, index.html shows the changed/correct content when I open it in browser.
Back to top
Steffen
Moderator


Joined: 15 Oct 2005
Posts: 3092
Location: Hilversum, NL, EU

PostPosted: Tue 16 Jul '13 10:35    Post subject: Reply with quote

I am stumbled.

Recap:

You installed Apache in : c:/Apache24

In c:/Apache24/httpd.conf is the Documentroot c:/Apache24/htdocs (check it again)

You changed index.html in c:/Apache24/htdocs

When you double click on c:/Apache24/htdocs/index.html you see a changed index.html.

When you do http://localhost/index.html you see the original index.html. Even when you do a hard refresh.


Steffen
Back to top
AlexJ



Joined: 15 Jul 2013
Posts: 4
Location: USA, Mequon

PostPosted: Tue 16 Jul '13 13:25    Post subject: Reply with quote

Correct you are! I tested the hard refresh on both chrome and firefox to make sure.

Would the MySQL database play any role in this?


...and if it's relevant, I think I've downloaded Apache twice before, but I didn't know what I was doing and thought I had incorrect versions, so I deleted the pertinent files for both. I'm pretty sure I completely deleted, though, so I don't think that would attribute to the problem I'm having right now, but I suppose anything is possible.

EDIT: Ah, I guess that WAS the problem. The index.html that was being used wasn't the one at C:\Apache24/htdocs, but at C:\Program Files (x86)\Apache Software Foundation\Apache2.4\htdocs... but that's not where the httpd text file points it to go.... How can I change it to use C:\Apache24/htdocs as the directory instead?

EDIT #2: Well, I guess I can just use the C:\Program Files (x86)\Apache Software Foundation\Apache2.4\htdocs instead. This is a separate download of Apache, right? Or is it a part of the same thing?

EDIT #3: Yep, they're two separate things. Turns out the one I was using wasn't even running. I feel a bit dim after all that! Anywho, made some changes to the correct directory this time and they appeared on http://localhost after a hard refresh.

Thanks for the help!
Back to top
admin
Site Admin


Joined: 15 Oct 2005
Posts: 692

PostPosted: Tue 16 Jul '13 14:02    Post subject: Reply with quote

No problem. We all started to learn.
Back to top


Reply to topic   Topic: localhost doesn't update when I change directory files View previous topic :: View next topic
Post new topic   Forum Index -> Apache