1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Help getting suEXEC to work

Discussion in 'Apache' started by Amilabell, Mar 26, 2020.

  1. #1
    Hey guys,
    I am pretty new to this so sorry if this is a dumb question.
    I have httpd 2.4.41 running on an Ubuntu 18.04 server.
    When I tried to follow this tutorial (I tried others as well but it didn't work either):
    https://docstore.mik.ua/orelly/linux/apache/ch04_07.htm
    I ran into the problem that although I did everything as described I won't get suEXEC running.
    With not getting it running I mean that I can't manage to get the "suEXEC mechanism enabled (wrapper: /usr/local/bin/suexec)" confirmation via the error log.

    When running suexec -V I get the following output:

    -D AP_DOC_ROOT="/www/var"
    -D AP_GID_MIN=100
    -D AP_HTTPD_USER="httpd"
    -D AP_LOG_EXEC="/www/var/suexec_log"
    -D AP_SAFE_PATH="/usr/local/bin:/usr/bin:/bin"
    -D AP_UID_MIN=100
    -D AP_USERDIR_SUFFIX="/www/var/cgo-bin"
    Which correlates with my configuration.
    I think it may be that httpd can't find the suexec (located in /usr/local/apache/sbin/). However I did change the respective line in httpd.h to
    #define SUEXEC_BIN "/usr/local/apache/sbin/suexec"
    I hope someone can help me
    Kind regards and thank you so much in advance!
    SEMrush
     
    Amilabell, Mar 26, 2020 IP
    SEMrush
  2. Spoiltdiva

    Spoiltdiva Illustrious Member

    Messages:
    6,936
    Likes Received:
    2,345
    Best Answers:
    51
    Trophy Points:
    470
    #2
    There is no such thing as a dumb question. There are just dumb mistakes because someone failed to ask a question.
     
    Spoiltdiva, Mar 26, 2020 IP
  3. SolaDrive

    SolaDrive Well-Known Member Premium Member

    Messages:
    111
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    103
    #3
    You are right, apache is not finding suEXEC and seems you are missing some prerequisite. I'd suggest following the first part of this guide:
    https://www.howtoforge.com/tutorial...pureftpd-bind-postfix-doveot-and-ispconfig/2/

    If this is a fresh server, I'd be happy to help. Just PM me the details and I can help you get this setup however I know this may seem like a security concern so only do it if its a fresh server with nothing on it yet.

    How is this suppose to help the OP?
     
    SolaDrive, Mar 26, 2020 IP
  4. Spoiltdiva

    Spoiltdiva Illustrious Member

    Messages:
    6,936
    Likes Received:
    2,345
    Best Answers:
    51
    Trophy Points:
    470
    #4
    The OP joined today, it "helps" in that the OP may ascertain by my comment that we are a welcoming community, and that we will not critique what may be seen by some as a "dumb question".
     
    Spoiltdiva, Mar 26, 2020 IP
    mmerlinn likes this.