Page 2 of 2 FirstFirst 12
Results 11 to 13 of 13

Thread: Unable to run Apache when listening on port 80

  1. #11
    Join Date
    Feb 2011
    Location
    Coquitlam, B.C. Canada
    Beans
    3,515
    Distro
    Ubuntu Development Release

    Re: Unable to run Apache when listening on port 80

    I am not familiar with BitNami, but from what I have read in the last few minutes it seems it might typically be installed by normal users and not administrators or root or superusers or whatever you want to call it. Thus you wouldn't have access to lower numbered port (below 1024, I think). Perhaps that is why it defaults to port 8080.
    My suggestion is that you search around on the BiNami forum for further insight. (I am not saying we won't continue to try to help on this thread.)
    Any follow-up information on your issue would be appreciated. Please have the courtesy to report back.

  2. #12
    Join Date
    Mar 2013
    Beans
    4

    Lightbulb Re: Unable to run Apache when listening on port 80

    Hi all,


    I think I found the problem From: http://httpd.apache.org/docs/2.4/invoking.html
    :-
    If the Listen specified in the configuration file is default of 80 (or any other port below 1024), then it is necessary to have root privileges in order to start apache, so that it can bind to this privileged port. Once the server has started and performed a few preliminary activities such as opening its log files, it will launch several child processes which do the work of listening for and answering requests from clients. The main httpd process continues to run as the root user, but the child processes run as a less privileged user. This is controlled by the selected Multi-Processing Module.


    There is more.--- on that page.


    Now I only have to figure out the TechSpeak on how to fix it.


    GerritR

  3. #13
    Join Date
    Feb 2011
    Location
    Coquitlam, B.C. Canada
    Beans
    3,515
    Distro
    Ubuntu Development Release

    Re: Unable to run Apache when listening on port 80

    Could it be as easy as running the startup script under "sudo"? I.E. instead of this (from the BitNami quick start quide):
    Code:
    $ cd ~/applicaton-version
    $ ./ctlscript.sh start
    do this:
    Code:
    $ cd ~/applicaton-version
    $ sudo ./ctlscript.sh start
    By the way, have a look at my post #2 above, it shows the root apache task running and also the child non-root tasks.

    Also note (for other readers): how to start apache for this BitNami stuff seems to be different than for a "normal" Lamp stack, and thus my post #8 isn't correct for this specific case.
    Any follow-up information on your issue would be appreciated. Please have the courtesy to report back.

Page 2 of 2 FirstFirst 12

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
  •