New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with install_mod_cfml.sh on Amazon Linux #74

Closed
utdream opened this Issue Oct 30, 2015 · 5 comments

Comments

Projects
None yet
2 participants
@utdream
Member

utdream commented Oct 30, 2015

Andrew Dixon found and reported an issue with the install_mod_cfml.sh script not functioning properly in Amazon Linux in that the mod_cfml configuration doesn't get added to the Apache conf file. There is probably a function or a line of code in there that needs to be customized specifically for Amazon Linux.

Need to identify and correct the issue.

@utdream

This comment has been minimized.

Show comment
Hide comment
@utdream

utdream Nov 2, 2015

Member

Log file excerpt:

Executing /opt/lucee/sys/install_mod_cfml.sh -m install -f /etc/httpd/conf/httpd.conf -d /usr/lib64/httpd/modules -c /usr/sbin/apachectl -k [redacted]
Script exit code: 0

Script output:
 * Attempting to detect Apache version...
* Found Apache version 2.2 [SUCCESS]
* Checking for pre-existing mod_cfml install...* Restarting Apache so changes take effect...
* mod_cfml Installation Complete

If nothing else, there's a missing CR in there.

Member

utdream commented Nov 2, 2015

Log file excerpt:

Executing /opt/lucee/sys/install_mod_cfml.sh -m install -f /etc/httpd/conf/httpd.conf -d /usr/lib64/httpd/modules -c /usr/sbin/apachectl -k [redacted]
Script exit code: 0

Script output:
 * Attempting to detect Apache version...
* Found Apache version 2.2 [SUCCESS]
* Checking for pre-existing mod_cfml install...* Restarting Apache so changes take effect...
* mod_cfml Installation Complete

If nothing else, there's a missing CR in there.

@hippiex

This comment has been minimized.

Show comment
Hide comment
@hippiex

hippiex Dec 1, 2015

For the 64Bit version of Amazon Linux I did this to correct the problem

cp /opt/lucee/sys/mod_cfml/centos-httpd22-x64/mod_cfml.so /usr/lib64/httpd/modules/
chmod 755 mod_cfml.so 

# get shared key from /opt/lucee/tomcat/conf/server.xml
# <!-- visit modcfml.org for details on mod_cfml configuration options -->
#        <Valve className="mod_cfml.core"
#                loggingEnabled="false"
#                maxContexts="200"
#                timeBetweenContexts="2000"
#                scanClassPaths="false"
#                sharedKey="SHARED KEY"
#                />
#edit /etc/httpd/conf/httpd.conf
DirectoryIndex index.cfm index.cfml index.html index.html.var

#add this to the end                
LoadModule modcfml_module modules/mod_cfml.so
CFMLHandlers ".cfm .cfc .cfml"
ModCFML_SharedKey "SHARED KEY FROM ABOVE"
# Optional, all for logging and debugging:
# LogHeaders true
# LogHandlers true
# LogAliases true
# VDirHeader false

hippiex commented Dec 1, 2015

For the 64Bit version of Amazon Linux I did this to correct the problem

cp /opt/lucee/sys/mod_cfml/centos-httpd22-x64/mod_cfml.so /usr/lib64/httpd/modules/
chmod 755 mod_cfml.so 

# get shared key from /opt/lucee/tomcat/conf/server.xml
# <!-- visit modcfml.org for details on mod_cfml configuration options -->
#        <Valve className="mod_cfml.core"
#                loggingEnabled="false"
#                maxContexts="200"
#                timeBetweenContexts="2000"
#                scanClassPaths="false"
#                sharedKey="SHARED KEY"
#                />
#edit /etc/httpd/conf/httpd.conf
DirectoryIndex index.cfm index.cfml index.html index.html.var

#add this to the end                
LoadModule modcfml_module modules/mod_cfml.so
CFMLHandlers ".cfm .cfc .cfml"
ModCFML_SharedKey "SHARED KEY FROM ABOVE"
# Optional, all for logging and debugging:
# LogHeaders true
# LogHandlers true
# LogAliases true
# VDirHeader false
@utdream

This comment has been minimized.

Show comment
Hide comment
@utdream

utdream Feb 12, 2016

Member

narrowed this problem down to the getLinuxVersion() function not recognizing Amazon Linux. Going to see about using the cat /etc/issue command to try to properly identify it.

Member

utdream commented Feb 12, 2016

narrowed this problem down to the getLinuxVersion() function not recognizing Amazon Linux. Going to see about using the cat /etc/issue command to try to properly identify it.

@utdream

This comment has been minimized.

Show comment
Hide comment
@utdream

utdream Feb 12, 2016

Member

The '/etc/issue' file is unreliable. Other possible options include reading the '/etc/lsb-release' file or the '/etc/os-release' file, but these options are not available on older systems. Without a reliable way to determine the linux flavor we're running on, I'll have to postpone updating the system detection function. For now, since the installers only officially support RHEL and Debian-based systems, I'll have the script simply default to the RHEL option. This should move us past this particular hurdle and get the Amazon Linux folks up and running.

Member

utdream commented Feb 12, 2016

The '/etc/issue' file is unreliable. Other possible options include reading the '/etc/lsb-release' file or the '/etc/os-release' file, but these options are not available on older systems. Without a reliable way to determine the linux flavor we're running on, I'll have to postpone updating the system detection function. For now, since the installers only officially support RHEL and Debian-based systems, I'll have the script simply default to the RHEL option. This should move us past this particular hurdle and get the Amazon Linux folks up and running.

@utdream

This comment has been minimized.

Show comment
Hide comment
@utdream

utdream Feb 16, 2016

Member

Fixed in Lucee 5.0.0.178-BETA.

Member

utdream commented Feb 16, 2016

Fixed in Lucee 5.0.0.178-BETA.

@utdream utdream closed this Mar 1, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment