S
S
Sergey Suntsev2015-10-27 13:27:59
linux
Sergey Suntsev, 2015-10-27 13:27:59

How to transfer yii2 site from localhost (windows) to hosting (linux)?

Everything works fine on the localhost, I
downloaded the directory, imported the database, registered a new path to the database in the configs.
in filezilla project and files assigned 777 access.
What else needs to be done?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Alex Ershov, 2015-10-27
@GreyCrew

There are not enough rights on assets. Check.
You don't have permission to access /WebSchool/web/assets/f8abc798/css/bootstrap.css
on this server.

S
Slava Kryvel, 2015-10-27
@kryvel

Look carefully at the permissions of the assets folder (as well as runtime) . Its content is generated automatically and most likely Yii cannot write anything there.
In general, it is better to put permissions on folders 755 and on files 644

O
OnYourLips, 2015-10-27
@OnYourLips

in filezilla project and files assigned 777 access.
It is not right. You need to put such rights only on those directories that you need.
Look at the logs, look for errors.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question