I am using Magento ver 1.9.1.0 and I have log settings enabled in admin panel, but when I delete the existing "log" dir and whenever I call log function like Mage::log(print_r($anyData, true),NULL, 'dataprint.log');
and then when I go to log directory, it shows message "You don't have permissions to view content of this folder" in ubuntu 14.04.
Is this permission/ownership issue ?
Previously this issue wasn't there, also other folders and files permissions are fine but i can't access log without everytime giving command "chmod 777" to var/log directory.
Also if I do not delete "var/log" folder and it's files and just clear out it's files's contents, even then when I try to make new entry into log files(by calling log function) it doesn't allow me too.
Can somebody help me out here ?
Best Answer
With the latest patch installed, file modes for newly created logs changed to 0640. See SUPEE-6285 broken down by Phillip Jackson.
So this is intended behaviour that you can overcome by e.g. changing modes, groups, or setting up ACL.