I have a live website built on yii2 framework and i want to test it localy using MAMP ,I created a new database named demoDB in phpmyadmin and import sql from live one, the updated database configuration inside the common/config/main.php file to the my local database authentication settings.
'db' => [
'class' => 'yii\db\Connection',
'dsn' => 'mysql:host=localhost;dbname=demoDB',
'username' => 'demo',
'password' => 'demopass111',
'charset' => 'utf8',
],
but when i run MAMP the frontend only show directory like this
I also tried to run command
php yii serve
on project file but i got this error
Document root "/Applications/MAMP/htdocs/demoweb/console/web" does not exist.
anyone can help what I'm missing