LiteSpeed Support Forums

LiteSpeed Support Forums (http://www.litespeedtech.com/support/forum/index.php)
-   PHP (http://www.litespeedtech.com/support/forum/forumdisplay.php?f=19)
-   -   Compiling PHP5 problems (http://www.litespeedtech.com/support/forum/showthread.php?t=4735)

gkamp 02-22-2011 01:56 PM

Compiling PHP5 problems
 
Just installed Litespeed and trying to compile PHP5 and got this:

Stopped due to Error. Please manually fix it.
**MAIN_STATUS** retrieved from /usr/local/lsws/phpbuild/buildphp_1298410956.6.progress
Preparing all source code for building PHP 5.3.5 with LSAPI
Retrieving PHP source archive from http://us.php.net/get/php-5.3.5.tar....php.net/mirror
Extracting PHP source archive: tar -zxf php-5.3.5.tar.gz
Retrieving Suhosin patch from http://download.suhosin.org/suhosin-....9.10.patch.gz
**ERROR** Could not retrieve Suhosin patch:

**LOG_DETAIL** retrieved from /usr/local/lsws/phpbuild/buildphp_1298410956.6.log
================================================== =======
Preparing all source code for building PHP 5.3.5 with LSAPI
================================================== =======
Tue Feb 22 15:42:37 CST 2011

Changing to build directory /usr/local/lsws/phpbuild
Retrieving PHP source archive from http://us.php.net/get/php-5.3.5.tar....php.net/mirror
2011-02-22 15:42:56 URL:http://us.php.net/distributions/php-5.3.5.tar.gz [14105504/14105504] -> "php-5.3.5.tar.gz" [1]
Extracting PHP source archive: tar -zxf php-5.3.5.tar.gz

Suhosin is enabled
Retrieving Suhosin patch from http://download.suhosin.org/suhosin-....9.10.patch.gz
http://download.suhosin.org/suhosin-...9.10.patch.gz:
2011-02-22 15:43:19 ERROR 404: Not Found.
**ERROR** Could not retrieve Suhosin patch



Don't know how to do it manually.

mistwang 02-22-2011 02:15 PM

Please try again, upgraded your LSWS to 4.0.20 .

gkamp 02-22-2011 02:25 PM

got this after going the second round.

**MAIN_STATUS** retrieved from /usr/local/lsws/phpbuild/buildphp_1298413132.9.progress
Preparing all source code for building PHP 5.3.5 with LSAPI
php-5.3.5.tar.gz already downloaded, use the saved copy.
Extracting PHP source archive: tar -zxf php-5.3.5.tar.gz
Retrieving Suhosin patch from http://download.suhosin.org/suhosin-....9.10.patch.gz
Patching source with Suhosin patch
**ERROR** Could not patch source with Suhosin patch

gkamp 02-22-2011 02:27 PM

and got this log

**LOG_DETAIL** retrieved from /usr/local/lsws/phpbuild/buildphp_1298413132.9.log
================================================== ===========
Preparing all source code for building PHP 5.3.5 with LSAPI
================================================== ===========
Tue Feb 22 16:18:52 CST 2011

Changing to build directory /usr/local/lsws/phpbuild
php-5.3.5.tar.gz already downloaded, use the saved copy.
Extracting PHP source archive: tar -zxf php-5.3.5.tar.gz

Suhosin is enabled
Retrieving Suhosin patch from http://download.suhosin.org/suhosin-....9.10.patch.gz
2011-02-22 16:19:06 URL:http://download.suhosin.org/suhosin-....9.10.patch.gz [41092/41092] -> "suhosin-patch-5.3.5.patch.gz" [1]

Extracting Suhosin patch: gunzip -f suhosin-patch-5.3.5.patch.gz

Patching source with Suhosin patch
/usr/local/lsws/phpbuild/buildphp_1298413132.9.prep.sh: 132: patch: not found
**ERROR** Could not patch source with Suhosin patch

webizen 02-22-2011 02:37 PM

Your server is missing 'patch' program. Do 'yum install patch' if you are running CentOS.

Refer to this guide for how to fix PHP compile issues you may have:

http://www.litespeedtech.com/support...i:troubleshoot

gkamp 02-22-2011 02:40 PM

we are using ubuntu 10

webizen 02-22-2011 02:42 PM

apt-get install patch

gkamp 02-23-2011 06:17 AM

Thanks. That worked out and it was able to finish building PHP 5.3.5 with LSAPI; but I then got this:

==============================================
Start building Suhosin Extension
==============================================
Tue Feb 22 18:16:09 CST 2011

Changing to build directory /usr/local/lsws/phpbuild/php-5.3.5/suhosin-0.9.32.1
Running PHPize for Suhosin extension
Configuring for:
PHP Api Version: 20090626
Zend Module Api No: 20090626
Zend Extension Api No: 220090626
Cannot find autoconf. Please check your autoconf installation and the
$PHP_AUTOCONF environment variable. Then, rerun this script.

**ERROR** Could not run PHPize for Suhosin

How do I check the autoconf installation?

mistwang 02-23-2011 09:00 AM

http://www.litespeedtech.com/support...i:troubleshoot

for any missing package, just do "apt-get install <package_name>".


All times are GMT -7. The time now is 06:17 PM.