yii 下存放phpMyAdmin时,登录显示错误问题
2016-02-27 15:10
513 查看
项目使用yii框架,为了方便将phpMyAdmin放在了项目目录下,结构如下:
结果登录phpMyAdmin的时候,却成功后默认跳转到项目首页了
查看了phpMyAdmin的源码,修改了一个配置就ok了
文件:phpMyAdmin\libraries\config.default.php,修改如下配置项
/**
* Your phpMyAdmin URL.
*
* Complete the variable below with the full URL ie
* http://www.your_web.net/path_to_your_phpMyAdmin_directory/
*
* It must contain characters that are valid for a URL, and the path is
* case sensitive on some Web servers, for example Unix-based servers.
*
* In most cases you can leave this variable empty, as the correct value
* will be detected automatically. However, we recommend that you do
* test to see that the auto-detection code works in your system. A good
* test is to browse a table, then edit a row and save it. There will be
* an error message if phpMyAdmin cannot auto-detect the correct value.
*
* @global string $cfg['PmaAbsoluteUri']
*/
$cfg['PmaAbsoluteUri'] = ' http://www.your_web.net/path_to_your_phpMyAdmin_directory/';
结果登录phpMyAdmin的时候,却成功后默认跳转到项目首页了
查看了phpMyAdmin的源码,修改了一个配置就ok了
文件:phpMyAdmin\libraries\config.default.php,修改如下配置项
/**
* Your phpMyAdmin URL.
*
* Complete the variable below with the full URL ie
* http://www.your_web.net/path_to_your_phpMyAdmin_directory/
*
* It must contain characters that are valid for a URL, and the path is
* case sensitive on some Web servers, for example Unix-based servers.
*
* In most cases you can leave this variable empty, as the correct value
* will be detected automatically. However, we recommend that you do
* test to see that the auto-detection code works in your system. A good
* test is to browse a table, then edit a row and save it. There will be
* an error message if phpMyAdmin cannot auto-detect the correct value.
*
* @global string $cfg['PmaAbsoluteUri']
*/
$cfg['PmaAbsoluteUri'] = ' http://www.your_web.net/path_to_your_phpMyAdmin_directory/';
相关文章推荐
- iOS+PHP 注册登录系统(二) iOS部分
- php 判断白天黑夜
- php初学(1)--imooc笔记
- PHP会话安全
- PHP中如何判断一个字符串是否是合法的日期模式
- PHPExcel导出
- iOS+PHP 注册登录系统(一) PHP部分
- php程序守护进程
- FTP
- FTP
- 解析php action和注释,消除贪禁匹配
- php和mysql开发防注入函数
- 【CI学习笔记】一个用PHP写的,简单的MVC实例
- XAMPPS1.8.5工具单独升级php版本(5.2升级到5.4.45)
- 用于PHP的Gearman Worker管理工具GearmanManager
- 请写一段PHP代码,确保多个进程同时写入同一个文件(腾讯)
- php 下的表单传值
- 写出一个能创建多级目录的PHP函数(腾讯)
- php实现留言功能
- ThinkPHP 3.2.3 视图模型的使用