The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

mod_ruid2 questions

Discussion in 'General Discussion' started by LeadDogGraphics, Mar 3, 2012.

  1. LeadDogGraphics

    LeadDogGraphics Well-Known Member

    Joined:
    Feb 25, 2012
    Messages:
    97
    Likes Received:
    1
    Trophy Points:
    8
    Location:
    West Palm Beach, FL
    cPanel Access Level:
    Root Administrator
    Using the latest update 11.32.1.4, I had to manually edit the httpd.conf file to get the apache processes to run under the user instead of nobody. I had to change User and Group settings at the top of the file and restart apache and all was well.
     
  2. ethix

    ethix Active Member

    Joined:
    Dec 21, 2004
    Messages:
    44
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Australia
    Re: [Case 52294] support mod_ruid2

    I presume you are talking about this section?
    If so what should it be?
     
  3. LeadDogGraphics

    LeadDogGraphics Well-Known Member

    Joined:
    Feb 25, 2012
    Messages:
    97
    Likes Received:
    1
    Trophy Points:
    8
    Location:
    West Palm Beach, FL
    cPanel Access Level:
    Root Administrator
    Re: [Case 52294] support mod_ruid2

    Yes in the http.conf file:

    PidFile logs/httpd.pid
    LockFile logs/accept.lock
    # Defined in /var/cpanel/cpanel.config: apache_port
    Listen 0.0.0.0:80
    User <cpanel user name here>
    Group <cpanel user name here>
    ExtendedStatus On


    I am not sure what it is supposed to be, but this does change the apahe to run under the cpanel user instead of nobody which from what i gather mod_ruid2 is supposed to do. Am I correct in changing this? Is this supposed to be updated by mod_ruid2?
     
  4. LeadDogGraphics

    LeadDogGraphics Well-Known Member

    Joined:
    Feb 25, 2012
    Messages:
    97
    Likes Received:
    1
    Trophy Points:
    8
    Location:
    West Palm Beach, FL
    cPanel Access Level:
    Root Administrator
    Re: [Case 52294] support mod_ruid2

    Does anyone know if the above mentioned edit is correct? Or do I have it setup wrong, if so how should it be?
     
  5. LeadDogGraphics

    LeadDogGraphics Well-Known Member

    Joined:
    Feb 25, 2012
    Messages:
    97
    Likes Received:
    1
    Trophy Points:
    8
    Location:
    West Palm Beach, FL
    cPanel Access Level:
    Root Administrator
    Re: [Case 52294] support mod_ruid2

    Wow, 4 days on a current issue and no replies. Does anyone have any suggestions or input on how the mod_ruid2 should be set up in the http.conf file? Should it load as nobody or as the cpanel user? Should it show in TOP as nobody or as the cpanel user?
     
  6. Brian

    Brian Well-Known Member

    Joined:
    Dec 1, 2010
    Messages:
    117
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    Texas
    cPanel Access Level:
    Root Administrator
    Re: [Case 52294] support mod_ruid2

    I'd advise posting your technical inquiries to our support staff for quicker responses. The feature request sub-forum is not intended as a venue for technical support, but a means of communicating feature requests. See my signature for details on how to submit a support request.

    As for your issue, you should not be changing Apache to start and default run as a specific cPanel user. Changing the default "User" and "Group" in the main scope of httpd.conf to a specific cPanel user is therefore incorrect and will likely only present problems (and potential security concerns). The User/Group configurations you've itemized should remain 'nobody'.

    Under mod_ruid2, idling Apache workers should be running as 'nobody'. That's expected. So, yes, you will often see the Apache processes running as 'nobody' in top. You should also see blips of processes running as particular cPanel users, too. How many of them are 'nobody' depends on how busy your Apache server is. Once there's work to be done, the process will 'setuid / setgid' to the cPanel user mentioned in the respective VirtualHost for that content, do its work, and fall back to 'nobody' again as it waits for more work. So, you will only ever see Apache processes running as the user for the duration of them performing active work (which is often only fractions of a second unless it's a particularly involved page).

    If you are seeing *active* Apache requests still running as nobody, then please submit a ticket (see my signature for details) so that it can be investigated.
     
  7. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,470
    Likes Received:
    199
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Re: [Case 52294] support mod_ruid2

    Agreed. I've forked these posts off into it's own thread.
     
Loading...

Share This Page