"Unable to write to the configuration file." Magento 连接管理器 1.9.3.2 出错
"Unable to write to the configuration file." Error with Magento Connect Manager 1.9.3.2
将我的 Apache 服务器从 Ubuntu 14.04 迁移到 CentOS 7 后,我开始遇到这些权限错误。
在 Magento Connect Manager 登录页面上,我收到一条错误消息并且无法登录:
Unable to write to the configuration file.
即使我将每个文件和文件夹的权限设置为 0777,错误仍然存在。
然后我删除了“downloader”文件夹中的.cfg 文件。现在错误信息变成了:
Settings has not been loaded. Used default settings Config file does not exists please save Settings Unable to write to the configuration file.
login/logout后,重启Apache服务器甚至整个主机,错误依旧。错误日志根本没有记录任何内容。
已解决!
SELinux 阻止 Apache 写入目录。
我使用以下命令启用它:
chcon -t httpd_sys_rw_content_t /var/www/html -R
在 Debian 8.6 with Magento-1.9.3.6 the chown
以下命令:
chown www-data:www-data var/brute-force.ini
启用写入权限并解锁对 Magento Connect Manager 的访问权限
将我的 Apache 服务器从 Ubuntu 14.04 迁移到 CentOS 7 后,我开始遇到这些权限错误。
在 Magento Connect Manager 登录页面上,我收到一条错误消息并且无法登录:
Unable to write to the configuration file.
即使我将每个文件和文件夹的权限设置为 0777,错误仍然存在。
然后我删除了“downloader”文件夹中的.cfg 文件。现在错误信息变成了:
Settings has not been loaded. Used default settings Config file does not exists please save Settings Unable to write to the configuration file.
login/logout后,重启Apache服务器甚至整个主机,错误依旧。错误日志根本没有记录任何内容。
已解决!
SELinux 阻止 Apache 写入目录。 我使用以下命令启用它:
chcon -t httpd_sys_rw_content_t /var/www/html -R
在 Debian 8.6 with Magento-1.9.3.6 the chown
以下命令:
chown www-data:www-data var/brute-force.ini
启用写入权限并解锁对 Magento Connect Manager 的访问权限