HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux dev1 5.15.83-1-pve #1 SMP PVE 5.15.83-1 (2022-12-15T00:00Z) x86_64
User: safarimaris (1000)
PHP: 7.2.34-54+ubuntu22.04.1+deb.sury.org+1
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,
Upload Files
File: /home/safarimaris/home/safarimaris/frontend/config/main_bak.php
<?php
$params = array_merge(
    require(__DIR__ . '/../../common/config/params.php'),
    require(__DIR__ . '/../../common/config/params-local.php'),
    require(__DIR__ . '/params.php'),
    require(__DIR__ . '/params-local.php')
);

return [
    'id' => 'sfm',
    'name' => 'Safarimaris',
    'language' => 'uk-UA',
    'basePath' => dirname(__DIR__),
    'bootstrap' => ['log'],
    'controllerNamespace' => 'frontend\controllers',
    'aliases' => [
        '@imgPath' => dirname(__DIR__).'/web/images/',
        '@imgUrl' => '/images',
    ],
    'components' => [
        'request' => [
            'csrfParam' => '_csrf-sfm',
        ],
        'user' => [
            'identityClass' => 'common\models\User',
            'enableAutoLogin' => true,
            'identityCookie' => ['name' => '_identity-sfm', 'httpOnly' => true],
        ],
        'session' => [
            // this is the name of the session cookie used for login on the frontend
            'name' => 'sfm',
        ],
        'log' => [
            'traceLevel' => YII_DEBUG ? 3 : 0,
            'targets' => [
                [
                    'class' => 'yii\log\FileTarget',
                    'levels' => ['error', 'warning'],
                ],
                [
                    'class' => 'yii\log\FileTarget',
                    'logFile' => '@app/runtime/logs/eauth.log',
                    'categories' => ['nodge\eauth\*'],
                    'logVars' => [],
                ],
            ],
        ],
        'errorHandler' => [
            'errorAction' => 'site/error',
        ],

        'i18n' => [
            'translations' => [
                'app*' => [
                    'class' => 'yii\i18n\PhpMessageSource',
                    'basePath' => '@frontend/messages',
                    'sourceLanguage' => 'en-US',
                ],
                'eauth' => [
                    'class' => 'yii\i18n\PhpMessageSource',
                    'basePath' => '@eauth/messages',
                ],
            ],
        ],
        'cache' => [
            'class' => 'yii\caching\MemCache',
            'useMemcached' => true,
            'options' => [
                Memcached::OPT_COMPRESSION => true, // Включить сжатие данных
            ],
            'servers' => [
                [
                    'host' => '127.0.0.1'
                ]
            ],
        ],
        'assetManager' => [
            'bundles' => YII_DEBUG ? [
                'yii\web\SearchAsset' => [
                    'sourcePath' => null,
                    'js' => ['js/jquery.js']
                ],
                'kop\y2sp\assets\InfiniteAjaxScrollAsset' => false,
            ] : require 'assets-prod.php',
        ],
        'currency' => 'common\components\Currency',
        'sys' => 'common\components\Sys',
        'mailchimp' => 'common\components\Mailchimp',
        'redirect' => 'common\components\Redirect',

        'urlManager' => [
            'enablePrettyUrl' => true,
            'showScriptName' => false,
            'normalizer' => [
                'class' => 'yii\web\UrlNormalizer',
                'action' => \yii\web\UrlNormalizer::ACTION_REDIRECT_PERMANENT,
            ],
            'rules' => [
                //@TODO drop after 3 month
                '<url:egypt>' => 'country/show',
                '<url:sudan>' => 'country/show',
                '<url:india>' => 'country/show',
                '<url:maldives>' => 'country/show',
                '<url:seychelles>' => 'country/show',
                '<url:sri-lanka>' => 'country/show',
                '<url:burma>' => 'country/show',
                '<url:indonesia>' => 'country/show',
                '<url:philippines>' => 'country/show',
                '<url:thailand>' => 'country/show',
                '<url:colombia>' => 'country/show',
                '<url:costa-rica>' => 'country/show',
                '<url:ecuador>' => 'country/show',
                '<url:mexico>' => 'country/show',
                '<url:panama>' => 'country/show',
                '<url:hawaii>' => 'country/show',
                '<url:australia>' => 'country/show',
                '<url:fiji>' => 'country/show',
                '<url:micronesia>' => 'country/show',
                '<url:palau>' => 'country/show',
                '<url:papua-new-guinea>' => 'country/show',
                '<url:solomon-islands>' => 'country/show',
                '<url:tonga>' => 'country/show',
                '<url:french-polynesia>' => 'country/show',
                '<url:bahamas>' => 'country/show',
                '<url:belize>' => 'country/show',
                '<url:british-virgin-islands>' => 'country/show',
                '<url:cayman-islands>' => 'country/show',
                '<url:dominican-republic>' => 'country/show',
                '<url:st-kitts-and-nevis>' => 'country/show',
                '<url:turks-and-caicos>' => 'country/show',
                '<url:saint-martin-sint-maarten>' => 'country/show',
                '<url:cuba>' => 'country/show',

                'about' => 'static/about',
                //'partners' => 'static/partners',
                'rest/subscribe' => 'rest/subscribe',
                'rest/tour-detail' => 'rest/tour-detail',
                'rest/order' => 'rest/order',
                'login/<service:facebook>' => 'site/login',
                'review/add' => 'review/add',
                'review/approved' => 'review/approve',
                //'order/add' => 'order/add',
                'search' => 'search/index',
                'suggest' => 'search/suggest',
                'index/currency' => 'index/currency',
                'index' => 'index/index',
                '' => 'index/index',
                '<country>/sights/<url:[a-zA-Z0-9_\-]+>/' => 'sights/show',
                '<url:[a-zA-Z0-9_\-]+>/sights' => 'country/sights',
                'site/<action>/' => 'site/<action>',
                '<controller>/index/' => '<controller>/index',
                'country/<url:[a-zA-Z0-9_\-]+>' => 'country/show', //301 redirect from old site
                'sights/<url:[a-zA-Z0-9_\-]+>/' => 'sights/show', //301 redirect from old site
                '<country>/<url:[a-zA-Z0-9_\-]+>/' => 'entity/show',
                '<url:[a-zA-Z0-9_\-]+>' => 'country/show',
            ],
        ],
        'eauth' => [
            'class' => 'nodge\eauth\EAuth',
            'popup' => true, // Use the popup window instead of redirecting.
            'cache' => false, // Cache component name or false to disable cache. Defaults to 'cache' on production environments.
            'cacheExpire' => 0, // Cache lifetime. Defaults to 0 - means unlimited.
            'httpClient' => [
                // uncomment this to use streams in safe_mode
                //'useStreamsFallback' => true,
            ],
            'services' => [ // You can change the providers and their classes.
                'facebook' => [
                    // register your app here: https://developers.facebook.com/apps/
                    'class' => 'common\components\facebook\OAuth2Service',
                    'clientId' => '241422552955746',
                    'clientSecret' => 'd873cc73b8503dd3d224b50f3d943b3e',
                ]
            ],
        ],

    ],
    'params' => $params,
];