Re: Installing zziplib on php4?



*** news@xxxxxxxxxxxxxx escribió/wrote (22 Aug 2006 13:04:43 -0700):
Now, that probably installs the library on the server, but I'll
probably have to recompile PHP anyway, will I?

It seems so:

"In PHP 4 this PECL extensions source can be found in the ext/ directory
within the PHP source or at the PECL link above. In order to use these
functions you must compile PHP with zip support by using the
--with-zip[=DIR] configure option."

I ask for any suggestions from people with personal experience in it
because this is our production server, and I'd really like to know what
to expect before I end up ruinging our PHP install. =)

It isn't difficult to recompile PHP from the *.src.rpm file. Just install
the source package:

rpm -ivh php.........src.rpm

Find the *.spec file:

cd /usr/src/redhat/....../SPEC/php.spec

Edit the file and add the "--with-zip" stuff. Then rebuild:

rpmbuild -ba php.spec

This generates several *.rpm files:

cd /usr/src/redhat/....../RPMS/php....rpm

You can do it in a test server. When installing, just keep the original
*.rpm in case you break something.


Second option, if you just need un unzip a file install the "unzip" RPM
package and then use system() or exec().

--
-+ http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
++ Mi sitio sobre programación web: http://bits.demogracia.com
+- Mi web de humor con rayos UVA: http://www.demogracia.com
--
.



Relevant Pages

  • RE: [PHP] Xampp question, pretty much 0T
    ... I suggest you look into VMWare. ... versions (player, server, etc) if you don't want Workstation (which I ... [PHP] Xampp question, pretty much 0T ... recommended it to me when I asked for an easy install of AMP. ...
    (php.general)
  • HOWTO: FreeTDS for Newbies (almost complete)
    ... One way to do that is to install FreeTDS, recompile PHP, ... You can go to freetds.org and install the RPMs on Unix or Linux ...
    (comp.lang.php)
  • Re: [SLE] updating to PHP5
    ... while running PHP 5 for my stuff. ... managed by SuSE staff where you can download latest apache with all ... SLES 9 doesn't need PHP for its default configuration. ... Thus, it seems possible to remove PHP4, install a new Apache instance, PHP5 ...
    (SuSE)
  • RE: Mea Culpa, Ive killed OWA/RWW/Other stuff with NET STOP
    ... the SSL port to the new site, once that was deleted, I was able to ... Perhaps posting my config, as you requested, will help answer this question: ... available - it's a PHP intranet/extranet application, ... >>I was trying to install PHP manually, ...
    (microsoft.public.windows.server.sbs)
  • Re: PHP Tutorials
    ... >> In this tutorial we assume that your server has activated support for PHP ... install a web server locally (not just Apache). ...
    (comp.lang.php)