I had to restart my ColdFusion 9 server on CentOS because of a memory performance issue, but now the server won't restart again. When looking at cfserver.log
I can see how there's "Permission denied" errors all along.
The ColdFusion application folder (/opt/coldfusion9/
) is owned by nobody:root
, as that fixed a similar problem that we had a few weeks ago. Also, the last time this CF server was running correctly, the JRE user that was being used was nobody
.
Maybe CF is trying to restart using another user (presumably apache
) and that creates permission issues? However, I'm not sure how to check this hypothesis.
Where's the config file that tells CF what JRE user to utilize? If I can change that, I could try to specify nobody
there.
Any other ideas also welcome.
UPDATE:
The runtime user that Coldfusion will utilise is defined in /etc/init.d/coldfusion_9
. I fixed the problem by being consistent with the users: I needed to revert the ownership of the folder /opt/coldfusion9/
back to apache:root
, which matches the init file.