热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

config.inc.phpisworldwritableonanNTFSdriveinLinux

Stepstoreproduce:-UseaLinuxOS(e.g.Ubuntu)withApacheshtdocsfolderhosted

Steps to reproduce:
- Use a Linux OS (e.g. Ubuntu) with Apache's htdocs folder hosted on an NTFS drive
- Unzip phpMyAdmin in that folder, and create a configuration file (config.inc.php)
- Invoke phpMyAdmin in the browser. You get the error "Wrong permissions on configuration file, should not be world writable!"



I looked at the code and identified the problem as this:

The function checkPermissions() in Config.class.php verifies that the file config.inc.php is not world writable, unless the OS is Windows. This causes an issue if phpMyAdmin is hosted in Linux, but on an NTFS drive: all files hosted on an NTFS drive have permissions 777 and cannot be changed to anything else, yet the OS is not Windows. In consequence, phpMyAdmin refuses to work.



There is no way to relax that condition through a configuration parameter, I had to comment out that check in the code to have PMA work again.

  • Original URL: https://sourceforge.net/p/phpmyadmin/bugs/3558/

  • Original author: sylvainjambon

该提问来源于开源项目:phpmyadmin/phpmyadmin


  • Status: closed-out-of-date --> out-of-date

  • Original author: nijel


   



推荐阅读
author-avatar
手机用户2502863305
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有