Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

[FIX] premature end of script headers problem in libperl

Discussion in 'General Discussion' started by KenMaier, Oct 8, 2004.

  1. KenMaier

    KenMaier Member

    Nov 5, 2002
    Likes Received:
    Trophy Points:
    A recent WHM/CPANEL upgrade (?) seems to have broken suexec on our servers. It was most visible with all perl scripts because they were failing with the following error:

    [Fri Oct 8 23:12:01 2004] [error] [client xx.xx.xx.xx] Premature end of script headers: /home/user/public_html/cgi-bin/myperlscript.cgi
    /usr/local/apache/bin/suexec: error while loading shared libraries:
    cannot open shared object file: No such file or directory

    For CPANEL/WHM, it was breaking all incoming requests to /cpanel, /whm and /webmail. And unfortunately, broke our MovableType installations (since the CGI component was busted).

    In any case, the problem ended up being suexec not being able to find -- some other posts in this forum hinted at this with the following command revealing the problem:

    ldd /usr/local/apache/bin/suexec

    (output will indicate cannot be found)

    In our case, was missing in /lib


    1. Other posts on this site say to disable suexec support in your apache setup.
    2. Copy or symlink /usr/local/cpanel/perl/ into /lib/

    CPANEL/WHM seems to delete /lib/ every so often, so you'll need to revisit it should it break again.

    Once you replace, run ldd again on suexec to make sure libperl is found. If it is, restart apache (service httpd stop; service httpd start) and you should be all set.


    PS: Can anyone explain why this broke in the first place?

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice