M
M
Maila2017-06-17 20:47:10
Yii
Maila, 2017-06-17 20:47:10

Installing Yii2 ADVANCED on Windows 10?

I tried to install it in 2 ways: in the first one it requires you to enter a token from Github (it didn’t work)
and from the archive it says that: “In the config/web.php file, you need to set the secret key to the cookieValidationKey value (when installing via Composer, this happens automatically)” here only where is this file located and which key should be entered?
Perhaps something is wrong with the asset plugin - I tried the composer global require "fxp/composer-asset-plugin:^1.3.1" command, maybe it still needs to be installed separately somehow? The files downloaded normally only through the archive and there is a vendor folder there, but the config/web.php file is nowhere to be found. and through Composer, complete trash .. if you enter commands with the word PHAR, then just an editor with a file opens.
In the first screen through XAMPP, and in the second through Open Server
18d819c2542a4a52b3e38bed6a1f7675.jpg
upload.akusherstvo.ru/image1316951.jpg

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry, 2017-06-17
@Maila

Good evening.
After unpacking the archive, go to the project directory and in the console
After that, you can use the project.
Any one you wish. The web.php file is located in the config directory in the basic application. You are trying to install advanced. Therefore, go to the common -> main.php directory and write in the request section
ps Adapt the command for the console for windows.
pss Install composer globally on the system
psss Helpful article and another .

K
k2lhu, 2017-06-17
@k2lhu

On the off site , these assets are indicated
Well, probably the installation path can be slightly tweaked by specifying the path to the current directory, and not creating another nested
The key from the git is copied and pasted into the console without problems, it's just invisible, as is customary in unix systems.
Well, I just entered the commands at home, everything is ok. Try.
UPD: on the second screen, you install using composer.phar, make sure that you really have it in the project folder, this method is usually used to install on a hosting, because. on your home computer, the commands that I wrote to you are enough.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question