A
A
Andrey Terekhov2017-05-13 15:19:19
Yii
Andrey Terekhov, 2017-05-13 15:19:19

How to migrate yii2 site to local hosting?

There is some website written in yii2. It would seem that it is not difficult to clone it from GIT and run the following commands:
$ composer install
$ php init
$ php yii migrate
however, already at the stage of executing the second command, there are problems, since the environments folder is missing. There are also no htaccess files. When executing the php yii command, an error also occurs: PHP Parse error: syntax error, unexpected end of file. Although there are no errors in the file to which it points.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Artem, 2017-05-13
@proudmore

First init, then composer install

M
Maxim Timofeev, 2017-05-13
@webinar

Option 2.
1. Either the project is made in such a way that init is no longer needed, it essentially adds a couple of files and they may already be in the project or, following errors, they can be created. Gemorno, but an option.
2. Install pure yii2 make init on top of pull the project
It's hard to say without seeing what it's about, you give a link to github or something.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question