M
M
Maybe_V2016-08-28 18:01:10
Yii
Maybe_V, 2016-08-28 18:01:10

How to access the web?

I cloned the repository, did composer install, composer update, it seemed to do it right, but when I run the project (without specifying the web root folder) - the system does not see it (although it exists):
d7a13989dddb46bb91129702f9d065f2.jpg
I did sudo chmod -R 777 /path/to/webit, but nothing has changed - the folder is still not shown!
When I make it the root of the project in the server configs, it throws an error "Internal server error" !
How to configure correctly so that the web is displayed?
OS - ubuntu 16.04
template - yii2 basic

Answer the question

In order to leave comments, you need to log in

4 answer(s)
B
Boris Yakushev, 2016-08-28
@za4me

php init --env=Production --overwrite=y

V
Vladislav, 2016-08-28
@MrBikus

And why do you need to display the web? Are you sure you want the site to open? Write in the server settings the path to the web and index file.

D
Dmitry, 2016-08-28
@slo_nik

Good evening.
Do you have a README.md file, have you read its contents?
And what did you install that is not very similar in structure to yii2-basic?

D
Dmitry Kim, 2016-08-29
@kimono

Apparently there are no files index.phpand .htaccess.
The first one is generated via php init -> Dev | Prod
The second is written with pens.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question