cancel
Showing results for 
Search instead for 
Did you mean: 

“Unable to write to the configuration file.” Error with Magento Connect Manager 1.9.3.2

SOLVED

“Unable to write to the configuration file.” Error with Magento Connect Manager 1.9.3.2

After migrating my Apache server from Ubuntu 14.04 to CentOS 7, I started experiencing these permission errors.

On the Magento Connect Manager login page, I'm hit with an error message and unable to login:

Unable to write to the configuration file.

The error remained even after I set the permission for every file and folder to 0777.

I, then, deleted the .cfg files in the "downloader" folder. Now the error message has become:

Settings has not been loaded. Used default settingsConfig file does not exists please save Settings
Unable to write to the configuration file.

After login/logout, restarting the Apache server and even the entire host, the error remained. The error logs did not record anything at all.

1 ACCEPTED SOLUTION

Accepted Solutions

Re: “Unable to write to the configuration file.” Error with Magento Connect Manager 1.9.3.2

Complete command:

 

sudo chcon -t httpd_sys_rw_content_t /var/www/html -R

View solution in original post

4 REPLIES 4

Re: “Unable to write to the configuration file.” Error with Magento Connect Manager 1.9.3.2

Problem solved. It's SELinux preventing Apache from writing to the directory.

 

I used the following command to give Apache permission.

 

sudo chcon -t httpd_sys_rw_content_t 

Re: “Unable to write to the configuration file.” Error with Magento Connect Manager 1.9.3.2

Complete command:

 

sudo chcon -t httpd_sys_rw_content_t /var/www/html -R

Re: “Unable to write to the configuration file.” Error with Magento Connect Manager 1.9.3.2

And without Apache (with NGINX) and SELINUX (disabled), how solve this error on Centos 7 ?

 


@alienmushroom wrote:

Complete command:

 

sudo chcon -t httpd_sys_rw_content_t /var/www/html -R

 

Re: “Unable to write to the configuration file.” Error with Magento Connect Manager 1.9.3.2

Como eu faço pra dar este comando no apache? Eu uso servidor compartilhado.