sae没办法连上数据库,用pdo,本地wamp可以,可是在sae就报错。
$db['default'] = array(
'dsn' => 'mysql:host=w.rdc.sae.sina.com.cn;port=3306;dbname=app_linfq',
'hostname' => 'w.rdc.sae.sina.com.cn',
'username' => 'abcd',//隐去了
'password' => 'abcd',//隐去了
'database' => 'app_linfq',
'dbdriver' => 'pdo',
以上是配置
以下是报错
A PHP Error was encounteredSeverity: Warning Message: mkdir(): Permission denied Filename: drivers/Session_files_driver.php
A PHP Error was encounteredSeverity: Warning Message: Cannot modify header information - headers already sent by (output started at /data1/www/htdocs/576/linfq/1/system/core/Exceptions.php:271) Filename: core/Common.php Line Number: 578
An uncaught Exception was encounteredType: Exception Message: Session: Configured save path '10.67.15.118:11213,10.67.15.119:11213' is not a directory, doesn't exist or cannot be created. Filename: /data1/www/htdocs/576/linfq/1/system/libraries/Session/drivers/Session_files_driver.php Line Number: 138
A PHP Error was encounteredSeverity: Warning Message: fopen(845d0b1e09eccff344979ce0c8d8a906a8dfc35f): failed to open stream: Permission denied Filename: drivers/Session_files_driver.php
A PHP Error was encounteredSeverity: Warning Message: Unknown: Failed to write session data (user). Please verify that the current setting of session.save_path is correct (10.67.15.118:11213,10.67.15.119:11213) Filename: Unknown
惺惺相惜
|