[CentOS] appdynamics php agent prevented by SELinux

Mon May 11 02:20:55 UTC 2015
Richard <lists-centos at listmail.innovate.net>


------------ Original Message ------------
> Date: Sunday, May 10, 2015 09:02:11 PM -0400
> From: Tim Dunphy <bluethundr at gmail.com>
>
> Hey guys,
> 
> I've got another C7 problem I was hoping to solve. I
> installed appdynamics-php-agent-4.0.5.0-1.x86_64 on a C7.1 host.
> 
> It's failing to communicate with it's controller on another host.
> And this is the interesting part. Whether or not I have SELinux
> enabled, I have apache reporting SELinux problems.
> 
> [root at web1:~] #getenforce
> Permissive
> 
> May 10 20:47:56 web1 python[25735]: SELinux is preventing
> /usr/lib/appdynamics-php5/proxy/jre/bin/java from write access on
> the file /usr/lib/appdynamics-php5/logs/agent.log.lck.
> 
>                                     *****  Plugin catchall (100.

That's a rather odd (personally, I think bad) place for a log (or
even logfile lock) and I'm not at all surprised that selinux is
keeping your application from writing there. I would check to see if
there is a setup/configuration option for your application to put
the log files and related in a more standard location (/var/log,
/var/run), where it is less likely to run into an issue.

This isn't really a C7-specific issue/"problem".