0

I have issue. I can't install ext-zip on PHP 7.4 in the Ubuntu 18.04 VPS and as a result I can't install properly Laravel Excel lib from maatwebsite. When I'm trying install ext-zip with this command and restart apache afterwards

sudo apt-get install php7.4-zip

I get error

E: Unable to locate package php7.4-zip
E: Couldn't find any package by glob 'php7.4-zip'
E: Couldn't find any package by regex 'php7.4-zip'

I try also add extension to php.ini file nothing changes. However, for PHP 7.2 and PHP 8.2 I haven't got any issues to install mentioned extension

Skully1
  • 23
  • 1
  • 6
  • If you are using [ondrej/php](https://launchpad.net/~ondrej/+archive/ubuntu/php) then keep in mind that only supported PHP versions and supported Ubuntu versions are provided. Note that PHP 7.4 and Ubuntu 18.04 are both end of life. You may need to either install from source or via pecl or upgrade OS and PHP versions – apokryfos Jul 25 '23 at 13:24
  • What @apokryfos wrote: Either upgrade to 20.04 or take the LTS offer: https://www.freexian.com/lts/php/ – hakre Jul 25 '23 at 17:59
  • Our Ubuntu 18.04 is LTS version. I don't know or I use ondrej/php or pecl version – Skully1 Jul 26 '23 at 10:17
  • @Skully1 LTS stands for "Long Term Support", but it's not infinite. The *free* LTS period for Ubuntu 18.04 has now come to an end, so you will need to pay someone for an extended support contract beyond that. – IMSoP Aug 14 '23 at 10:04

0 Answers0