S
S
Sergey Burduzha2017-10-25 14:23:37
Yii
Sergey Burduzha, 2017-10-25 14:23:37

How to solve the problem with installing yii2 in open-server?

I've been struggling all day, but I can't.
Registered the code for installing yii2 and got a bunch of errors

d:\OpenServer\domains\yii-shop.loc
$ composer create-project --prefer-dist yiisoft/yii2-app-basic ./
The "https://packagist.org/packages.json" file could not be downloaded: failed loading cafile stream: `d:/openserver/modules/php/PHP-7-x64/cacert.pem'
Failed to enable crypto
failed to open stream: operation failed
https://packagist.org could not be fully loaded, package information was loaded from the local cache and may be out of date
Installing yiisoft/yii2-app-basic (2.0.12)
  - Installing yiisoft/yii2-app-basic (2.0.12)
    Downloading: 100%
    Downloading: 100%
    Downloading: 100%
    Failed to download yiisoft/yii2-app-basic from dist: The "https://api.github.com/repos/yiisoft/yii2-app-basic/zipball/591a3ca78caffc9e381f714da99a093a618d4169" file could not be downloaded: failed loading cafile stream: `d:/openserver/modules/php/PHP-7-x64/cacert.pem'
Failed to enable crypto
failed to open stream: operation failed
    Now trying to download from source
  - Installing yiisoft/yii2-app-basic (2.0.12)
    Cloning 591a3ca78caffc9e381f714da99a093a618d4169



  [RuntimeException]
  Failed to clone [email protected]:yiisoft/yii2-app-basic.git, git was not found, check that it is installed and in your PATH env.

What is the cacert.perm file it can't find.
About git is not set in the environment variable, I checked, it is set there,
entered through the cmd console
C:\Windows\System32>git --version                                                                                       git version 2.12.2.windows.1

This is how I work in Ubuntu, but now I need to use Windows.
Please help me solve the problem, thanks in advance.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry, 2017-10-25
@slo_nik

Good afternoon.
First, try updating asset-plugin .

S
Sergey Burduzha, 2017-10-25
@serii81

Everything, rebooted the system and went, finally, after so many dances with a tambourine, yii2 was installed, what a joy.
And yes, for open-server.exe set to run as administrator in the property.
Thanks to everyone who joined, now everything works.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question