2017-04-07 35 views
0

將我的Apache服務器從Ubuntu 14.04遷移到CentOS 7後,我開始遇到這些權限錯誤。「無法寫入配置文件。」 Magento Connect Manager錯誤1.9.3.2

在Magento的連接管理器登錄頁面,我有一個錯誤信息而無法打登錄:

Unable to write to the configuration file. 

後,我設置爲每個文件和文件夾的權限,以0777

的錯誤,即使保持

然後,我刪除「下載程序」文件夾中的.cfg文件。現在,該錯誤信息已經成爲:

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

登錄/註銷後,重新啓動Apache服務器乃至整個主機,錯誤依然存在。錯誤日誌根本沒有記錄任何內容。

+0

新的Magento安裝也很難刪除臨時文件,即使所有者和組都設置爲Web服務器運行的內容。 –

+0

由於Stack Overflow是一個[編程相關](http://stackoverflow.com/help/on-topic)問答站點,因此我正在投票關閉此題目以作爲題外話題。你的問題不是關於編程。也許你應該在http://magento.stackexchange.com上發佈它呢? – Enigmativity

回答

0

解決!

SELinux阻止Apache寫入目錄。 我用下面的命令來啓用它:

chcon -t httpd_sys_rw_content_t /var/www/html -R 
相關問題