ini 要启用扩展程序,请验证它们是否已在.ini中启用

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ini 要启用扩展程序,请验证它们是否已在.ini中启用相关的知识,希望对你有一定的参考价值。

  Problem 1
    - laravel/installer v1.4.1 requires ext-zip * -> the requested PHP extension zip is missing from your system.
    - laravel/installer v1.4.0 requires ext-zip * -> the requested PHP extension zip is missing from your system.
    - Installation request for laravel/installer ^1.4 -> satisfiable by laravel/installer[v1.4.0, v1.4.1].

  To enable extensions, verify that they are enabled in your .ini files:
    - /etc/php/7.0/cli/php.ini
    - /etc/php/7.0/cli/conf.d/10-mysqlnd.ini
    - /etc/php/7.0/cli/conf.d/10-opcache.ini
    - /etc/php/7.0/cli/conf.d/10-pdo.ini
    - /etc/php/7.0/cli/conf.d/20-apcu.ini
    - /etc/php/7.0/cli/conf.d/20-calendar.ini
    - /etc/php/7.0/cli/conf.d/20-ctype.ini
    - /etc/php/7.0/cli/conf.d/20-exif.ini
    - /etc/php/7.0/cli/conf.d/20-fileinfo.ini
    - /etc/php/7.0/cli/conf.d/20-ftp.ini
    - /etc/php/7.0/cli/conf.d/20-gd.ini
    - /etc/php/7.0/cli/conf.d/20-gettext.ini
    - /etc/php/7.0/cli/conf.d/20-iconv.ini
    - /etc/php/7.0/cli/conf.d/20-json.ini
    - /etc/php/7.0/cli/conf.d/20-mysqli.ini
    - /etc/php/7.0/cli/conf.d/20-pdo_mysql.ini
    - /etc/php/7.0/cli/conf.d/20-phar.ini
    - /etc/php/7.0/cli/conf.d/20-posix.ini
    - /etc/php/7.0/cli/conf.d/20-readline.ini
    - /etc/php/7.0/cli/conf.d/20-shmop.ini
    - /etc/php/7.0/cli/conf.d/20-sockets.ini
    - /etc/php/7.0/cli/conf.d/20-sysvmsg.ini
    - /etc/php/7.0/cli/conf.d/20-sysvsem.ini
    - /etc/php/7.0/cli/conf.d/20-sysvshm.ini
    - /etc/php/7.0/cli/conf.d/20-tokenizer.ini
  You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.
  
  ----------------------------------------------------------------------------------------------
  
    sudo apt-get update
    
    sudo apt-get install mcrypt php7.0-mcrypt
    
    sudo apt-get upgrade
    
    sudo apt-get install php-mbstring
     
    sudo apt-get install phpunit
    
    sudo apt-get install php7.0-zip
    
    sudo apt-get install php7.0-zip
    
    
     

以上是关于ini 要启用扩展程序,请验证它们是否已在.ini中启用的主要内容,如果未能解决你的问题,请参考以下文章

要启用扩展,请确认它们已在您的 .ini 文件中启用 - 使用 XAMPP 的 Windows

如何修复wordpress中丢失的传输错误?

如何动态启用 SOAP、CURL、OPENSSL 扩展?

如何以编程方式启用php扩展intl

PHP 在 Php.ini 中启用 bz2 扩展

检查文件扩展名为“.ini”的文件是不是存在,shell