In Magento how do I enable exception.log
and system.log
at the database level?
I know I can do it through admin backend (which I do
Use following query
INSERT INTO `yourmagentodbname`.`core_config_data` (`scope`, `scope_id`, `path`, `value`) VALUES ( 'default', '0', 'dev/log/active', '1');
Your solution is right. That's the right place to enable it in the DB. If it's not working for you, try clearing the cache. If still not working, try select * from core_config_data where path = "dev/log/active";
and check if it is not disabled for a particular scope that's overriding your setting
Check folder permissions. You need to give permissions for the user that is running apache.
In my case just the sub directory "log" was not owned by the running apache user.
My apache user is bitnami:daemon...
So for me the solution was:
sudo chmod -R 777 var/
sudo chown -R bitnami:daemon var/