I'm trying to deploy the site locally, on OpenServer.
I downloaded from the repository site on yii2, which was missing only the /vendor folder.
Downloaded this /vendor folder from the main site.
When running locally, all scripts and styles are not connected.
Also, there are only modal windows in the markup, the rest of the content is also not on the main page of the locale.
those. In the markup there is a connection of js-scripts and styles, but the console gives 500 error for each of the included files.
/.htaccess
Options +FollowSymLinks IndexIgnore */* RewriteEngine On RewriteCond %{REQUEST_URI} !^/(web) RewriteRule ^assets/(.*)$ /web/assets/$1 [L] RewriteRule ^css/(.*)$ web/css/$1 [L] RewriteRule ^js/(.*)$ web/js/$1 [L] RewriteRule ^images/(.*)$ web/images/$1 [L] RewriteRule (.*) /web/$1 RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /web/index.php /web/.htaccess
RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . index.php /config/web.php
<?php define('URL_TRANSFORMER_DYNAMIC', 'dinamic'); $skip = array('.', '..'); $modules = []; $files = scandir(dirname(__FILE__) . '/../modules'); foreach ($files as $file) { if (!in_array($file, $skip) && is_dir(dirname(__FILE__) . '/../modules/' . $file)) { $modules[$file] = ['class' => 'app\modules\\' . $file . '\Module']; } } $config = [ 'id' => 'acms', 'name' => 'ACMS 9', 'basePath' => dirname(__DIR__), 'bootstrap' => ['log'], 'language' => 'ru', 'sourceLanguage' => 'ru', 'modules' => $modules, 'components' => [ 'request' => [ // !!! insert a secret key in the following (if it is empty) - this is required by cookie validation 'cookieValidationKey' => '5bdV2clPQw7gpZ-Vt6yI5yNVQMXBZUkw', 'baseUrl' => '', 'enableCsrfValidation' => false, ], 'user' => [ 'identityClass' => 'app\modules\admin\models\Admin', 'class' => 'yii\web\User', 'enableAutoLogin' => true, 'loginUrl' => ['admin/auth/login'], 'idParam' => '__id_admin', ], 'assetManager' => [ 'basePath' => '@webroot/assets', 'forceCopy' => YII_DEBUG, 'baseUrl' => '@web/assets', ], 'image' => [ 'class' => 'app\components\image\ImageComponent', ], 'event' => [ 'class' => 'app\components\Event', ], 'email' => [ 'class' => 'app\components\Email', ], 'errorHandler' => [ 'errorAction' => 'site/error', ], 'urlManager' => [ 'enablePrettyUrl' => true, 'showScriptName' => false, 'rules' => [ 'acms' => 'admin/admin/login', '<module:\w+>/<controller:\w+>/<action:\w+>' => '<module>/<controller>/<action>', '' => 'site/index', '<action>' => 'site/<action>' ], ], /* 'assetManager' => [ 'basePath' => '@webroot/assets', 'forceCopy' => YII_DEBUG, 'baseUrl' => '@web/assets', ], */ 'i18n' => [ 'translations' => [ 'app' => [ 'class' => 'yii\i18n\PhpMessageSource', 'basePath' => '@app/messages', 'sourceLanguage' => 'ru', 'fileMap' => [ 'app' => 'app.php', ], ], ], ], 'db' => require(__DIR__ . '/db.php'), 'cache' => require(__DIR__ . '/cache.php'), // (optionally) you can configure logging 'log' => [ 'targets' => [ [ 'class' => 'yii\log\FileTarget', 'logFile' => '@app/runtime/eauth.log', 'categories' => ['nodge\eauth\*'], 'logVars' => [], ], ], ], ], 'params' => require(__DIR__ . '/params.php'), ]; if (YII_DEBUG) { // configuration adjustments for 'dev' environment $config['bootstrap'][] = 'debug'; $config['modules']['debug'] = [ 'class' => 'yii\debug\Module', 'allowedIPs' => ['*'], ]; $config['bootstrap'][] = 'gii'; $config['modules']['gii'] = 'yii\gii\Module'; } return $config; Tell me how to properly configure the site locally?