PEAR::Logで/var/log/test.logを作ったらSELinuxに警告された。

Warning: chmod(): Permission denied in /usr/share/pear/Log/file.php on line 225 Call Stack: 0.0005 323868 1. {main}() /var/www/html/pear_log_test.php:0 0.0031 486228 2. Log_file->log() /var/www/html/pear_log_test.php:7 0.0031 486228 3. Log_file->open() /usr/share/pear/Log/file.php:287 0.0035 486912 4. chmod() /usr/share/pear/Log/file.php:225 
こんな感じ。

色々SELinuxのポリシーをいじってみたものの解消出来なかったので、
今度ちゃんとSELinuxを勉強して、リベンジする時の為にメモ。