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

Go Back   LiteSpeed Support Forums > External Applications > PHP > 4.0.19 + PHP 5.3.5 mail header patch error ?

Reply
 
Thread Tools Display Modes
  #1  
Old 01-21-2011, 11:53 AM
eva2000 eva2000 is offline
Senior Member
 
Join Date: Dec 2004
Location: Brisbane, Australia
Posts: 142
Question 4.0.19 + PHP 5.3.5 mail header patch error ?

Just updated to litespeed 4.0.19 and rebuilding PHP 5.3.5 get's mail header patch error ?

Code:
**MAIN_STATUS** retrieved from /usr/local/lsws/phpbuild/buildphp_1295639433.4.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.gz/from/us.php.net/mirror
Extracting PHP source archive: tar -zxf php-5.3.5.tar.gz
Retrieving mail header patch from http://choon.net/opensource/php/php-5.3.5-mail-header.patch
Patching source with mail header patch
**ERROR** Could not patch source with mail header patch
DETAILED LOG

Code:
Retrieving mail header patch from http://choon.net/opensource/php/php-5.3.5-mail-header.patch
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

100   162  100   162    0     0    191      0 --:--:-- --:--:-- --:--:--   191
100   162  100   162    0     0    191      0 --:--:-- --:--:-- --:--:--     0

Patching source with mail header patch
patch: **** Only garbage was found in the patch input.
**ERROR** Could not patch source with mail header patch
is the mail header patch needed ?
Reply With Quote
  #2  
Old 01-21-2011, 12:07 PM
eva2000 eva2000 is offline
Senior Member
 
Join Date: Dec 2004
Location: Brisbane, Australia
Posts: 142
Tried building PHP 5.3.5 without mail header patch and only memcached and get another error

Code:
**MAIN_STATUS** retrieved from /usr/local/lsws/phpbuild/buildphp_1295639983.1.progress
Start building PHP 5.3.5 with LSAPI
Configuring PHP build (2-3 minutes)
Compiling PHP (5-10 minutes)
Installing PHP
copy compiled php binary to litespeed directory
Start building MemCache Extension
Changing to build directory /usr/local/lsws/phpbuild/php-5.3.5/memcache-2.2.6
Running PHPize for MemCache extension
**ERROR** Could not run PHPize for MemCache
Code:
Build complete.
Don't forget to run 'make test'.

Installing PHP
Installing PHP SAPI module:       litespeed
Installing PHP LiteSpeed into: /usr/bin/
Installing PHP CLI binary:        /usr/bin/
Installing PHP CLI man page:      /usr/share/man/man1/
Installing shared extensions:     /usr/lib64/20090626/
Installing build environment:     /usr/lib64/build/
Installing header files:          /usr/include/php/
Installing helper programs:       /usr/bin/
  program: phpize
  program: php-config
Installing man pages:             /usr/share/man/man1/
  page: phpize.1
  page: php-config.1
Installing PDO headers:          /usr/include/php/ext/pdo/
copy compiled php binary to litespeed directory
cd /usr/local/lsws//fcgi-bin
ln -sf lsphp-5.3.5 lsphp5

==============================================
Finished building PHP 5.3.5 with LSAPI
==============================================
Sat Jan 22 06:04:12 EST 2011


==============================================
Start building MemCache Extension
==============================================
Sat Jan 22 06:04:12 EST 2011

Changing to build directory /usr/local/lsws/phpbuild/php-5.3.5/memcache-2.2.6
Running PHPize for MemCache extension
/usr/local/lsws/phpbuild/buildphp_1295639983.1.install.sh: line 134: /usr/local/lsws/lsphp5/bin/phpize: No such file or directory
**ERROR** Could not run PHPize for MemCache
phpize locations

Code:
locate phpize
/usr/bin/phpize
/usr/lib64/build/phpize.m4
/usr/local/lsws/phpbuild/php-5.3.4/scripts/phpize
/usr/local/lsws/phpbuild/php-5.3.4/scripts/phpize.in
/usr/local/lsws/phpbuild/php-5.3.4/scripts/phpize.m4
/usr/local/lsws/phpbuild/php-5.3.4/scripts/man1/phpize.1
/usr/local/lsws/phpbuild/php-5.3.4/scripts/man1/phpize.1.in
/usr/local/src/php535/php-5.3.5/scripts/phpize
/usr/local/src/php535/php-5.3.5/scripts/phpize.in
/usr/local/src/php535/php-5.3.5/scripts/phpize.m4
/usr/local/src/php535/php-5.3.5/scripts/man1/phpize.1
/usr/local/src/php535/php-5.3.5/scripts/man1/phpize.1.in
/usr/share/man/man1/phpize.1
/usr/share/man/man1/phpize.1.gz

Last edited by eva2000; 01-21-2011 at 12:09 PM..
Reply With Quote
  #3  
Old 01-21-2011, 12:14 PM
eva2000 eva2000 is offline
Senior Member
 
Join Date: Dec 2004
Location: Brisbane, Australia
Posts: 142
seems PHP 5.3.4 has same error but let me go through to end ?

Code:
Build complete.
Don't forget to run 'make test'.

Installing PHP
Installing PHP SAPI module:       litespeed
Installing PHP LiteSpeed into: /usr/bin/
Installing PHP CLI binary:        /usr/bin/
Installing PHP CLI man page:      /usr/share/man/man1/
Installing shared extensions:     /usr/lib64/20090626/
Installing build environment:     /usr/lib64/build/
Installing header files:          /usr/include/php/
Installing helper programs:       /usr/bin/
  program: phpize
  program: php-config
Installing man pages:             /usr/share/man/man1/
  page: phpize.1
  page: php-config.1
Installing PDO headers:          /usr/include/php/ext/pdo/
copy compiled php binary to litespeed directory
cd /usr/local/lsws//fcgi-bin
ln -sf lsphp-5.3.4 lsphp5

==============================================
Finished building PHP 5.3.4 with LSAPI
==============================================
Wed Jan 19 22:29:09 EST 2011


==============================================
Start building MemCache Extension
==============================================
Wed Jan 19 22:29:09 EST 2011

Changing to build directory /usr/local/lsws/phpbuild/php-5.3.4/memcache-2.2.6
Running PHPize for MemCache extension
/usr/local/lsws/phpbuild/buildphp_1295439762.1.install.sh: line 134: /usr/local/lsws/lsphp5/bin/phpize: No such file or directory
**ERROR** Could not run PHPize for MemCache
Looks like phpize isn't where litespeed thinks it is

Last edited by eva2000; 01-21-2011 at 12:20 PM..
Reply With Quote
  #4  
Old 01-21-2011, 12:24 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
litespeed PHP was installed to /usr/bin, should be installed to /usr/local/lsws/lsphp5/bin,
Need to remove "--prefix=/usr" from the configuration option.
Reply With Quote
  #5  
Old 01-21-2011, 12:30 PM
eva2000 eva2000 is offline
Senior Member
 
Join Date: Dec 2004
Location: Brisbane, Australia
Posts: 142
Yup that was it

Code:
Libraries have been installed in:
   /usr/local/lsws/phpbuild/php-5.3.5/memcache-2.2.6/modules

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the `LD_RUN_PATH' environment variable
     during linking
   - use the `-Wl,--rpath -Wl,LIBDIR' linker flag
   - have your system administrator add LIBDIR to `/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------

Build complete.
Don't forget to run 'make test'.

Installing MemCache extension
Installing shared extensions:     /usr/local/lsws/lsphp5/lib/php/20090626/
chown -R lsadm:lsadm /usr/local/lsws/phpbuild/php-5.3.5/memcache-2.2.6 

==============================================
MemCache extension build complete
==============================================
Sat Jan 22 06:25:28 EST 2011

**COMPLETE**
Reply With Quote
  #6  
Old 02-04-2011, 01:53 PM
fastproxy fastproxy is offline
Senior Member
 
Join Date: Nov 2007
Posts: 95
i have similar problem, i dont have "--prefix=/usr" in the configuration option.

My configuration options:
Code:
'--with-litespeed' '--with-mysql' '--with-mysqli' '--with-libdir=lib64' '--with-gd' '--enable-shmop' '--enable-track-vars' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-magic-quotes' '--enable-mbstring' '--without-pear' '--with-bz2' '--with-curl' '--with-exec-dir=/usr/bin' '--with-freetype-dir=/usr' '--with-png-dir=/usr' '--enable-gd-native-ttf' '--without-gdbm' '--with-gettext' '--with-gmp' '--with-iconv' '--with-jpeg-dir=/usr' '--with-openssl' '--with-png' '--with-pspell' '--with-expat-dir=/usr' '--with-pcre-regex=/usr' '--with-zlib' '--with-imap=shared' '--with-imap-ssl' '--with-kerberos'
Error:
Code:
**MAIN_STATUS** retrieved from /usr/local/lsws/phpbuild/buildphp_1296856348.4.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-patch-5.3.5-0.9.10.patch.gz
**ERROR** Could not extract Suhosin patch
Code:
**LOG_DETAIL** retrieved from /usr/local/lsws/phpbuild/buildphp_1296856348.4.log
=============================================================
Preparing all source code for building PHP 5.3.5 with LSAPI
=============================================================
Fri Feb 4 16:52:28 EST 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-patch-5.3.5-0.9.10.patch.gz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

100   345  100   345    0     0   1040      0 --:--:-- --:--:-- --:--:--  1040
100   345  100   345    0     0   1040      0 --:--:-- --:--:-- --:--:--     0

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

gunzip: suhosin-patch-5.3.5.patch.gz: not in gzip format
**ERROR** Could not extract Suhosin patch
Reply With Quote
  #7  
Old 02-04-2011, 06:18 PM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,339
suhosin patch for php-5.3.5 (ie. http://download.suhosin.org/suhosin-....9.10.patch.gz) is not yet available .
Reply With Quote
Reply

Tags
mail header patch, php, php 5.3.5

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 01:04 AM.



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