473,395 Members | 1,846 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 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 13470
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 it as a jpeg file. The utility requires a...
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 I connect to the application on my LAN using...
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 in the process of developing another page that...
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 http://www.developersdex.com *** Don't just...
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 Linux and Programming, I am learning as I go but...
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 place it back. And after that I need to restart a...
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 php-based sites with MySQL. I just need a quick...
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 in my linux server so, i need how to open word...
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 enterprise V4 server. As part of the SIT, txt...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.