Koozali.org: home of the SME Server

ColdFusion MX iBay configuration

Brad

ColdFusion MX iBay configuration
« on: November 19, 2003, 03:21:20 AM »
I have successfully installed Macromedia Cold Fusion MX 6.1 on SME 6.0b3, with out error.  It will even serve .cfm and .html files out of the primary iBay.

I would like to create another iBay to serve out a ‘test.cfm’ file.  But, if I try to access the page in a web browser, I get a custom Cold Fusion error page with this text, whether or not the file exists:
  > Error Occurred While Processing Request  
  > File not found: /upb/test2.cfm  
  > …rest of text…
  (Note: this is not the standard HTTP1.1/404 error page)


I have looked at http://www.e-smith.org/custom as noted in other post relating to this topic, and I have contacted Macromedia for support.  They emailed me a link, and I will post here it others:
http://livedocs.macromedia.com/coldfusion/6.1/htmldocs/webservm.htm#wp102311 (PDF version is available).

My question is: How can I configure the server to serve out .cfm pages out of another html/ folder or iBay directory?  

Thanks
--Brad

Daley

Re: ColdFusion MX iBay configuration
« Reply #1 on: November 19, 2003, 02:18:48 PM »

Brad

Re: ColdFusion MX iBay configuration SOLVED
« Reply #2 on: November 21, 2003, 09:33:35 AM »
Thanks for the link, Daley. It lead me to the right place to find the answer I was looking for.

I am posting my answer to help others and  I would like any feedback from the community.


So... here is how I solved my problem with ibays not generating .cfm pages:

Step 0) See posted link from Daley http://www.tech-geeks.org/contrib/loveless/temp/coldfusion
Step 1) Install 'coldfusion-61-lin.bin' from http://www.macromedia.com
Step 2) Make two templates in '/etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/' directory. And expand them. http://e-smith.com/custom

Filename: 21ColdFusionMX
>
>   LoadModule jrun_module /opt/coldfusionmx/runtime/lib/wsconfig/1/mod_jrun.so
>

Filename: 31ColdFusionMX
>
>    
>  JRunConfig Verbose false
>  JRunConfig Apialloc false
>  JRunConfig Ssl false
>  JRunConfig Ignoresuffixmap false
> JRunConfig Serverstore "/opt/coldfusionmx/runtime/lib/wsconfig/1/jrunserver.store"
>  JRunConfig Bootstrap 127.0.0.1:51010
>  #JRunConfig Errorurl
>  AddHandler jrun-handler .cfm .cfc .cfml .jsp .jws
>  

>
>  # Comment: I created 99ColdFusionSetting (missing from the posted link) and put I put it in two above files.

Step 3) Restart Apache: I use this command from the console:
> service httpd restart

When apache restarts, you might see this warning:

> Stopping httpd:                                            [   OK   ]
> Starting httpd: [Thu Nov 20 21:05:05 2003] [warn] Loaded DSO /opt/coldfusionmx/runtime/lib/wsconfig/1/mod_jrun.so uses plain Apache 1.3 API, this module might crash under EAPI! (please recompile it with -DEAPI)
>                                                           [   OK   ]



Step 4)  Enjoy serving out ColdFusion pages!  Don't forget to backup (shouldn't  this be Step 1???)


--Brad

Daley

Re: ColdFusion MX iBay configuration SOLVED
« Reply #3 on: November 28, 2003, 07:03:15 PM »
Hi Brad,

Is it resources hungry with the coldFusion? what is your machine sepc and ram? how much memory is required for one connection? do you experencing any slowness?

The ColdFusion running huge memory esp on windows platform, i think the std SME server configuration may not be sufficient enough, what do you reckon?

Perhaps you can share your howto with us.

Thank you,
Daley

Brad

Re: ColdFusion MX iBay configuration SOLVED
« Reply #4 on: November 29, 2003, 06:15:37 AM »
Daley,

Yes, Cold Fusion is a memory _hog_. I quote from manual:

Recomended Hardware
====================================
Edition:         Developer     Pro             Enterprise
------------------------------------------------------------------------
Processor     Pentium       Pentium      Pentium
Min RAM      128              256             256
Recmd RAM 256              512             512

Disk space:   400 to install, 250 to run.


The box that CFMX is running on is a Celeron 500MHz, with 512Mb ram and 2 IDE Driver running in software raid mode.  I have never had a server running MS Windows, so I can not give you a fair comparision. However it takes about 2-6 seconds to enter the ColdFusion Admin Area, depending on if it is cached or not.  

As PHP developer, I find that PHP is far less demanding on the same system, whereas ColdFusion requires 312 meg ram just to sit idle.  I contacted Macromedia with a support ticket and they said this is normal, due to the threading model of linux.


I have created a step-by-step guide for installing ColdFusion. You are welcome to log in to the FTP server using the name "anonymous", and any password.
ftp://ftp . bdwebtech . com



The only problem I am having now is that I have a server installed in server-only mode, and it does not seem to be doing DNS right.  Ie: subdomains do not work at all. I am not sure if it a CF issue or something else.  I have read the release notes now and updates are applied. The router is forewarding the proper ports to the proper ip.  CF will be served fine from any directory.  I would love to hear any ideas.


Oh, and one more thing... make sure you allow MySQL to run in localhost. I asked this quesion before and Charles Bradey helped me with this. Here is a link: http://www.e-smith.org/bboard//read.php?f=3&i=39630&t=39630

Please let me know what you think of the HOWTO and if it works for you.

Good Luck!

--Brad D.

Brad

Re: ColdFusion MX iBay configuration SOLVED
« Reply #5 on: November 30, 2003, 08:28:08 PM »
I have turned off FTP access to my test site completely.
You can get the HOWTO here: http://www.bdwebtech.com/~contribs