469,271 Members | 1,431 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,271 developers. It's quick & easy.

How to recompiling php with --enable-zip parameter on linux server?

We have ZZIPlib installed.

My command configure line looks like :
./configure –with-apxs –with-curl –with-curl-dir=/usr/local/lib –with-gd –with-gd-dir=/usr/local –with-gettext –with-jpeg-dir=/usr/local/lib –with-kerberos, etc.

Then I need to add –enable-zip to this line.

I can't even find the right place to run the ./configure --help command.
Sep 13 '09 #1
14 13068
Markus
6,050 Expert 4TB
@ujwalarali85
You need to PHP source, which is available from php.net.

Then cd into the source directory, and run your new configure command (with your enable zip), then make && make install.
Sep 13 '09 #2
@Markus
Sorry I couldn't get you exactly, please explain in brief. Its very urgent requirement for me to enable ZIP functionality.

I have Webmin access but not know where and how to run Configure command with enable zip option.

Thanks a lot.
Sep 22 '09 #3
Dormilich
8,651 Expert Mod 8TB
these are shell commands (aka CLI) so you need a shell window (or terminal (window), e.g. provided by aterm, xterm, …) to type it there.
Sep 22 '09 #4
@Dormilich
I have the Shell window , but how and in which directory I have to run configure command
Sep 22 '09 #5
Dormilich
8,651 Expert Mod 8TB
do as Markus said:

Then cd into the source directory, and run your new configure command (with your enable zip), then make && make install.
Sep 22 '09 #6
@Dormilich
exactly not getting the 'source directory' and where it located. Please can you help regarding this.
Sep 22 '09 #7
Dormilich
8,651 Expert Mod 8TB
source directory: the directory where you unzipped the PHP source code into
Sep 22 '09 #8
@Dormilich
I got PHP Source Dir, but ./configure file is not present there. There is php-config file in that in that configure options are set as follows

configure_options=" '--disable-cli' '--disable-discard-path' '--disable-force-cgi-redirect' '--prefix=/usr/local/php5' '--with-config-file-path=/usr/local/lib/php5' '--with-pear=/usr/share/php5' '--enable-exif' '--enable-ftp' '--enable-bcmath' '--enable-calendar' '--with-gd' '--enable-gd-native-ttf' '--with-freetype-dir' '--with-gettext' '--with-zlib-dir' '--with-imap' '--with-imap-ssl' '--with-png-dir=/usr' '--with-jpeg-dir=/usr' '--with-xpm-dir=/usr' '--with-openssl' '--with-kerberos' '--enable-sysvsem' '--enable-sysvshm' '--with-mcrypt' '--with-iconv' '--enable-mbstring=all' '--enable-mbregex' '--with-mysql=/usr' '--with-mysqli' '--with-curl' '--with-pdo-mysql' '--enable-soap' '--with-mhash' '--with-xsl'"

Now Please guide me how I run configure command with --enable-zip option.
Sep 23 '09 #9
Dormilich
8,651 Expert Mod 8TB
@ujwalarali85
if it were a file, it’d be hidden. alas, it is a shell script (usually provided by the system).
Sep 23 '09 #10
@Dormilich
Thanks for reply.
I did following steps

> cd /usr/local/php5/bin

> './configure' '--disable-cli' '--disable-discard-path' '--disable-force-cgi-redirect' '--prefix=/usr/local/php5' '--with-config-file-path=/usr/local/lib/php5' '--with-pear=/usr/share/php5' '--enable-exif' '--enable-ftp' '--enable-bcmath' '--enable-calendar' '--with-gd' '--enable-gd-native-ttf' '--with-freetype-dir' '--with-gettext' '--with-zlib-dir' '--with-imap' '--with-imap-ssl' '--with-png-dir=/usr' '--with-jpeg-dir=/usr' '--with-xpm-dir=/usr' '--with-openssl' '--with-kerberos' '--enable-sysvsem' '--enable-sysvshm' '--with-mcrypt' '--with-iconv' '--enable-mbstring=all' '--enable-mbregex' '--with-mysql=/usr' '--with-mysqli' '--with-curl' '--with-pdo-mysql' '--enable-soap' '--with-mhash' '--with-xsl' '--enable-zip'


/bin/bash: ./configure: No such file or directory


I got above error message
Sep 23 '09 #11
Dormilich
8,651 Expert Mod 8TB
@ujwalarali85
I suspect the Makefile is missing. (see also here)
Sep 23 '09 #12
Markus
6,050 Expert 4TB
@ujwalarali85
No - that's where your compiled PHP is located. You need the actual source code, available from here - remember, you want the complete source code.. nothing precompiled. Once you have that downloaded, cd into it's location. The source should have a README file, that will explain how to install on a *nix system.
Sep 23 '09 #13
@Markus
Thanks Markus.
I have already have PHP5 installed on server.
Now I want how to add zip support to PHP5 as PHP5 is already installed at server.(Ref: http://www.lampdocs.com/blog/2008/08...pport-for-php/)

I found the another forum
http://forums.gentoo.org/viewtopic-t...2-start-0.html
with reference of this so I thought the source directory is /usr/local/portage/dev-lang/

So did
> cd /usr/local/portage-ovh/dev-lang/php5-ovh

then run the configur commad with '--enable-zip' option ,but still it giving following error
/bin/bash: ./configure: No such file or directory
Sep 24 '09 #14
Dormilich
8,651 Expert Mod 8TB
@ujwalarali85
it doesn’t matter if there already is a compliled build. to add the zip functionality you must (re)compile the whole stuff (which requires the source code). the blog clearly stated that.

@ujwalarali85
things are different, if you installed PHP through a package manager (apt, synaptic, yast, emerge, port, …)

if you’re using Gentoo Linux, then you should use emerge to rebuild PHP (as described in the link).
Sep 24 '09 #15

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

1 post views Thread by atodd_109 | last post: by
7 posts views Thread by Trint Smith | last post: by
2 posts views Thread by rosoft | last post: by
2 posts views Thread by arivusudar.nc | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.