472,353 Members | 1,569 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,353 software developers and data experts.

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 13324
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,658 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,658 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,658 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,658 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,658 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,658 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

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

Similar topics

3
by: Hemanth | last post by:
Hello there, I've a utility that runs on a linux machine. Basically, it opens a window, draws a figure and captures the image (screen) and stores...
4
by: MLH | last post by:
A programmer developed an AMP (Apache/MySQL/PHP) application for me. When he was done, he sent me the PHP files and the MySQL dump file. Now, when...
1
by: atodd_109 | last post by:
I currently have a page that is running from a windows based server with frontpage extensions installed. My mouseover script works great. I am now...
7
by: Trint Smith | last post by:
anyone, how do i install asp.net 1.1 on a linux server? thanks, Trint ..Net programmer trintsmith@hotmail.com *** Sent via Developersdex...
3
by: Andy Grayson | last post by:
Hi, I am not sure this is the right group to ask as I think the problem is Linux related but I have had no joy from Linux groups I am new to both...
14
by: Arjan | last post by:
Is there a way to connect to the Linux filesystem with C# without using Samba? I need it to get a configuration file from the server, edit it and...
4
by: mw | last post by:
Hi, Is it possible? I have an application built on the 1.1 .NET framework with a SQL Server 2000 backend. The LINUX server in question hosts...
2
by: rosoft | last post by:
Hi I need to put up an ASP.NET server on a Linux server. Does any one have any good recomendation for this. Lars
2
by: arivusudar.nc | last post by:
I have to open word document in web page using php coding in linux server.. already i worte in windows supporting php code. but it is not working...
0
by: mnshzz | last post by:
I am working on Project where there is a requirement to transliterated the native characters (Greek, Turkish, Russian) into English on the Linux RH...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was...
0
by: Matthew3360 | last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function. Here is my code. ...
2
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...
0
by: Arjunsri | last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific...
0
Oralloy
by: Oralloy | last post by:
Hello Folks, I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA. My problem (spelled failure) is with the...
0
BLUEPANDA
by: BLUEPANDA | last post by:
At BluePanda Dev, we're passionate about building high-quality software and sharing our knowledge with the community. That's why we've created a SaaS...
0
by: Rahul1995seven | last post by:
Introduction: In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.