You need to install the php-zip extension for PHP7.2. This post should help you out: https://stackoverflow.com/questions/49583881/how-can-i-inslatt-ziparchive-on-php-7-2-with-centos-7
Can't install laravel due to "the requested PHP extension zip is missing from your system"
Hello,
I'm trying to install laravel on my web server. I have update php to php 7.2.11
[root@APP-TESTLAMP el_laravel]# yum install --enablerepo=remi-php72 php php-common php-mcrypt php-cli php-gd php-curl php-mysql php-ldap php-zip php-fileinfo php-mbstring php-mysqlnd php-pdo php-opcache php-xml php-devel php-imap php-json Modules complémentaires chargés : fastestmirror, priorities Loading mirror speeds from cached hostfile
- epel: epel.mirror.wearetriple.com
- ius: archive.linux.duke.edu
- remi-php72: remi.mirror.karneval.cz
- remi-safe: remi.mirror.karneval.cz Le paquet php-mcrypt est rendu obsolète par php-pecl-mcrypt, tentative d'installation de php-pecl-mcrypt-1.0.1-6.el7.remi.7.2.x86_64 à la place Le paquet php-mysql est rendu obsolète par php-mysqlnd, tentative d'installation de php-mysqlnd-7.2.11-1.el7.remi.x86_64 à la place Le paquet php72u-common est rendu obsolète par php-common, tentative d'installation de php-common-7.2.11-1.el7.remi.x86_64 à la place Résolution des dépendances --> Lancement de la transaction de test ---> Le paquet php.x86_64 0:7.2.11-1.el7.remi sera installé ---> Le paquet php-cli.x86_64 0:7.2.11-1.el7.remi sera installé ---> Le paquet php-common.x86_64 0:7.2.11-1.el7.remi sera installé ---> Le paquet php-devel.x86_64 0:7.2.11-1.el7.remi sera installé ---> Le paquet php-gd.x86_64 0:7.2.11-1.el7.remi sera installé ---> Le paquet php-imap.x86_64 0:7.2.11-1.el7.remi sera installé ---> Le paquet php-json.x86_64 0:7.2.11-1.el7.remi sera installé ---> Le paquet php-ldap.x86_64 0:7.2.11-1.el7.remi sera installé ---> Le paquet php-mbstring.x86_64 0:7.2.11-1.el7.remi sera installé ---> Le paquet php-mysqlnd.x86_64 0:7.2.11-1.el7.remi sera installé ---> Le paquet php-opcache.x86_64 0:7.2.11-1.el7.remi sera installé ---> Le paquet php-pdo.x86_64 0:7.2.11-1.el7.remi sera installé ---> Le paquet php-pecl-mcrypt.x86_64 0:1.0.1-6.el7.remi.7.2 sera installé ---> Le paquet php-xml.x86_64 0:7.2.11-1.el7.remi sera installé --> Résolution des dépendances terminée
Dépendances résolues
======================================================================================================================================================================== Package Architecture Version Dépôt Taille ======================================================================================================================================================================== Installation : php x86_64 7.2.11-1.el7.remi remi-php72 3.2 M php-cli x86_64 7.2.11-1.el7.remi remi-php72 4.8 M php-common x86_64 7.2.11-1.el7.remi remi-php72 1.1 M php-devel x86_64 7.2.11-1.el7.remi remi-php72 1.2 M php-gd x86_64 7.2.11-1.el7.remi remi-php72 77 k php-imap x86_64 7.2.11-1.el7.remi remi-php72 82 k php-json x86_64 7.2.11-1.el7.remi remi-php72 62 k php-ldap x86_64 7.2.11-1.el7.remi remi-php72 69 k php-mbstring x86_64 7.2.11-1.el7.remi remi-php72 621 k php-mysqlnd x86_64 7.2.11-1.el7.remi remi-php72 232 k php-opcache x86_64 7.2.11-1.el7.remi remi-php72 281 k php-pdo x86_64 7.2.11-1.el7.remi remi-php72 125 k php-pecl-mcrypt x86_64 1.0.1-6.el7.remi.7.2 remi-php72 29 k php-xml x86_64 7.2.11-1.el7.remi remi-php72 205 k
Résumé de la transaction
Installation 14 Paquets
Taille totale des téléchargements : 12 M Taille d'installation : 55 M Is this ok [y/d/N]: y Downloading packages: (1/14): php-7.2.11-1.el7.remi.x86_64.rpm | 3.2 MB 00:00:01 (2/14): php-imap-7.2.11-1.el7.remi.x86_64.rpm | 82 kB 00:00:00 (3/14): php-json-7.2.11-1.el7.remi.x86_64.rpm | 62 kB 00:00:00 (4/14): php-ldap-7.2.11-1.el7.remi.x86_64.rpm | 69 kB 00:00:00 (5/14): php-mbstring-7.2.11-1.el7.remi.x86_64.rpm | 621 kB 00:00:00 (6/14): php-mysqlnd-7.2.11-1.el7.remi.x86_64.rpm | 232 kB 00:00:00 (7/14): php-opcache-7.2.11-1.el7.remi.x86_64.rpm | 281 kB 00:00:00 (8/14): php-pdo-7.2.11-1.el7.remi.x86_64.rpm | 125 kB 00:00:00 (9/14): php-pecl-mcrypt-1.0.1-6.el7.remi.7.2.x86_64.rpm | 29 kB 00:00:00 (10/14): php-xml-7.2.11-1.el7.remi.x86_64.rpm | 205 kB 00:00:00 (11/14): php-gd-7.2.11-1.el7.remi.x86_64.rpm | 77 kB 00:00:04 (12/14): php-common-7.2.11-1.el7.remi.x86_64.rpm | 1.1 MB 00:00:05 (13/14): php-cli-7.2.11-1.el7.remi.x86_64.rpm | 4.8 MB 00:00:07 (14/14): php-devel-7.2.11-1.el7.remi.x86_64.rpm | 1.2 MB 00:00:09
Total 1.3 MB/s | 12 MB 00:00:09 Running transaction check Running transaction test Transaction test succeeded Running transaction Installation : php-common-7.2.11-1.el7.remi.x86_64 1/14 Installation : php-json-7.2.11-1.el7.remi.x86_64 2/14 Installation : php-cli-7.2.11-1.el7.remi.x86_64 3/14 Installation : php-pdo-7.2.11-1.el7.remi.x86_64 4/14 Installation : php-mysqlnd-7.2.11-1.el7.remi.x86_64 5/14 Installation : php-devel-7.2.11-1.el7.remi.x86_64 6/14 Installation : php-7.2.11-1.el7.remi.x86_64 7/14 Installation : php-pecl-mcrypt-1.0.1-6.el7.remi.7.2.x86_64 8/14 Installation : php-ldap-7.2.11-1.el7.remi.x86_64 9/14 Installation : php-mbstring-7.2.11-1.el7.remi.x86_64 10/14 Installation : php-opcache-7.2.11-1.el7.remi.x86_64 11/14 Installation : php-gd-7.2.11-1.el7.remi.x86_64 12/14 Installation : php-imap-7.2.11-1.el7.remi.x86_64 13/14 Installation : php-xml-7.2.11-1.el7.remi.x86_64 14/14 Vérification : php-pecl-mcrypt-1.0.1-6.el7.remi.7.2.x86_64 1/14 Vérification : php-mysqlnd-7.2.11-1.el7.remi.x86_64 2/14 Vérification : php-ldap-7.2.11-1.el7.remi.x86_64 3/14 Vérification : php-pdo-7.2.11-1.el7.remi.x86_64 4/14 Vérification : php-json-7.2.11-1.el7.remi.x86_64 5/14 Vérification : php-devel-7.2.11-1.el7.remi.x86_64 6/14 Vérification : php-mbstring-7.2.11-1.el7.remi.x86_64 7/14 Vérification : php-opcache-7.2.11-1.el7.remi.x86_64 8/14 Vérification : php-gd-7.2.11-1.el7.remi.x86_64 9/14 Vérification : php-7.2.11-1.el7.remi.x86_64 10/14 Vérification : php-cli-7.2.11-1.el7.remi.x86_64 11/14 Vérification : php-imap-7.2.11-1.el7.remi.x86_64 12/14 Vérification : php-xml-7.2.11-1.el7.remi.x86_64 13/14 Vérification : php-common-7.2.11-1.el7.remi.x86_64 14/14
Installé : php.x86_64 0:7.2.11-1.el7.remi php-cli.x86_64 0:7.2.11-1.el7.remi php-common.x86_64 0:7.2.11-1.el7.remi php-devel.x86_64 0:7.2.11-1.el7.remi php-gd.x86_64 0:7.2.11-1.el7.remi php-imap.x86_64 0:7.2.11-1.el7.remi php-json.x86_64 0:7.2.11-1.el7.remi php-ldap.x86_64 0:7.2.11-1.el7.remi php-mbstring.x86_64 0:7.2.11-1.el7.remi php-mysqlnd.x86_64 0:7.2.11-1.el7.remi php-opcache.x86_64 0:7.2.11-1.el7.remi php-pdo.x86_64 0:7.2.11-1.el7.remi php-pecl-mcrypt.x86_64 0:1.0.1-6.el7.remi.7.2 php-xml.x86_64 0:7.2.11-1.el7.remi
Terminé !
and when i try to install laravel with that command line :
composer global require "laravel/installer"
I got this message :
Changed current directory to /root/.config/composer Using version ^2.0 for laravel/installer ./composer.json has been created Loading composer repositories with package information Updating dependencies (including require-dev) Your requirements could not be resolved to an installable set of packages.
Problem 1 - laravel/installer v2.0.1 requires ext-zip * -> the requested PHP extension zip is missing from your system. - laravel/installer v2.0.0 requires ext-zip * -> the requested PHP extension zip is missing from your system. - Installation request for laravel/installer ^2.0 -> satisfiable by laravel/installer[v2.0.0, v2.0.1].
To enable extensions, verify that they are enabled in your .ini files:
- /etc/php.ini
- /etc/php.d/10-opcache.ini
- /etc/php.d/20-bz2.ini
- /etc/php.d/20-calendar.ini
- /etc/php.d/20-ctype.ini
- /etc/php.d/20-curl.ini
- /etc/php.d/20-dom.ini
- /etc/php.d/20-exif.ini
- /etc/php.d/20-fileinfo.ini
- /etc/php.d/20-ftp.ini
- /etc/php.d/20-gd.ini
- /etc/php.d/20-gettext.ini
- /etc/php.d/20-iconv.ini
- /etc/php.d/20-imap.ini
- /etc/php.d/20-json.ini
- /etc/php.d/20-ldap.ini
- /etc/php.d/20-mbstring.ini
- /etc/php.d/20-mysqlnd.ini
- /etc/php.d/20-pdo.ini
- /etc/php.d/20-phar.ini
- /etc/php.d/20-simplexml.ini
- /etc/php.d/20-sockets.ini
- /etc/php.d/20-sqlite3.ini
- /etc/php.d/20-tokenizer.ini
- /etc/php.d/20-xml.ini
- /etc/php.d/20-xmlwriter.ini
- /etc/php.d/20-xsl.ini
- /etc/php.d/30-mcrypt.ini
- /etc/php.d/30-mysqli.ini
- /etc/php.d/30-pdo_mysql.ini
- /etc/php.d/30-pdo_sqlite.ini
- /etc/php.d/30-wddx.ini
- /etc/php.d/30-xmlreader.ini
You can also run php --ini inside terminal to see which files are used by PHP in CLI mode.
Installation failed, deleting ./composer.json.
If anyone can help me ...
PS : Sorry for my english
Thank's a lot for your answer.
Il do this and it all good
yum remove php* service httpd restart yum install epel-release yum-utils -y yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm yum-config-manager --enable remi-php72 yum install php php-common php-mcrypt php-cli php-gd php-curl php-mysql php-ldap php-zip php-fileinfo php-mbstring php-mysqlnd php-pdo php-opcache php-xml php-devel php-imap php-json service httpd restart php -v
and then i have installed laravel with out problem !
Please or to participate in this conversation.