A
download zip-php.htm
Language: NonCode
LOC: 0
Project Info
ZZIPlib Library(zziplib)
Server: SourceForge
Type: cvs
...ziplib\zziplib\zzip‑0\docs\
   .cvsignore
   64on32.htm
   body.htm
   configs.htm
   copying.htm
   COPYING.MPL
   COPYING.ZLIB
   developer.htm
   download.htm
   faq.htm
   fseeko.htm
   functions.htm
   future.htm
   history.htm
   make-dbk.pl
   make-doc.pl
   make-doc.py
   makedocs.py
   Makefile.am
   Makefile.in
   memdisk.htm
   mksite.pl
   mksite.sh
   mmapped.htm
   notes.htm
   README.MSVC6
   README.SDL
   referentials.htm
   sdocbook.css
   sfx-make.htm
   site.htm
   zip-php.htm
   zzip-api.htm
   zzip-basics.htm
   zzip-crypt.htm
   zzip-cryptoid.htm
   zzip-extio.htm
   zzip-extras.htm
   zzip-file.htm
   zzip-index.htm
   zzip-parse.htm
   zzip-sdl-rwops.htm
   zzip-xor.htm
   zzip-zip.htm
   zziplib-manpages.dbk
   zziplib-master.dbk
   zziplib.html

<H2> PHP-ZIP Installation </H2>

<P>
  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.
</P>

<P> 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.
</P>

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

<p><b>[***] Note:</b>
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).
</p>

About Koders | Resources | Downloads | Support | Black Duck | Terms of Service | DMCA | Privacy Policy | Contact Us