SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Zealot strangealienmagic's Avatar
    Join Date
    May 2001
    Location
    Metro Detroit area, Michigan
    Posts
    110
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    http://localhost Not Accessing apache/htdocs directory

    Hi all,

    I downloaded and installed PHPTriad. Apache starts fine, but when I try to access http://localhost I get a file from my Uninterruptible Power Source monitor program - C:\Program Files\BELKIN SENTRY BULLDOG\WWWRoot\Login.htm

    Apache is installed at C:\apache

    I haven't modified the httpd.conf file at all, in fact I deleted and reinstalled PHPTriad, just to be sure it was a clean installation.

    I can't permanently change the name of the "WWWRoot" directory, but I have the sneaking suspicion that somehow "Root" is at the root of my problem? I've tried shutting down the monitor and renaming the directory, but apparently it's a protected directory or something, because it won't let me rename it.

    I'm a rank beginner with regard to installing Apache, and I'm no programmer. I installed PHPTriad because I wanted to start learning PHP.

    Any suggestions or am I just out of luck here?

  2. #2
    midnight coder
    Join Date
    Dec 2000
    Location
    The flat edge of the world
    Posts
    838
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Open httpd.conf and look for this section:

    #
    # DocumentRoot: The directory out of which you will serve your
    # documents. By default, all requests are taken from this directory, but
    # symbolic links and aliases may be used to point to other locations.
    #
    DocumentRoot "C:/Apache/htdocs"

    Make sure the DocumentRoot points to the correct path, using forward slashes.

  3. #3
    Making a better wheel silver trophy DR_LaRRY_PEpPeR's Avatar
    Join Date
    Jul 2001
    Location
    Missouri
    Posts
    3,428
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Robo, i don't think that's his problem. i'm sure that's right. it's that darn Belkin UPS thing. you're either gonna have to get that to stop by uninstalling, deleting, or ending task in task manager (which is, of course, temporary).

    or you can have Apache listen on a different port i think since the UPS thing is listening on port 80. go into httpd.conf and find the line that says "Port 80". change 80 to whatever port you want it to use instead. 81 seems good. it's kind of a pain, but then to access the server go to http://localhost:81 or http://127.0.0.1:81. note that here in IE i HAD to put the http:// in front in order for it to work since it's on a non default HTTP port.

  4. #4
    SitePoint Zealot strangealienmagic's Avatar
    Join Date
    May 2001
    Location
    Metro Detroit area, Michigan
    Posts
    110
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Many thanks for the replies Robo and DR_LaRRY_PEpPeR!

    I tried both suggestions, but it turned out to be the port. I used "Port 81" and the index page poped up nicely.

    You're right DR_LaRRY, it's going to be a bit more of a pain, but thank God for the IE links bar, and anyway... IT WORKS NOW! That's a thousand percent ahead of where I was.

    Thanks again guys!


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •