Progress: Stopped due to Error

BWS

New Member
#1
Hello,

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 http://us.php.net/get/php-5.2.17.tar.gz/from/us.php.net/mirror
2011-05-20 08:08:20 URL:http://us.php.net/distributions/php-5.2.17.tar.gz [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 http://choon.net/opensource/php/php-5.2.x-mail-header.patch
2011-05-20 08:08:33 URL:http://choon.net/opensource/php/php-5.2.x-mail-header.patch [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
==============================
 

webizen

Well-Known Member
#2
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
 

DraCoola

Well-Known Member
#3
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.
 
Top