in reply to Why can't I write to a custom log from a Catalyst application on SELinux/CentOS

Does the file get created if you remove it before running the script?

Maybe run dmesg after running the script to see if it's some SELinux thing? Or create the file in /tmp instead of /var/log?