From: Guido Draheim Date: Wed, 27 Sep 2006 15:06:36 +0000 (+0000) Subject: zip-php X-Git-Tag: v0.13.48~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=09190653750f7314cea0d7ee41157a70ceeec7f7;p=zziplib zip-php (.) --- diff --git a/ChangeLog b/ChangeLog index b3cb252..3bc955b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,6 @@ +2006-09-27 + * adding docs/zip-php.htm integrating Chris Branch's mail into the docs + 2006-09-26 * adding docs/notes.htm - to register some old dicussions for later reference. Let's see how that fills up. diff --git a/docs/Makefile.am b/docs/Makefile.am index 5cf0dce..5b9e0bb 100644 --- a/docs/Makefile.am +++ b/docs/Makefile.am @@ -13,7 +13,7 @@ htm_FILES = zzip-index.htm zzip-zip.htm zzip-file.htm zzip-sdl-rwops.htm \ 64on32.htm future.htm fseeko.htm mmapped.htm memdisk.htm \ configs.htm sfx-make.htm developer.htm download.htm \ history.htm referentials.htm faq.htm copying.htm notes.htm \ - functions.htm + functions.htm zip-php.htm SDL = @top_srcdir@/SDL SDL_RWOPS = $(SDL)/SDL_rwops_zzcat.c \ $(SDL)/SDL_rwops_zzip.c $(SDL)/SDL_rwops_zzip.h diff --git a/docs/Makefile.in b/docs/Makefile.in index b669373..fd5ce17 100644 --- a/docs/Makefile.in +++ b/docs/Makefile.in @@ -217,7 +217,7 @@ htm_FILES = zzip-index.htm zzip-zip.htm zzip-file.htm zzip-sdl-rwops.htm \ 64on32.htm future.htm fseeko.htm mmapped.htm memdisk.htm \ configs.htm sfx-make.htm developer.htm download.htm \ history.htm referentials.htm faq.htm copying.htm notes.htm \ - functions.htm + functions.htm zip-php.htm SDL_RWOPS = $(SDL)/SDL_rwops_zzcat.c \ $(SDL)/SDL_rwops_zzip.c $(SDL)/SDL_rwops_zzip.h diff --git a/docs/body.htm b/docs/body.htm index 2729c42..ed45f5f 100644 --- a/docs/body.htm +++ b/docs/body.htm @@ -63,6 +63,7 @@
 
faq <> notes +<> zip-php
Download Area
<> Developer Area
<> Sourceforge Project diff --git a/docs/zip-php.htm b/docs/zip-php.htm new file mode 100644 index 0000000..0416667 --- /dev/null +++ b/docs/zip-php.htm @@ -0,0 +1,63 @@ +

PHP-ZIP Installation

+ +

+ There have been many problems about the installation of the php-zip + module. Since Mid of 2006 the php-zip module does not require the + zziplib anymore - it uses its own implementation (which is a clean + approach in a double sense - there are no source code comments). + So, the following might possibly be only relevant for older + installations. +

+ +

Chris Branch has been kind enough to jot down the points of a + successful php-zip installation sending it to me in May 2006. + I am quoting his text verbatim - again, I do not know whether + it works or not as I am not using any PHP for real work. +

+ +
+
+
Software Packages
+
    +
  • Apache 2.4.21 (Linux)
  • +
  • PHP 4.3.9
  • +
  • ZZIPLIB 0.10.82
  • +
  • Special requirement: static linking +
+
Setting up ZZIPLIB
+
    +
  • Extract files from zziplib-0.10.82.tar.bz2 to a new folder.
  • +
  • ./configure --enable-static
  • +
  • make
  • +
  • make install
  • +
+
Rebuilding PHP to include ZIP support
+
    +
  • Modify PHP build file and add "--with-zip" +[no dir needed because default /usr/local on my machine]
  • +
  • make
  • +
  • make install
  • +
+
Modifying the Apache Installation
+
    +
  • Change to Apache source code directory
  • +
  • Change to "src" subdirectory and edit existing Makefile. [***] +
    Add: EXTRA_LIBS=/usr/local/lib/libzzip.a
  • +
  • Change back to parent folder (cd ..)
  • +
  • make
  • +
  • /usr/local/etc/httpd/bin/apachectl stop
  • +
  • make install
  • +
  • /usr/local/etc/httpd/bin/apachectl start
  • +
+
+ +

[***] Note: +That step is the critical step that's not obvious. Apparently, +when you build PHP as a static library and include the "--with-zip" +option, it creates a static library for PHP with an external dependency on +zziplib.a. However, the Apache configure script and resulting Makefile +doesn't take this into account, so Apache won't link unless you hand-edit +the Apache Makefile. (Maybe there's a better place to make this change so +that you don't have to re-fix Apache's Makefile each time you run Apache's +./configure. However, I didn't spend the time to investigate that). +