CFMX on Gentoo Linux
Published on September 15, 2004
By Pete Freitag
By Pete Freitag
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 thesu
command in thecoldfusion
script. It was usingsu cfmxuser -s /bin/sh -c ...
. By removing the-s /bin/sh
from the startup script and making sure that ourcfmxuser
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 thecfmxuser
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 thestubs
directory. You may just want to runchown -R cfmxuser /opt/coldfusionmx
so the user has permission to everything.
CFMX on Gentoo Linux was first published on September 15, 2004.
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
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;;'
./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
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.