WebSphere Application Server & Liberty

WebSphere Application Server & Liberty

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  unbale to start ibm http server using non-root user with port 80.

    Posted Thu August 24, 2023 03:45 PM

    Hi Teams,

    Greetings!

    Can someone help me how to configure IBM Http server to start as non-root user with port 80. My IHS is installed using wsadmin user.

    /IBM/Httpserver/bin/apachectl -k start

    (13)Permission denied: make_sock: could not bind to address [::]:80
    (13)Permission denied: make_sock: could not bind to address 0.0.0.0:80.

    Please provide details how to add sudo access to execute this command (/IBM/Httpserver/bin/apachectl -k start)



    ------------------------------
    susheel kumar
    ------------------------------


  • 2.  RE: unbale to start ibm http server using non-root user with port 80.

    Posted Fri August 25, 2023 03:49 AM

    The ports from 1 to 1024 are reserved for the Operating System and only available to root for usage. Therefore you cannot use them as non-root.
    If your question is how to enable sudo for the user, this depends on the Operating System.
    Here the steps for Red Hat Enterprise Linux: https://developers.redhat.com/blog/2018/08/15/how-to-enable-sudo-on-rhel



    ------------------------------
    [Lars] [Besselmann]
    Integration Technical Specialist, IBM Technology Sales, EMEA
    IBM
    Düsseldorf
    [Lars.Besselmann@de.ibm.com]
    ------------------------------



  • 3.  RE: unbale to start ibm http server using non-root user with port 80.

    Posted Fri August 25, 2023 04:02 AM

    Hi Lars, 

    I added entry in sudoer file for wsadmin user which will manage to IHS server.

    these are the entry which i added in file.

    wsadmin ALL=(ALL)/WAS/IBM/HttpServer/bin/apachectl -k start , /WAS/IBM/HttpServer/bin/apachectl -k stop, /WAS/IBM/HttpServer/bin/adminctl -k start,/WAS/IBM/HttpServer/bin/adminctl -k stop

    now it is working fine.



    ------------------------------
    susheel kumar
    ------------------------------