Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Member
    Join Date
    Apr 2003
    Posts
    25

    Arrow Running apache using user other than nobody prevents access to cpanel and whm

    When I run apache as a user other than 'nobody', users cannot access cpanel or whm using the scriptaliases domainname.com/cpanel and domainname.com/whm. They can however access the control panels using port numbers instead.

    The permissions in /usr/local/cpanel/base are set correctly (755), but it still doesn't work. I checked the error log and it said Premature end of script headers: /usr/local/cpanel/base/redirect.cgi

    Has anyone else come across this problem and know how to fix it?

    cPanel.net Support Ticket Number:

    cPanel.net Support Ticket Number:

  2. #2
    Member
    Join Date
    Apr 2003
    Posts
    25

    Default

    Additional information from suexec_log. centurio is the username of the account I was trying to access.

    [2003-06-12 13:30:10]: crit: calling user mismatch (apache instead of nobody)
    [2003-06-12 13:31:14]: crit: calling user mismatch (apache instead of nobody)
    [2003-06-12 13:38:13]: crit: calling user mismatch (apache instead of nobody)
    [2003-06-12 13:38:16]: crit: calling user mismatch (apache instead of nobody)
    [2003-06-12 13:39:17]: info: (target/actual) uid: (centurio/centurio) gid: (cent
    urio/centurio) cmd: redirect.cgi

    cPanel.net Support Ticket Number:

    cPanel.net Support Ticket Number:

  3. #3
    Member
    Join Date
    Feb 2003
    Location
    Sachse, TX
    Posts
    567

    Default

    Originally posted by BP Steven
    Additional information from suexec_log. centurio is the username of the account I was trying to access.

    [2003-06-12 13:30:10]: crit: calling user mismatch (apache instead of nobody)
    [2003-06-12 13:31:14]: crit: calling user mismatch (apache instead of nobody)
    [2003-06-12 13:38:13]: crit: calling user mismatch (apache instead of nobody)
    [2003-06-12 13:38:16]: crit: calling user mismatch (apache instead of nobody)
    [2003-06-12 13:39:17]: info: (target/actual) uid: (centurio/centurio) gid: (cent
    urio/centurio) cmd: redirect.cgi

    cPanel.net Support Ticket Number:

    cPanel.net Support Ticket Number:
    One question.. Why are you running it as apache and not nobody?
    Purpose of that?

    cPanel.net Support Ticket Number:

  4. #4
    Member
    Join Date
    Apr 2003
    Posts
    25

    Default

    Security. I like to setup the directories holding the websites so that only the apache user and file owner can access the files, by changing the directory group to apache, and then chmod to 710.

    cPanel.net Support Ticket Number:

  5. #5
    Member
    Join Date
    Apr 2003
    Posts
    25

    Default

    I've found solution to the problem just in case anyone else was interested (pretty obvious, should have thought of it sooner). suexec needs to be recompiled to use the apache user rather than nobody. That, or turn off suexec.

    cPanel.net Support Ticket Number:

  6. #6
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Jun 2003
    Posts
    1

    Default

    Originally posted by BP Steven
    I've found solution to the problem just in case anyone else was interested (pretty obvious, should have thought of it sooner). suexec needs to be recompiled to use the apache user rather than nobody. That, or turn off suexec.

    cPanel.net Support Ticket Number:
    Can you by any chance describe how you did this? I am unsure of the commands to run. Thanks.

Similar Threads & Tags
Similar threads

  1. suPHP - Apache processes not running as user?
    By Bailey in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 09-30-2008, 04:01 PM
  2. Changed Apache user, nobody can access directly to cpanel or wHM
    By rbmrf in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 07-21-2008, 10:22 AM
  3. Apache running as apache user and group?
    By bsasninja in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 07-18-2006, 03:34 PM
  4. Unable to access cpanel or whm after running upcp --force
    By BianchiDude in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 07-31-2005, 04:16 PM
  5. kill all processes running by one user (not whm)??
    By Devil Inside in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 03-21-2004, 01:36 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube