Codeigniter not creating any log files

后端 未结 4 1012
野趣味
野趣味 2021-02-07 16:03

Under config.php I have:

$config[\'log_threshold\'] = 4;
$config[\'log_path\'] = \'/home/myaccount/logFilesFolder\';

In index.php

4条回答
  •  情话喂你
    2021-02-07 16:38

    Change the logs owner and group to what owner/group your live web server is running, give it write perms and it should work. I take it that in your local/dev server your CI folder is owned by you that is why you need to chmod it to 777 to make it work.

提交回复
热议问题