S
S
Super Star2017-07-12 17:12:22
Yii
Super Star, 2017-07-12 17:12:22

Yii2 no welcome page after installation?

Installed with Composer. If you enter this path: localhost/basic/web/index.php
Empty window with text:

404 Not Found
nginx

Or like this: basic/web/index.php
The following errors are thrown:
Warning: require(C:\OpenServer\domains\basic\web/../vendor/autoload.php): failed to open stream: No such file or directory in C:\OpenServer\domains\basic\web\index.php on line 7

Fatal error: require(): Failed opening required 'C:\OpenServer\domains\basic\web/../vendor/autoload.php' (include_path='.;c:/openserver/modules/php/PHP-5.6-x64;c:/openserver/modules/php/PHP-5.6-x64/PEAR/pear') in C:\OpenServer\domains\basic\web\index.php on line 7

And also the secret key is not set in the cookieValidationKey value . Although it is written that when installed by the composer, it should automatically register.
Oh, what am I doing wrong?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Timofeev, 2017-07-12
@3dben

but they did init, it seems that they didn’t.
I wanted to poke my nose into the docks, but apparently they made something up there and really now it’s not there, but it was.
In short, in the console
in your case apparently

cd domains\basic
php init

Here is the norm guide, I checked it, only for advanced and not basik https://github.com/yiisoft/yii2-app-advanced/blob/...
And I would advise you to understand it in it, since then there will be fewer questions, everything is more logical.
Here is another installation video

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question