LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > External Applications > PHP > Compiling PHP5 problems

Reply
 
Thread Tools Display Modes
  #1  
Old 02-22-2011, 01:56 PM
gkamp gkamp is offline
Member
 
Join Date: Feb 2011
Posts: 31
Default 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.

Last edited by gkamp; 02-22-2011 at 02:22 PM..
Reply With Quote
  #2  
Old 02-22-2011, 02:15 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
Please try again, upgraded your LSWS to 4.0.20 .
Reply With Quote
  #3  
Old 02-22-2011, 02:25 PM
gkamp gkamp is offline
Member
 
Join Date: Feb 2011
Posts: 31
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
Reply With Quote
  #4  
Old 02-22-2011, 02:27 PM
gkamp gkamp is offline
Member
 
Join Date: Feb 2011
Posts: 31
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
Reply With Quote
  #5  
Old 02-22-2011, 02:37 PM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,339
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

Last edited by webizen; 02-22-2011 at 02:40 PM..
Reply With Quote
  #6  
Old 02-22-2011, 02:40 PM
gkamp gkamp is offline
Member
 
Join Date: Feb 2011
Posts: 31
we are using ubuntu 10
Reply With Quote
  #7  
Old 02-22-2011, 02:42 PM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,339
apt-get install patch
Reply With Quote
  #8  
Old 02-23-2011, 06:17 AM
gkamp gkamp is offline
Member
 
Join Date: Feb 2011
Posts: 31
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?
Reply With Quote
  #9  
Old 02-23-2011, 09:00 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
http://www.litespeedtech.com/support...i:troubleshoot

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

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 02:41 PM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.