Pete Freitag Pete Freitag

CFMX on Gentoo Linux

Published on September 15, 2004
By Pete Freitag
coldfusionlinux

We just installed CFMX 6.1 Pro Updator 1 on Gentoo Linux. We ran into a few issues but its working great now.

  • Installation - created a symbolic link at /usr/local/apache2 to /etc/apache2
  • ColdFusion Startup script was not working - the /opt/coldfusionmx/bin/coldfusion start up script was not working, but we could start the server using /opt/coldfusionmx/bin/cfusion -start default. We found the problem to be in the su command in the coldfusion script. It was using su cfmxuser -s /bin/sh -c .... By removing the -s /bin/sh from the startup script and making sure that our cfmxuser had a default shell set, we resolved this problem.
  • CFCHART not working - this is a common one with CFMX and unix, because CFCHART requires X11. We ran emerge xfree to solve that issue. We also had to give the cfmxuser permission to write in the /opt/coldfusionmx/charting/cache folder.
  • CFMAIL not working - the cfmxuser did not have permission to write in the spool directory /opt/coldfusionmx/Mail directory.
  • Other permissions issues - I also gave the cfmxuser permission to the stubs directory. You may just want to run chown -R cfmxuser /opt/coldfusionmx so the user has permission to everything.


CFMX on Gentoo Linux was first published on September 15, 2004.

Fixinator

The Fixinator Code Security Scanner for ColdFusion & CFML is an easy to use security tool that every CF developer can use. It can also easily integrate into CI for automatic scanning on every commit.


Try Fixinator

CFBreak
The weekly newsletter for the CFML Community


Comments

Hmm, not me. I get the oddest problems installing CFMX on gentoo. This is a recent build of gentoo, already has apache2 in /etc.
So the install goes fine, but the script throws really odd errors:
ps: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory

That's just an example. Every command in the script does that. So it's something odd in the script, cause all those commands work fine outside of the script - ps, ln, etc. CF does start fine with /opt/coldfusionmx/bin/cfusion -start default, so that is good. Am following your instructions aw well as I can, but I think I'll be rewriting that script because it fails work work even at all.
by Jack on 09/18/2004 at 2:13:24 PM UTC
This script is reporting syntax errors for me...
./coldfusion: line 45: syntax error near unexpected token `;;'
./coldfusion: line 45: `else echo "$0: $CF_DIR/bin/cfstat no such file" fi;;'
by Grant on 12/08/2004 at 12:08:49 PM UTC