我可以登录在localhost
,但当我移动文件到服务器,它不工作我试图登录在服务器,但它不工作,但当我尝试在本地登录工作有任何解决方案吗?这是我的配置文件,看看:
<?php
Yii::setPathOfAlias('chartjs', dirname(__FILE__) . '/../extensions/yii-chartjs');
return array(
'basePath' => dirname(__FILE__) . DIRECTORY_SEPARATOR . '..',
'name' => 'HireRedson',
'preload' => array('log', 'chartjs'),
'import' => array(
'application.models.*',
'application.components.*',
'application.components.fb.*',
'application.components.twitteroauth.*',
'application.components.linkedin.*',
'application.components.linkedin-new.*',
'application.components.plaxoauth.*',
'application.components.gplus.*',
'application.components.imageresize.*',
'application.controllers.*',
'application.components.yiinfinite.*',
'application.modules.digitalinterviews.models.*',
),
'modules' => array(
'gii' => array(
'class' => 'system.gii.GiiModule',
'password' => '123456',
'ipFilters' => array('192.168.2.*'),
),
'digitalinterviews' => array(),
),
'components' => array(
'chartjs' => array('class' => 'chartjs.components.ChartJs',),
'Smtpmail' => array(
'class' => 'application.extensions.smtpmail.PHPMailer',
'Host' => "smtp.gmail.com",
'Username' => 'dasdadsadsa@gmail.com',
'Password' => 'dasdasdsad',
'Mailer' => 'smtp',
'Port' => 465,
'SMTPAuth' => true,
'SMTPSecure' => 'ssl',
),
'mailNew' => array(
'class' => 'YiiMail',
'transportType' => 'smtp',
'transportOptions' => array(
'host' => 'smtp.sendgrid.net',
'username' => 'test@nouvohire.com/jobsite/',
'password' => '',
'port' => 2525,
),
'viewPath' => 'application.views.mail',
'logging' => true,
'dryRun' => false
),
'mail' => array(
'class' => 'YiiMail',
'transportType' => 'smtp',
'transportOptions' => array(
'host' => 'smtp.sendgrid.net',
'username' => 'test@nouvohire.com/',
'password' => '',
'port' => 2525,
),
'viewPath' => 'application.views.mail',
'logging' => true,
'dryRun' => false
),
'campaignmail' => array(
'class' => 'YiiMail',
'transportType' => 'smtp',
'transportOptions' => array(
'host' => 'smtp.sendgrid.net',
'username' => 'test@dsfsdfdsfds.com',
'password' => 'ssssssss',
'port' => 2525,
),
'viewPath' => 'application.views.mail',
'logging' => true,
'dryRun' => false
),
'user' => array(
'allowAutoLogin' => true,
),
'session' => array(
'autoStart' => true,
'savePath' => 'sessions',
'cookieMode' => 'allow',
'cookieParams' => array(
'path' => '/',
'domain' => '.nouvohire.com/jobsite/',
'httpOnly' => false,
),
),
'urlManager' => array(
'urlFormat' => 'path',
'showScriptName' => false,
'caseSensitive' => false,
'rules' => array(
'test_url/<test_url:\w+>' => 'digitalinterviews/recruitment/globalinterviewstart/', //############for interview master
'digitalinterviews/<controller:\w+>/<action:\w+>/<id:\d+>' => 'digitalinterviews/<controller>/<action>', //########for interview master
'digitalinterviews/<controller:\w+>/<action:\w+>' => 'digitalinterviews/<controller>/<action>',
'' => 'site/index',
'r/<id:\d+>' => 'Jobs/Redirect',
'j/<id:\d+>' => 'Jobpage/Redirect',
'app/<id:\d+>' => 'App/Index',
'site/feed/<site:\w+>' => 'Site/Feed',
'maintenance.html' => 'site/UnderMaintenance',
'digitalinterviews/Test/scriptcam.lic' => 'digitalinterviews/invitecandidates/getLicense/',
'digitalinterviews/questions/Add_question/scriptcam.lic' => 'digitalinterviews/invitecandidates/getLicense/',
'digitalinterviews/recruitment/testWebcam/scriptcam.lic' => 'digitalinterviews/invitecandidates/getLicense/',
'digitalinterviews/Candidatetest/onlinetest/scriptcam.lic' => 'digitalinterviews/invitecandidates/getLicense/',
'digitalinterviews/questions/editQuestion/scriptcam.lic' => 'digitalinterviews/invitecandidates/getLicense/',
'<controller:\w+>/<id:\d+>' => '<controller>/view',
'<controller:\w+>/<action:\w+>/<id:\d+>' => '<controller>/<action>',
'<controller:\w+>/<action:\w+>' => '<controller>/<action>',
),
),
'db' => array(
'connectionString' => 'mysql:host=test.com;dbname=testdb',
'emulatePrepare' => true,
'username' => 'teeee',
'password' => 'asdasdsadsadsadsa',
'charset' => 'utf8',
),
'authManager' => array(
'class' => 'CDbAuthManager',
'connectionID' => 'db',
),
'errorHandler' => array(
'errorAction' => 'site/error',
),
'log' => array(
'class' => 'CLogRouter',
'routes' => array(
array(
'class' => 'CFileLogRoute',
'levels' => 'error, warning',
),
),
),
'ePdf' => array(
'class' => 'ext.yii-pdf.EYiiPdf',
'params' => array(
'mpdf' => array(
'librarySourcePath' => 'application.vendors.mpdf.*',
'constants' => array(
'_MPDF_TEMP_PATH' => Yii::getPathOfAlias('application.runtime'),
),
'class' => 'mpdf',
),
'HTML2PDF' => array(
'librarySourcePath' => 'application.vendors.html2pdf.*',
'classFile' => 'html2pdf.class.php',
)
),
),
's3' => array(
'class' => 'application.extensions.s3.ES3',
'aKey' => 'asdsdssf',
'sKey' => 'djdssadjajsdjksadjsahdkksajdjask',
),
'file' => array(
'class' => 'application.extensions.file.CFile',
),
'functions' => array(
'class' => 'application.extensions.s3.Functions',
),
),
);
2条答案
按热度按时间jdg4fx2g1#
这可能是权限问题,请检查sure /assets,/protected/runtime是否对该用户具有写访问权限
o3imoua42#
也许检查: