Find the answer to your Linux question:
Results 1 to 6 of 6
I am new to linux so bear with me. I have apache set up on my computer (Fedora Core 3) and no one can access it, so I installed abyss ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux User yourname3232's Avatar
    Join Date
    Aug 2005
    Location
    Pacific Northwest, USA
    Posts
    262

    Need to change apache port number


    I am new to linux so bear with me. I have apache set up on my computer (Fedora Core 3) and no one can access it, so I installed abyss webserver and it is on port 8000 and people can access it though. I really like apache and would like to change the port that it listens to.






    This is secondary, but I need help configureing FTP access to the htmldocs folder.

    Making passwrd protected directories with .htaccess would be nice to do to.

  2. #2
    Linux Enthusiast
    Join Date
    Aug 2005
    Location
    Hell
    Posts
    514

    Re: Need to change apache port number

    Quote Originally Posted by yourname3232
    I am new to linux so bear with me. I have apache set up on my computer (Fedora Core 3) and no one can access it, so I installed abyss webserver and it is on port 8000 and people can access it though. I really like apache and would like to change the port that it listens to.
    I think the "Listen" directive deals with this (e.g. "Listen 8000").

    Quote Originally Posted by yourname3232
    Making passwrd protected directories with .htaccess would be nice to do to.
    Read this: http://httpd.apache.org/docs/2.0/howto/auth.html

  3. #3
    Linux User yourname3232's Avatar
    Join Date
    Aug 2005
    Location
    Pacific Northwest, USA
    Posts
    262
    Thanks for the .htaccess info.

    I tried making apche run on port 8000 like abyss was (after disableing abyss of course) but I get

    Starting httpd: [Thu Sep 15 21:47:13 2005] [warn] The Alias directive in /etc/httpd/conf/httpd.conf at line 512 will probably never match because it overlaps an earlier AliasMatch.
    (13)Permission denied: make_sock: could not bind to address [::]:8000
    no listening sockets available, shutting down
    Unable to open logs
    [FAILED]

    I sorted out the port problems but ut seems to be apache not a blocked port.

    Ok, it seems that I can only NOT access apache, everything else that is avalible to access from the web works just fine!! Please help.

  4. #4
    Just Joined!
    Join Date
    Oct 2005
    Posts
    2

    I too have this problem

    I am having the same problem with apache on FC 4.. Does anyone know how to fix this

  5. #5
    Linux Newbie
    Join Date
    Jul 2005
    Location
    Turn Around
    Posts
    202
    look thru httpd.conf for something concening a port number. try "cat /path/to/httpd.conf | grep 80"

    if where is says 80 (default port) seems to be in context of wha you're doing... change it. httpd.conf has some great comments in there to help you. btw.. always make a backup of config files when you're toying with them!. "cp /path/to/httpd.conf /path/to/httpd.conf.bak" (.bak for backup).

    luck!


    Edit: also make sure your router of firewall will allow traffic through that port.

  6. #6
    Linux Engineer
    Join Date
    Oct 2004
    Location
    Vancouver
    Posts
    1,366
    also, if you use a router make sure you change your port forwarding information from 80 to 8080, or whatever port you wish to use...
    Operating System: GNU Emacs

Posting Permissions

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