Answer the question
In order to leave comments, you need to log in
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.
C:\Windows\System32>git --version git version 2.12.2.windows.1
Answer the question
In order to leave comments, you need to log in
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 questionAsk a Question
731 491 924 answers to any question