realpath(dirname(__FILE__) . DIRECTORY_SEPARATOR . '..'), 'name' => 'Enjourney', 'sourceLanguage' => 'ru_RU', 'language' => 'ru', 'charset' => 'utf-8', 'preload' => [ 'log', ], /** * проверка на фокус-группу * в методе focusGroupUsers импортируются: * rules * models * helpers * components * при отключении фокус группы необходимо внести в список 'import' */ // 'onBeginRequest' => ['UsersFilter', 'focusGroupUsers'], 'import' => [ 'ext.EGMap.*', 'ext.lightopenid.*', // EOauths 'ext.eoauth.*', // EOauth 'ext.eoauth.lib.*', // EOauth 'ext.eauth.services.*', // EOauth 'application.forms.*', 'application.models.*', 'application.helpers.*', 'application.behaviors.*', 'application.models.SEO.*', 'application.filters.*', 'ext.Yii2Debug.Yii2Debug', 'ext.YiiMailer.YiiMailer', 'ext.easyimage.EasyImage', 'application.components.*', 'ext.imperavi-redactor-widget.ImperaviRedactorWidget', ], 'modules' => [], 'components' => [ 'sectionMenu' => [ 'class' => 'SectionMenu' ], 'response' => [ 'class' => 'Response' ], 'responseAddition' => [ 'class' => 'ResponseAddition' ], 'authManager'=>[ 'class'=>'CDbAuthManager', 'defaultRoles'=>['guest', 'authenticated', 'admin'], ], 'loid' => [ 'class' => 'ext.lightopenid.loid', ], 'eauth' => [ 'class' => 'ext.eauth.EAuth', 'popup' => false, 'cache' => false, 'cacheExpire' => 0, 'services' => [ 'vkontakte' => [ 'class' => 'VKontakteOAuthService', 'client_id' => '4612347', 'client_secret' => 'OB5z2qIADJqJ9rGOlNBs', ], 'facebook' => [ 'class' => 'FacebookOAuthService', 'client_id' => '1685849798306341', 'client_secret' => 'a2ff7ce9cb36db406d10321054eaba64', ], 'twitter' => [ 'class' => 'CustomTwitterService', 'key' => 'pbmVgP8UTycTXcaILXdgzsa7p', 'secret' => 'KkvvwnqMZLuEwPxe5R6aX19mENfdS2VPDVgKAT05q2I0IKpVI9', ], 'google_oauth' => [ 'class' => 'CustomGoogleOAuthService', 'client_id' => '489197007101-0pa2ghjkblbahib26utnkq4rinhuv797.apps.googleusercontent.com', 'client_secret' => '8VYXg9-jsqHpQ-DhbgEm7xyh', 'title' => 'Google (OAuth)', 'scope' => 'https://www.googleapis.com/auth/plus.login https://www.googleapis.com/auth/user.birthday.read https://www.googleapis.com/auth/userinfo.email', ], ], ], 'image'=>[ 'class'=>'ext.image-component.ImageComponent', 'driver'=>'Imagick', ], 'Exif' => [ 'class' => 'ext.Exif.CExifComponent', ], 'EGMap' => [ 'class' => 'ext.EGMap', ], 'search' => [ 'class' => 'application.components.DGSphinxSearch', 'server' => '88.212.232.75', 'port' => 3312, 'maxQueryTime' => 3000, 'enableProfiling'=>0, 'enableResultTrace'=>0, 'fieldWeights' => [ 'name' => 10000, 'keywords' => 100, ], ], 'sphinx' => [ 'connectionString' => 'mysql:host=88.212.232.75;port=33306', 'username' => 'x', 'password' => 'x', 'charset' => 'utf8', 'class' => 'CDbConnection' ], 'format'=>[ 'numberFormat'=>['decimals' => 2, 'decimalSeparator' => ',', 'thousandSeparator' => ' '], ], 'urlManager' => [ 'urlFormat' => 'path', 'caseSensitive'=>true, 'showScriptName' => false, 'rules' => require(dirname(__FILE__).'/rules.php'), ], 'clientScript' => [ 'packages' => [ 'jquery' => [ 'baseUrl' => '//ajax.googleapis.com/ajax/libs/jquery/1/', 'js' => ['jquery.min.js'], ], 'base' => [ 'baseUrl' => '/js/', 'js' => [ 'jquery-ui.min.js', 'jquery.mousewheel.min.js', 'jquery.cookie.min.js', 'emojis.js', ], ], ], ], 'assetManager' => [ 'baseUrl' => 'https://'.DOMAIN.'/assets', ], 'db' => [ 'class'=>'DbConnectionMan', 'connectionString' => 'mysql:host=88.212.232.75;dbname=enjourney', 'emulatePrepare' => true, 'username' => 'tmp', 'password' => 'gGUy4CP2uUUU', 'charset' => 'utf8', 'tablePrefix' => 'enjourney_', 'markDeadSeconds' => 10, 'enableSlave'=>true, // включаем профайлер 'enableProfiling' => YII_DEBUG, // показываем значения параметров 'enableParamLogging' => YII_DEBUG, 'schemaCachingDuration' => 24*60*60, 'slaves'=>[ [ 'connectionString'=>'mysql:host=88.212.232.75;dbname=enjourney', 'username'=>'tmp', 'tablePrefix' => 'enjourney_', 'charset' => 'utf8', 'password'=>'gGUy4CP2uUUU', 'enableProfiling' => YII_DEBUG, 'enableParamLogging' => YII_DEBUG, 'schemaCachingDuration'=>24*60*60 ], // [ // 'connectionString'=>'mysql:host=95.213.177.130;dbname=enjourney', // 'username'=>'tmp', // 'tablePrefix' => 'enjourney_', // 'charset' => 'utf8', // 'password'=>'gGUy4CP2uUUU', // 'schemaCachingDuration'=>24*60*60 // ], [ 'connectionString'=>'mysql:host=88.212.248.228;dbname=enjourney', 'username'=>'tmp', 'tablePrefix' => 'enjourney_', 'charset' => 'utf8', 'password'=>'gGUy4CP2uUUU', 'enableProfiling' => YII_DEBUG, 'enableParamLogging' => YII_DEBUG, 'schemaCachingDuration'=>24*60*60 ], ], ], 'db_master' => [ 'connectionString' => 'mysql:host=88.212.232.75;dbname=enjourney', 'emulatePrepare' => true, 'username' => 'tmp', 'password' => 'gGUy4CP2uUUU', 'charset' => 'utf8', 'tablePrefix' => 'enjourney_', // включаем профайлер 'enableProfiling' => YII_DEBUG, // показываем значения параметров 'enableParamLogging' => YII_DEBUG, 'schemaCachingDuration' => 24*60*60, 'class' => 'CDbConnection' ], 'db_history' => [ 'connectionString' => 'mysql:host=88.212.232.75;dbname=enjourney_history', 'emulatePrepare' => true, 'username' => 'tmp', 'password' => 'gGUy4CP2uUUU', 'charset' => 'utf8', 'tablePrefix' => 'enjourney_', // включаем профайлер 'enableProfiling' => YII_DEBUG, // показываем значения параметров 'enableParamLogging' => YII_DEBUG, 'schemaCachingDuration' => 24*60*60, 'class' => 'CDbConnection' ], //CHANGE MASTER TO MASTER_HOST='88.212.232.75', MASTER_USER='slave_user', MASTER_PASSWORD='password', MASTER_LOG_FILE = 'mysql-bin.000216', MASTER_LOG_POS = 34526975; // olap / nosql 'db_statistic' => [ 'connectionString' => 'mysql:host=88.212.248.228;dbname=enjourney_statistic', 'emulatePrepare' => true, 'username' => 'root', 'password' => 'gGUy4CP2uUUU', 'charset' => 'utf8', 'tablePrefix' => 'enjourney_', // включаем профайлер 'enableProfiling' => YII_DEBUG, // показываем значения параметров 'enableParamLogging' => YII_DEBUG, 'schemaCachingDuration' => 24*60*60, 'class' => 'CDbConnection' ], 'db_statistic2' => [ 'connectionString' => 'mysql:host=88.212.232.75;dbname=enjourney_statistic', 'emulatePrepare' => true, 'username' => 'tmp', 'password' => 'gGUy4CP2uUUU', 'charset' => 'utf8', 'tablePrefix' => 'enjourney_', // включаем профайлер 'enableProfiling' => YII_DEBUG, // показываем значения параметров 'enableParamLogging' => YII_DEBUG, 'schemaCachingDuration' => 24*60*60, 'class' => 'CDbConnection' ], 'errorHandler' => [ 'errorAction' => 'site/error', ], 'log' => [ 'class' => 'CLogRouter', 'routes' => [ [ // направляем результаты профайлинга в ProfileLogRoute (отображается // внизу страницы) 'class'=>'CProfileLogRoute', 'levels'=>'profile', 'enabled'=>false, ], [ 'class'=>'CFileLogRoute', 'levels'=>'info', 'categories'=>'redirect', 'logFile'=>'redirect.log_'.date('d-m-y s'), ], ], ], 'cache' => [ 'class' => 'system.caching.CMemCache', 'behaviors'=>['class'=>'TaggingBehavior'], 'useMemcached' => true, 'servers' => [ // weight - вес сервера // ['host' => '10.137.3.1', 'port' => 11211, 'weight' => 400], ['host' => '10.137.2.129', 'port' => 11211, 'weight' => 400], // ['host' => '95.213.177.130', 'port' => 11211, 'weight' => 100], // ['host' => '95.213.177.131', 'port' => 11211, 'weight' => 50], ], ], /** * основная сессия для пользователей * принимает решение где хранить сессию, в себе или в guest_session * (данные хранится в БД) */ 'session' => [ 'autoStart' => true, 'cookieParams' => ['domain' => '.' . DOMAIN, 'lifetime' => 259200], 'sessionName' => 'enjourney_session', 'class' => 'HttpSession', 'autoCreateSessionTable' => false, 'connectionID' => 'db', 'sessionTableName' => 'enjourney_session', 'useTransparentSessionID' => false, 'cookieMode' => 'only', 'timeout' => 259200, ], /** * вспомогательная гостевая сессия * (данные хранятся в Memcache) */ 'guest_session' => [ 'class' => 'CCacheHttpSession', /** указывает на вспомогательное подключение к Memcache (можно указать и основное) */ 'cacheID' => 'guest_session_storage', 'timeout' => 1 * 24 * 60 * 60, ], /** * место хранения вспомогательной сессии гостей */ 'user_session_storage' => [ 'class' => 'system.caching.CMemCache', 'behaviors'=>['class'=>'TaggingBehavior'], 'useMemcached' => true, 'servers' => [ // weight - вес сервера ['host' => '10.137.3.1', 'port' => 11211, 'weight' => 200], ], ], /** * место хранения вспомогательной сессии гостей */ 'guest_session_storage' => [ 'class' => 'system.caching.CMemCache', 'behaviors'=>['class'=>'TaggingBehavior'], 'useMemcached' => true, 'servers' => [ // weight - вес сервера ['host' => '10.137.3.1', 'port' => 11211, 'weight' => 200], ], ], 'user' => [ 'class'=>'ext.WebUser.WebUser', 'allowAutoLogin' => true, 'identityCookie' => ['domain' => '.' . DOMAIN], ] ], // application-level parameters that can be accessed // using Yii::app()->params['paramName'] 'params' => [ /** Папка для фокус группы папка должна находиться на одном уровне с основной папкой проекта */ 'userFilterFocusFolder' => 'enjourney.dev_A', 'dateFormat' => 'Y-m-d', 'dateTimeFormat' => 'Y-m-d H:i:s', 'dateTimeFormatHeader' => 'D, d M Y H:i:s \G\M\T', 'title_post' => 'туристический портал о путешествиях «enjourney»', 'keywords_post' => '', 'description_post' => 'на туристическом портале о путешествиях «enjourney»', 'robotEmail' => 'robot@enjourney.ru', 'robotName' => 'Enjourney', 'adminEmail' => 'admin@enjourney.ru', 'errorEmail' => 'errorreport@enjourney.ru', 'sendErrorToMail' => true, 'yandexMetrika' => '24612326', 'googleApiKey' => 'AIzaSyCQozmxdznPRP1CTR6TAKcLUKqll82k2G8', 'bitrix24ApiKey' => [ 'local.5919a9a1cf48e0.22342432', '6CbEhRTwtrj728TgXYkGxAcK9pu5QlH4ic5FP1rEPCiek5IuZI', ], 'FileStorageServerGet' => 'files.enjourney.ru', 'FileStorageServersGet' => [ 's0.files.enjourney.ru', 's5.files.enjourney.ru', ], 'webRoot' => dirname(__FILE__) . DIRECTORY_SEPARATOR . '../..', 'socialgroup' => [ 'youtube' => 'https://www.youtube.com/channel/UCLOTIeCFMQWNIgogPYyDo4w', 'googleplus' => 'https://plus.google.com/u/0/100223637796223857621', 'twitter' => 'https://www.facebook.com/enjourney.ru', 'pinterest' => 'https://www.facebook.com/enjourney.ru', 'facebook' => 'https://www.facebook.com/enjourney.ru', 'instagram' => 'https://instagram.com/enjourney_ru', 'vk' => 'https://vk.com/enjourney_group', ] ] ]; Internal Server Error

Internal Server Error

include(Controller.php): failed to open stream: No such file or directory

An internal error occurred while the Web server was processing your request. Please contact the webmaster to report this problem.

Thank you.

2018-10-15 19:13:53