G
G
garyk52016-10-12 19:36:06
Yii
garyk5, 2016-10-12 19:36:06

How to run a website on Yii 2 on OpenServer?

Hello.
Task: launch a site on Yii 2 on a local OpenServer server (on my PC)
Problem: the following error pops up:
bebc7f0d4ab147619a4cf157197edf5c.pngMy actions are step by step:
1) I copied all the contents of the site from the server to OpenServer/OpenServer\domains\Site.ru
2) Launched. Judging by the error, I realized that you need to enter the password in the specified file, lines. It didn't lead to anything working.
Folder content:
6b9975801e7d4a8aa28f383cb28a093d.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Timofeev, 2016-10-12
@garyk5

Error connecting to database. There is no print_db user that was on the server. openserver has a default user root with a blank password. So you need to open common/config/main-local.php (most likely there) and fix the user and password there.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question