Page 1 of 1
php extensions linux
Posted: Mon Sep 24, 2007 9:56 am
by mad_phpq
Hi,
Can some tell me how i can add php5 extenstions in linux. I'm trying to get zip_open to work.
I'm using debian 4.0. I'm a linux newbie by the way.
Thanks
--Mark
Posted: Mon Sep 24, 2007 10:07 am
by feyd
The
manual page states the installation instructions. Are you confused by them?
Posted: Mon Sep 24, 2007 10:12 am
by mad_phpq
yes.
Linux systems
In order to use these functions you must compile PHP with zip support by using the --enable-zip configure option.
where do i enable this option at?
Posted: Mon Sep 24, 2007 10:33 am
by mad_phpq
do i have to recompile php? How do i do this?
Posted: Mon Sep 24, 2007 11:39 am
by feyd
While running the "configure" script you would give that as an option. Yes, it does require recompiling.
Posted: Mon Sep 24, 2007 2:41 pm
by Benjamin
Best advice I can give you is to run phpinfo in a browser to view what the current configuration options are. Download a copy of the PHP source code and extract it. In a terminal you'll want to navigate to the directory containing the code and run the following:
./configure --with-all-your-options-typed-here
./make
su
<root password>
./make install
Be sure to backup your current php.ini file as it may be replaced. You'll probably run into some issues of some sort and you may have to reconfigure your httpd.conf file depending on what version of PHP you install.
Posted: Mon Sep 24, 2007 8:53 pm
by volka
According to
the php_zip module should be built-in.