As soon as El Capitan was released, mesmerized by its features I was tempted to upgrade my workstation which was running the faithful and old Mountain Lion, to El Capitan. It was all well and good until I tried reaching my cfadmin. Though I was able to start the Coldfusion services, I was not able to run the web applications. Especially the java path was corrupted. I didn't have any choice but to uninstall my ColdFusion10(Also delete the ColdFusion10 Folder, rename or delete /etc/Apache2/mod_jk.conf). It just took me less than an hour in installing the ColdFusion11 and configure the Apache. Decided to blog about it.
1. Downloaded this ColdFusion11(ColdFusion_11_WWEJ_osx10.dmg) dmg from Adobe site.
2. Double click on it to get it going. Selected the developer edition, opted for Server Configuration (Install ColdFusion11 as self contained server running a single instance with an embedded JEE server).
3. Select the ColdFusion profile as "Developer Profile", provide the necessary passwords and keep going.
4. Under the Section configure Web Servers/Websites, provide the path to the Apache and finish the installation.
5. If you are going to configure the server for multiple instances /etc/Apache2/httpd.conf. Add the following lines.
NameVirtualHost *:80 #This is to mention that there would be multiple instances.
Include /private/etc/apache2/other/*.conf
Include "/private/etc/apache2/mod_jk.conf" # This would contain the actual virtual hosts configuration.
6. Update the mod_jk.conf with the virtual host configuration for the localhost. This is a sample mod_jk.conf for the localhost. Make an entry in the hosts(/etc/hosts) like this
127.0.0.1 localhost
# Load mod_jk module
LoadModule jk_module "/Applications/ColdFusion11/config/wsconfig/1/mod_jk.so"
# Where to find workers.properties
JkWorkersFile "/Applications/ColdFusion11/config/wsconfig/1/workers.properties"
# Where to put jk logs
JkLogFile "/Applications/ColdFusion11/config/wsconfig/1/mod_jk.log"
# custom environment variables
JkEnvVar REDIRECT_URL
JkEnvVar REDIRECT_REMOTE_HOST
JkEnvVar REDIRECT_PATH
JkEnvVar REDIRECT_QUERY_STRING
JkEnvVar REDIRECT_HTTP_ACCEPT
JkEnvVar REDIRECT_HTTP_USER_AGENT
JkEnvVar REDIRECT_REMOTE_ADDR
JkEnvVar REDIRECT_SERVER_NAME
JkEnvVar REDIRECT_SERVER_PORT
JkEnvVar REDIRECT_SERVER_SOFTWARE
# Where to put jk shared memory
JkShmFile "/Applications/ColdFusion11/config/wsconfig/1/jk_shm"
# Set the jk log level [debug/error/info]
JkLogLevel info
# Select the timestamp log format
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
AddHandler jakarta-servlet .cfm .cfml .cfc .cfr .cfswf
DirectoryIndex index.cfm
<Files ~ ".hbmxml$">
Order allow,deny
Deny from all
</Files>
# cfusion
<VirtualHost *:80>
ServerName localhost
JkMountFile "/Applications/ColdFusion11/config/wsconfig/1/uriworkermap.properties"
DocumentRoot "/Applications/ColdFusion11/cfusion/wwwroot/"
<Directory "/Applications/ColdFusion11/cfusion/wwwroot/">
Options Indexes FollowSymLinks
AllowOverride all
Order allow,deny
Allow from all
</Directory>
Alias /CFIDE "/Applications/ColdFusion11/cfusion/wwwroot/CFIDE"
<Directory "/Applications/ColdFusion11/cfusion/wwwroot/CFIDE">
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>
</VirtualHost>
7. Start the Coldfusion server after navigating to /Application/ColdFusion11/cfusion/bin through the terminal using this command sudo ./coldfusion start
8. Start the apache by running this command sudo apachectl start.
Now you should be able to access the CF admin of your localhost.
1. Downloaded this ColdFusion11(ColdFusion_11_WWEJ_osx10.dmg) dmg from Adobe site.
2. Double click on it to get it going. Selected the developer edition, opted for Server Configuration (Install ColdFusion11 as self contained server running a single instance with an embedded JEE server).
3. Select the ColdFusion profile as "Developer Profile", provide the necessary passwords and keep going.
4. Under the Section configure Web Servers/Websites, provide the path to the Apache and finish the installation.
5. If you are going to configure the server for multiple instances /etc/Apache2/httpd.conf. Add the following lines.
NameVirtualHost *:80 #This is to mention that there would be multiple instances.
Include /private/etc/apache2/other/*.conf
Include "/private/etc/apache2/mod_jk.conf" # This would contain the actual virtual hosts configuration.
6. Update the mod_jk.conf with the virtual host configuration for the localhost. This is a sample mod_jk.conf for the localhost. Make an entry in the hosts(/etc/hosts) like this
127.0.0.1 localhost
# Load mod_jk module
LoadModule jk_module "/Applications/ColdFusion11/config/wsconfig/1/mod_jk.so"
# Where to find workers.properties
JkWorkersFile "/Applications/ColdFusion11/config/wsconfig/1/workers.properties"
# Where to put jk logs
JkLogFile "/Applications/ColdFusion11/config/wsconfig/1/mod_jk.log"
# custom environment variables
JkEnvVar REDIRECT_URL
JkEnvVar REDIRECT_REMOTE_HOST
JkEnvVar REDIRECT_PATH
JkEnvVar REDIRECT_QUERY_STRING
JkEnvVar REDIRECT_HTTP_ACCEPT
JkEnvVar REDIRECT_HTTP_USER_AGENT
JkEnvVar REDIRECT_REMOTE_ADDR
JkEnvVar REDIRECT_SERVER_NAME
JkEnvVar REDIRECT_SERVER_PORT
JkEnvVar REDIRECT_SERVER_SOFTWARE
# Where to put jk shared memory
JkShmFile "/Applications/ColdFusion11/config/wsconfig/1/jk_shm"
# Set the jk log level [debug/error/info]
JkLogLevel info
# Select the timestamp log format
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
AddHandler jakarta-servlet .cfm .cfml .cfc .cfr .cfswf
DirectoryIndex index.cfm
<Files ~ ".hbmxml$">
Order allow,deny
Deny from all
</Files>
# cfusion
<VirtualHost *:80>
ServerName localhost
JkMountFile "/Applications/ColdFusion11/config/wsconfig/1/uriworkermap.properties"
DocumentRoot "/Applications/ColdFusion11/cfusion/wwwroot/"
<Directory "/Applications/ColdFusion11/cfusion/wwwroot/">
Options Indexes FollowSymLinks
AllowOverride all
Order allow,deny
Allow from all
</Directory>
Alias /CFIDE "/Applications/ColdFusion11/cfusion/wwwroot/CFIDE"
<Directory "/Applications/ColdFusion11/cfusion/wwwroot/CFIDE">
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>
</VirtualHost>
7. Start the Coldfusion server after navigating to /Application/ColdFusion11/cfusion/bin through the terminal using this command sudo ./coldfusion start
8. Start the apache by running this command sudo apachectl start.
Now you should be able to access the CF admin of your localhost.
No comments:
Post a Comment