Unable to Install PHPExcel

I am trying to install the PHPExcel library on an Ubuntu server. I executed the following commands on the command line:

pear channel-discover pear.pearplex.net
pear install pearplex/PHPExcel

The channel was installed, but instakll generates an error:

pearplex/PHPExcel requires PHP extension "zip" (version >= 1.8.0), installed version is 1.4.0
No valid packages found
install failed

Then I made a safe update:

aptitude safe-upgrade

and when I check PHP, I see this (Zip version 2.0.0): enter image description here

Any ideas?

+3
source share
1 answer

Using

$ php -m

to find out if the zip extension exists on the command line. Then use

$ php --ini

to find the location of your php.ini file and fix it.

+1
source

All Articles