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.

Easy::Apache - Mod Ruid2 - error

Discussion in 'EasyApache' started by nagyosha, Mar 9, 2014.

  1. nagyosha

    nagyosha Member

    Joined:
    Mar 9, 2014
    Messages:
    19
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hi All.
    new to cpanel . setting up on a VPS. centos. plenty of ram etc.
    I've spent a lot of time hardening and make sure everything is just right before i start porting all the sites & users over from another server
    and trying to close security problems up before i start.
    one last thing I'm having problems with now. i have read about Mod Ruid2 and it seems a good idea to enable it (i think).
    when i build with it on then the test reseller account website i have setup fails Internal Server Error.. error from logs below..
    tried chmod +s /opt/suphp/sbin/suphp and make no difference

    if i compile without Mod Ruid2 all works ok.

    [Sun Mar 09 20:02:02 2014] [notice] Apache/2.2.26 (Unix) mod_ssl/2.2.26 OpenSSL/1.0.1e-fips mod_bwlimited/1.4 configured -- resuming normal operations
    [Sun Mar 09 20:02:02 2014] [error] [client 82.46.xxx.xxx] SecurityException in Application.cpp:186: Do not have root privileges. Executable not set-uid root?
    [Sun Mar 09 20:02:02 2014] [error] [client 82.46..xxx.xxx] Premature end of script headers: index.php
    [Sun Mar 09 20:02:02 2014] [error] [client 82.46.xxx.xxx] File does not exist: /home/easydoma/public_html/500.shtml
     
  2. cPanelKurtN

    cPanelKurtN Well-Known Member
    Staff Member

    Joined:
    Jan 29, 2013
    Messages:
    95
    Likes Received:
    1
    Trophy Points:
    8
    cPanel Access Level:
    Root Administrator
    1. The permissions of the suphp binary should be 04755.
    2. When you have Mod Ruid2 installed, what PHP handler do you have set? Copy and paste the following output: cat /usr/local/apache/conf/php.conf
     
  3. nagyosha

    nagyosha Member

    Joined:
    Mar 9, 2014
    Messages:
    19
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    i resolved this ..
    i was trying to use ruid2 and suPHP at the same time.. assume this is a no no
     
  4. vanessa

    vanessa Well-Known Member
    PartnerNOC

    Joined:
    Sep 26, 2006
    Messages:
    817
    Likes Received:
    22
    Trophy Points:
    18
    Location:
    Virginia Beach, VA
    cPanel Access Level:
    DataCenter Provider
    lol. you can either use one or the other. Interesting the EA would let you use both at the same time though.
     
  5. hdjacobh

    hdjacobh Registered

    Joined:
    Mar 12, 2013
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Really, the only PHP handler mod_ruid2 doesn't support is FastCGI due to incompatibilities with changing the Apache process' UID/GID. It's only recommended to use DSO over suPHP because ruid2 replaces some of the suPHP functionality (setting the Apache child processes as the script owner rather than 'nobody')... and, well, DSO+opcode caching blows suPHP out of the water.
     
  6. nagyosha

    nagyosha Member

    Joined:
    Mar 9, 2014
    Messages:
    19
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    "DSO+opcode caching blows suPHP out of the water."
    which caching is best .. EAccelerator or Xcache .. or another ?
     
Loading...

Share This Page