Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't install PHPExcel

Tags:

php

pear

phpexcel

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

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

The channel was install but the 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 did a safe-upgrade:

aptitude safe-upgrade

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

Any ideas?

like image 923
oscarm Avatar asked Mar 02 '26 07:03

oscarm


1 Answers

Use

$ php -m

to see if the zip extension is there on command line. Then use

$ php --ini

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

like image 158
cweiske Avatar answered Mar 03 '26 21:03

cweiske



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!