Please follow following steps,
- Run command
init
to initialize the application with a specific environment. - Create a new database and adjust the
components['db']
configuration incommon/config/main-local.php
accordingly. - Apply migrations with console command
yii migrate
. This will create tables needed for the application to work. - Set document roots of your Web server:
- create uploads folder in frontend/web ---> $mkdir frontend/web/uploads
- for frontend
/path/to/yii-application/frontend/web/
and using the URLhttp://frontend/
- for backend
/path/to/yii-application/backend/web/
and using the URLhttp://backend/
-
In case of error for new user signup, make sure your database has user table and in addition to that check if following fields exists in user table -> mobileNumber, addressImage.
-
In case of error for uploading profile picture for user make sure uploads folder exist in frontend/web directory.