用户
 找回密码
 入住 CI 中国社区
搜索
查看: 2416|回复: 1
收起左侧

sae

[复制链接]
发表于 2017-3-19 15:56:58 | 显示全部楼层 |阅读模式
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 encountered
Severity: Warning
Message: mkdir(): Permission denied
Filename: drivers/Session_files_driver.php

A PHP Error was encountered
Severity: 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 encountered
Type: 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 encountered
Severity: Warning
Message: fopen(845d0b1e09eccff344979ce0c8d8a906a8dfc35f): failed to open stream: Permission denied
Filename: drivers/Session_files_driver.php

A PHP Error was encountered
Severity: 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

惺惺相惜


发表于 2017-3-19 18:47:19 | 显示全部楼层
建议使用 CI for SAE 专版,但是这个目前只有 2.x 版本的。CI 官方版本不支持这种有限制的 PHP 环境。

本版积分规则