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.

MPM Prefork To Worker

Discussion in 'General Discussion' started by sahostking, Sep 5, 2012.

  1. sahostking

    sahostking Well-Known Member

    Joined:
    May 15, 2012
    Messages:
    300
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Cape Town, South Africa
    cPanel Access Level:
    Root Administrator
    Building Perl with Threaded Support?

    Hi guys

    Switching from Preform to MPM worker I notice mod perl has issues.

    I need to build perl with threaded support. How do you guys accomplish this?
     
    #1 sahostking, Sep 5, 2012
    Last edited: Sep 5, 2012
  2. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    What is the issue mod_perl is having? Do you mean it isn't building during EasyApache recompile or what precisely? Please be as specific as possible. Thanks!
     
  3. sahostking

    sahostking Well-Known Member

    Joined:
    May 15, 2012
    Messages:
    300
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Cape Town, South Africa
    cPanel Access Level:
    Root Administrator
    Basically when you rebuild with EasyApache from Prefork to Worker MPM it builds everything successfully but you'll get errors stating that mod_perl has errors, click details and it will point you to the build file.

    It then states Perl was not built with threaded support.

    Does this mean I should not offer mod_perl as an option or is there a way to build perl with threaded support and does cPanel support this?
     
  4. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    Can we get the exact message you see rather than a synopsis of it? I want to check our ticket system for prior mention and, because I still don't have the exact message in regards to threaded support, I cannot do that. Thanks a bunch!
     
  5. sahostking

    sahostking Well-Known Member

    Joined:
    May 15, 2012
    Messages:
    300
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Cape Town, South Africa
    cPanel Access Level:
    Root Administrator
    Sure, Here is further information around this when completing easy apache build with mpm worker and mod perl:

    The last time Cpanel::Easy::ModPerl was run; step returned 0.

    That just caused Cpanel::Easy::ModPerl to be skipped.

    The message it gave was:
    'perl Makefile.PL MP_USE_DSO=1 MP_APXS=/usr/local/apache/bin/apxs' failed with exit code '256'


    and this is in easyapache build file:

    -- Begin opt 'Mod Perl' --
    -- Begin dryrun test 'Check compatible perl and mod perl versions' --
    -- End dryrun test 'Check compatible perl and mod perl versions' --

    -- Begin dryrun test 'Configuring mod_perl' --
    Reading Makefile.PL args from @ARGV
    MP_USE_DSO = 1
    MP_APXS = /usr/local/apache/bin/apxs
    no conflicting prior mod_perl version found - good.
    Configuring Apache/2.2.22 mod_perl/2.0.6 Perl/v5.8.8
    [ error] Using Perl 5.8.8 w/o ithreads and 'worker' mpm httpd.
    [ error] Failed requirements:
    [ error] - Perl built with ithreads (build perl with -Dusethreads)

    dryrun test 'Configuring mod_perl' did not return true

    !! Dry run failed for 'Cpanel::Easy::ModPerl' skipping option !!

    -- End opt 'Mod Perl' --
     
  6. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    Thanks for providing the exact error. In actuality, the only time we've received tickets on that error were twice in the past 2 years and one was a ticket I did when I first started haha

    Here is what I found when I'd researched at that time and replied with:

    In order to use MPM Worker and mod_perl, you would need to recompile perl with -Dusethreads to properly support one of those MPMS with mod_perl for EasyApache to run.

    I cannot really advise doing that. I'd advise instead switching back to MPM Prefork.
     
Loading...

Share This Page