localhost files are not showing up on port 80

6,139

Solution 1

I'm not exactly sure what you're describing, but some steps that I would take to trouble shoot this would be:

  1. Verify that Apache is starting without errors by checking the Apache log
  2. Check that Apache is listening on port 80 with netstat -bn (use the n flag so you can see the port number rather than a description)
  3. Verify that it's definitely not a firewall by turning it off briefly and seeing if that solves the problem
  4. keep an eye on the Apache access logs and error logs while you attempt to access the server to see whether or not you get as far as talking to Apache at all.

Hopefully one of these steps will point you in the right direction.

Solution 2

Yahoo Messenger file transfer also uses port 80 by default.
Also you can use netstat -b to display the executable involved in creating each connection or listening port.

Share:
6,139

Related videos on Youtube

Oxymoron
Author by

Oxymoron

Web Developer Web developer, London I am the developer behind the popular domain expiry reminder service Skinny Domain PHP, Symfony, Laravel Javascript, React, React Native, jQuery HTML5 & CSS3 MySQL, MariaDB, Postgres

Updated on September 17, 2022

Comments

  • Oxymoron
    Oxymoron over 1 year

    I browse to localhost/ and nothing is shown. No web page, no 'page not found' etc.

    However, I change httpd.conf to use port 8080, then browse to localhost:8080/ and my local pages show up.

    Why would this happen? Is something else using port 80? What software would do this? How can I find out if other software is using these ports?

    I am using Windows XP SP3, I have installed Apache on a user's desktop so that they can do their web development.

    There is no IIS on this machine. Only 1 entry in the hosts file (127.0.0.1 localhost) and I have uninstalled skype, which uses port 80 apparently).


    SOLVED

    Thanks for all your answers, eventually I deleted all the rubbish out of my HTTPD.conf files, got back to a working state then rewrote the rules.

    I have a feeling that I didn't have the first line here:

    NameVirtualHost 127.0.0.1
    
    <VirtualHost 127.0.0.1>
        ServerName localhost
        DocumentRoot "C:\webroot"
    </VirtualHost>
    
    • FooBee
      FooBee almost 15 years
      What platform are you on?