Progress: Stopped due to Error

Discussion in 'Install/Configuration' started by BWS, May 20, 2011.

  1. BWS

    BWS New Member


    When we tried to build matching PHP Binary for litespeed, we have received the following error:

    Build PHP Using Apache Configuration with LSAPI
    Progress: Stopped due to Error

    Start building PHP 5.2.17 with LSAPI
    Fri May 20 08:08:12 EDT 2011

    Changing to build directory /home/cpeasyapache/ls.src
    Cannot find php build directory for cPanel, will download source code
    Retrieving PHP source archive from
    2011-05-20 08:08:20 URL: [11801597/11801597] -> "php-5.2.17.tar.gz" [1]
    Extracting PHP source archive: tar -zxf php-5.2.17.tar.gz

    Retrieving mail header patch from
    2011-05-20 08:08:33 URL: [3356/3356] -> "php-5.2.x-mail-header.patch" [1]

    Patching source with mail header patch
    can't find file to patch at input line 3
    Perhaps you used the wrong -p or --strip option?
    The text leading up to this was:
    |--- a/ext/standard/mail.c 2010-12-11 23:35:23.000000000 +0800
    |+++ b/ext/standard/mail.c 2010-12-11 23:35:41.000000000 +0800
    File to patch:
    Skip this patch? [y]
    Skipping patch.
    2 out of 2 hunks ignored
    **ERROR** Could not patch source with mail header patch
  2. webizen

    webizen Well-Known Member

    this is due to a bug in php_build script. The fix will be rolled out shortly.

    you can apply following patch manually to /usr/local/cpanel/whostmgr/docroot/cgi/lsws/php_build.template for the time being.
    @@ -128,8 +128,10 @@
    check_errs $? "Could not retrieve mail header patch"
    echo ""
    echo "Patching source with mail header patch"
    - patch -p0 < $MHPATCH
    + cd php-{PHP_VERSION}
    + patch -p1 < ../$MHPATCH
    check_errs $? "Could not patch source with mail header patch"
    + cd ..
    echo ""
  3. DraCoola

    DraCoola Well-Known Member

    I have experienced this php_build error today.
    So the patch is still doesn't rolled out since 05-20-2011 until now?
    Thank you for manually patch instruction anyway.
  4. webizen

    webizen Well-Known Member

    Correct. patch has not yet rolled out.
  5. webizen

    webizen Well-Known Member

    patch is rolled out.
  6. DraCoola

    DraCoola Well-Known Member

    thank you, webizen :)

Share This Page