An error has occured: You must install PHP zip extension first

andrey3127

Member
XNullUser
Joined
Oct 31, 2021
Messages
192
Reaction score
1
Points
18
NullCash
1
I have encountered this problem while installing Prestashop 1.7.8.1. The problem was resolved after my hosting provider has installed PHP zip extension.

You need to open a ticked at hosting platform and they usually solve it.

Снимок экрана (531).png
 

freiserk

Well-known member
☆☆ Special ☆☆
☆ Pro ☆
Master
Joined
Jan 24, 2019
Messages
3,497
Reaction score
6,557
Points
113
NullCash
33,218
I have encountered this problem while installing Prestashop 1.7.8.1. The problem was resolved after my hosting provider has installed PHP zip extension.

You need to open a ticked at hosting platform and they usually solve it.

View attachment 34230

You need the extension for php.

It depends on where the server is mounted, OS, version of php ...

Download:
https://pecl.php.net/package/zip for windows.

Or install for linux or mac:
sudo apt-get -y install php7.4-zip

Grettings.
 

d-shilko

Well-known member
☆☆ Special ☆☆
☆ Pro ☆
Joined
Jun 10, 2021
Messages
2,542
Reaction score
1,536
Points
113
NullCash
4,201
You need the extension for php.

It depends on where the server is mounted, OS, version of php ...

Download:
https://pecl.php.net/package/zip for windows.

Or install for linux or mac:
sudo apt-get -y install php7.4-zip

Grettings.
PHP already exist on him server, because code work. They need extensions. And for stability work PS my recommendations PHP 7.2.
For PHP 7.2 and the first needed extensions (Ubuntu Linux)
sudo apt-get install php7.2-curl php7.2-gd php7.2-json php7.2-mbstring php7.2-intl php7.2-mysql php7.2-xml php7.2-zip

after install enable PHP mod_rewrite
sudo a2enmod rewrite
restart appache
sudo service apache2 restart
 

freiserk

Well-known member
☆☆ Special ☆☆
☆ Pro ☆
Master
Joined
Jan 24, 2019
Messages
3,497
Reaction score
6,557
Points
113
NullCash
33,218
PHP already exist on him server, because code work. They need extensions. And for stability work PS my recommendations PHP 7.2.
For PHP 7.2 and the first needed extensions (Ubuntu Linux)
sudo apt-get install php7.2-curl php7.2-gd php7.2-json php7.2-mbstring php7.2-intl php7.2-mysql php7.2-xml php7.2-zip

after install enable PHP mod_rewrite
sudo a2enmod rewrite
restart appache
sudo service apache2 restart

Php 7.2 ? 🙆‍♂️
 

d-shilko

Well-known member
☆☆ Special ☆☆
☆ Pro ☆
Joined
Jun 10, 2021
Messages
2,542
Reaction score
1,536
Points
113
NullCash
4,201
Php 7.2 ? 🙆‍♂️
Because modules. Not all developers use last science. Some modules use code not from PS core framework. For this reason PHP7.2 most stable for PS. It is only my experience not fact.
 

Tortembox

Member
XNullUser
Joined
Mar 20, 2022
Messages
33
Reaction score
0
Points
6
NullCash
31
Prestashop supports from version 7.1. However, 7.4 can also be used. I have no problems with PHP 7.4.
 
Top