naobaijin 发表于 2017-3-19 15:56:58

sae

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: WarningMessage: mkdir(): Permission deniedFilename: drivers/Session_files_driver.php
A PHP Error was encounteredSeverity: WarningMessage: 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.phpLine Number: 578
An uncaught Exception was encounteredType: ExceptionMessage: 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.phpLine Number: 138
A PHP Error was encounteredSeverity: WarningMessage: fopen(845d0b1e09eccff344979ce0c8d8a906a8dfc35f): failed to open stream: Permission deniedFilename: drivers/Session_files_driver.php
A PHP Error was encounteredSeverity: WarningMessage: 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
惺惺相惜


Hex 发表于 2017-3-19 18:47:19

建议使用 CI for SAE 专版,但是这个目前只有 2.x 版本的。CI 官方版本不支持这种有限制的 PHP 环境。
页: [1]
查看完整版本: sae