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
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
==============================
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.
Code:
@@ -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 ""
fi
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.