search

Home  >  Q&A  >  body text

php - Win10 composer installation problem

System win10, PHP version 5.6.25, download Composer-Setup.exe to install, the prompt is as follows. PHP has enabled OpenSSL, PDO, mbstring, tokenizer, xml, how to solve this situation?

黄舟黄舟2845 days ago518

reply all(1)I'll reply

  • 天蓬老师

    天蓬老师2017-05-16 13:06:27

    extension_dir is not configured correctly, just change it
    extension_dir is a configuration item in php.ini, just change it to the absolute path of your ext directory

    -----------------------------An easier way------------- ------------------

    composer.phar is actually a Php script, you can actually download it yourself

    1. php added to environment variables

    2. Download composer.phar(Address: https://getcomposer.org/composer.phar),将文件放进PHP目录下,并且新建文本文件 composer.cmd,内容:@php "%~dp0composer.phar" %*.

    3. composer --version Check the composer version to confirm whether the command can be executed. If so, it’s ok

    reply
    0
  • Cancelreply