So I started digging into Logs.php in the core code and found the following regarding my setup:
$this->_log_path points (correctly) to /var/www/CodeIgniter/application/logs/
is_dir($this->_log_path) returns TRUE
is_really_writeable($this->_log_path) returns FALSE
The last item is causing the problem, i.e. CodeIgniter thinks that the logs folder isn't writable. But a listing of the application folder shows that it should be writable by everyone (777):
0 drwxr-xr-x. 14 root root 218 May 24 08:58 ./
0 drwxr-xr-x. 5 root root 173 May 31 11:15 ../
0 drwxr-xr-x. 2 root root 41 May 24 08:58 cache/
4 drwxr-xr-x. 2 root root 4096 May 31 16:24 config/
0 drwxr-xr-x. 3 root root 89 May 30 20:06 controllers/
0 drwxr-xr-x. 2 root root 24 May 24 08:58 core/
0 drwxr-xr-x. 2 root root 24 May 24 08:58 helpers/
0 drwxr-xr-x. 2 root root 24 May 24 08:58 hooks/
4 -rw-r--r--. 1 root root 123 May 24 08:58 .htaccess
4 -rw-r--r--. 1 root root 131 May 24 08:58 index.html
0 drwxr-xr-x. 3 root root 39 May 24 08:58 language/
0 drwxr-xr-x. 2 root root 24 May 24 08:58 libraries/
0 drwxrwxrwx. 2 root root 24 May 24 08:58 logs/
0 drwxr-xr-x. 2 root root 123 May 30 20:06 models/
0 drwxr-xr-x. 2 root root 24 May 24 08:58 third_party/
0 drwxr-xr-x. 5 root root 138 May 31 12:53 views/
Just on a lark, I tried changing the owner of everything in the CodeIgniter path to apache:apache, but it didn't make a difference.
So still no luck, but at least I know where the problem lies. Any suggestions would be welcome.
Thanks,
Dave