Find the answer to your Linux question:
Results 1 to 3 of 3
Hey all, I'm having a bit of a problem getting apache to work. I installed it using the directions from www.php.net/manual/en/install.apache.php . When I start up apache (/www/bin/httpd or /www/bin/apachectl ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Apr 2003
    Posts
    27

    connection refused


    Hey all, I'm having a bit of a problem getting apache to work. I installed it using the directions from www.php.net/manual/en/install.apache.php. When I start up apache (/www/bin/httpd or /www/bin/apachectl start) as root then type 'localhost' in my browser, I get connection refused. I ran netstat and found that httpd is listening on 8080 and that port is not in /etc/hosts.deny. Any help would be greatly appreciated.

  2. #2
    Linux Guru
    Join Date
    Oct 2001
    Location
    Täby, Sweden
    Posts
    7,578
    If apache is listening on port 8080, then you have to browse to http://localhost:8080/, since port 80 is the standard HTTP port.

  3. #3
    Linux Guru
    Join Date
    Apr 2003
    Location
    London, UK
    Posts
    3,284
    to change it, edit your "httpd.conf", there will proberly be a line like "#port 80".

    find it and uncomment it (remove the #"), so you have a line, without a #, that says "port 80".

    then run:
    apachectl restart

    open browser, navigate to localhost

    Jason

Posting Permissions

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