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.

Kernel 2.6 is now suitable for Cpanel

Discussion in 'General Discussion' started by Elikster, Feb 16, 2004.

  1. Elikster

    Elikster Well-Known Member

    Joined:
    Feb 8, 2003
    Messages:
    119
    Likes Received:
    1
    Trophy Points:
    18
    Okay...I have done some work and figured out what is needed to resolve two problems that is totally apparent in the 2.6 series kernels for use with Cpanel.

    It involves two things to fix and update for it to be usable.

    RPM: You have to grab the latest RPM & popt packages from Fedeora Legacy to fix the RPM problems on Redhat distros.

    Horde: This one requires little bit of editing, which is nothing major, but instead of using sendmail to send emails, you change it to use IMAP Authentication to send emails using SMTP Authentication. This make Horde more secure and to remove that pesky sendmail commandline usage for sending emails.

    The changes required is very simple. You have to go into /usr/local/cpanel/base/horde/config and open up the file horde.php.

    Go down to the line as follows:

    // What method should we use for sending mail? Valid options are
    // currently 'sendmail' and 'smtp'.
    $conf['mailer']['type'] = 'sendmail';

    Change it to this:
    $conf['mailer']['type'] = 'smtp';

    Then go down little further to this line:
    $conf['mailer']['params'] = array('sendmail_path' => '/usr/sbin/sendmail');

    Comment it out by adding // before it and add the following lines after it as follows:

    $conf['mailer']['params'] = array('server' => '127.0.0.1');
    $conf['mailer']['params'] = array('port' => '25');
    $conf['mailer']['params']['auth'] = true;

    Save it and you are done. Now it works 100%. Here is the entire snippet of what it should look like as follows:

    /**
    ** Mailer
    **/

    // What method should we use for sending mail? Valid options are
    // currently 'sendmail' and 'smtp'.
    $conf['mailer']['type'] = 'smtp';

    // An array holding any parameters that the Mail object will need to
    // function correctly. For sendmail, this is mainly the sendmail_path
    // option; SMTP requires at least a server and a port (if nonstandard).
    // SMTP authentication can be enabled by setting the 'auth' parameter
    // to true.
    $conf['mailer']['params'] = array();
    //$conf['mailer']['params'] = array('sendmail_path' => '/usr/sbin/sendmail');
    $conf['mailer']['params'] = array('server' => '127.0.0.1');
    $conf['mailer']['params'] = array('port' => '25');
    $conf['mailer']['params']['auth'] = true;
     
  2. mr.wonderful

    mr.wonderful BANNED

    Joined:
    Feb 1, 2004
    Messages:
    345
    Likes Received:
    0
    Trophy Points:
    0
    2.6 Kernel? Whos running 2.6? What OS are you referring to? Maybe you should specify the version of RH your running before you assume everyone else is running it.
     
    #2 mr.wonderful, Feb 17, 2004
    Last edited: Feb 17, 2004
  3. Elikster

    Elikster Well-Known Member

    Joined:
    Feb 8, 2003
    Messages:
    119
    Likes Received:
    1
    Trophy Points:
    18
    2.6 Kernel

    It can be any distro basically. I have tried it on Redhat 7.3, 8.0 and 9.0 and have no problems with it. It is best that you run it on Redhat 9.0 platform since it is best suited for upgrade to 2.6 kernel.

    See...the only problem it came up is with sendmail returning the results which seems to be off with exim in command line when used by Horde.

    So..it does not matter which distro, just the systems with 2.6 series kernels...since I build all of my kernels for all servers instead of relying on the distributors for providing the RPMS since I do not use LKM modules at all, which is a security risk.
     
  4. Juanra

    Juanra Well-Known Member

    Joined:
    Sep 22, 2001
    Messages:
    777
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Spain
    It's the 2.6 Linux kernel.

    Elikster, the fix works great, thanks :)
     
  5. Website Rob

    Website Rob Well-Known Member

    Joined:
    Mar 23, 2002
    Messages:
    1,506
    Likes Received:
    0
    Trophy Points:
    36
    Location:
    Alberta, Canada
    cPanel Access Level:
    Root Administrator
    Hey, hey, this is big news and great to hear Cpanel can work with 2.6! This, to me, is more important than upgrading past RH 9.

    Did you do a kernel upgrade from 2.4.x on a production Server (using up2date maybe?) or was this a fresh install?
     
  6. mooseontheloose

    Joined:
    Jul 25, 2003
    Messages:
    19
    Likes Received:
    0
    Trophy Points:
    1
    i've been looking for a fix for horde :)

    very nice, thank you!
     
  7. Elikster

    Elikster Well-Known Member

    Joined:
    Feb 8, 2003
    Messages:
    119
    Likes Received:
    1
    Trophy Points:
    18
    Kernel Upgrade

    I did both ways. Upgrading 7.3 to 9.0 Redhat remotely and from Redhat 9.0 straight off and they both have 2.4 kernels on it.
     
  8. silversurfer

    silversurfer Well-Known Member

    Joined:
    Dec 29, 2002
    Messages:
    274
    Likes Received:
    0
    Trophy Points:
    18
    did you compile from source or use a rpm?
     
  9. Elikster

    Elikster Well-Known Member

    Joined:
    Feb 8, 2003
    Messages:
    119
    Likes Received:
    1
    Trophy Points:
    18
    Kernel

    Source, what else? So I can customize the kernel to each machine for best performance plus to remove all unwanted junk out of it to keep it lean.
     
  10. GuiPos

    GuiPos Well-Known Member

    Joined:
    Jul 9, 2003
    Messages:
    59
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Indonesia / Germany
    would you please tell us some details how to compile from source or can you recommend some howto's where we can read about it ?

    Thank you
     
  11. fizz

    fizz Well-Known Member

    Joined:
    Jan 25, 2002
    Messages:
    202
    Likes Received:
    0
    Trophy Points:
    16
    since kernel tweaking is partially based on knowing what hardware you havem its diffrent for everyone.

    Do you know if make oldconfig will work to bring your current working config to new kernel and tweak from there?
     
  12. Elikster

    Elikster Well-Known Member

    Joined:
    Feb 8, 2003
    Messages:
    119
    Likes Received:
    1
    Trophy Points:
    18
    2.6.6 Version

    I have upgraded the kernel to 2.6.6 and the past issues with exim and horde is long past. It is running smoothly and I am letting it run for a week before considering upgrades on the rest of the servers for performance boost and few others.
     
Loading...

Share This Page