ColdFusion & Plesk & Server Architecture Matt | 19 Oct 2007 09:33 am
ColdFusion 8 and Plesk 8 on RedHat 5 via mod_jrun22
After installing Plesk 8 on a RedHat 4 box I’ve needed to install Plesk 8 on Redhat 5. RedHat 5 uses mod_jrun22. Well it’s Apache 2.2 that uses mod_jrun22, so any version of Linux running Apache 2.2 will use this connector.
Since Plesk doesn’t support CF8 yet, it still writes out its apache directives looking for mod_jrun20. This needs to be modified to get per domain support for CF8 and Apache 2.2
Warning this will void your warranty!
I grepped the plesk install directory looking for mentions of jrun. I found a binary file that matched: /usr/local/psa/admin/sbin/websrvmng
Looking at this file, on line 228 there’s a mention of mod_jrun20 in plain text. This is the part of the websrvmng that writes out the http directives. After making a backup of this file I took a chance at making an edit. I simply changed mod_jrun20 to mod_jrun22 and saved the file.
Sure enough, plesk is happy. Now when checking the ColdFusion box in a domain setup I see <IfModule mod_jrun22.c> in the httpd.include file for that domain rather than <IfModule mod_jrun20.c>.
Be careful here, I’m sure this change would not survive a plesk update to websrvmng. After each plesk update double check this file to make sure it still points to mod_jrun22.








on 19 Oct 2007 at %I:%M%p 1.John said …
Thanks man this is exactly what i needed. cf8 here I come!!!!! w00tness.
on 31 Dec 2007 at %I:%M%p 2.Mike said …
Still no go in RHEL 5 Plesk 8.3
grep -ri jrun /etc/httpd/conf.d
grep -ri jrun /etc/httpd/conf
Both show nothing…
I did make the mod_jrun20 to 22 change and that is all said and done and shows as running but it STILL doesnt parse.
on 31 Dec 2007 at %I:%M%p 3.Mike said …
Still no luck… The psa dir isnt in the wsconfig directory. Any ideas?
on 03 Jan 2008 at %I:%M%p 4.Matt said …
The CF/Plesk install process starts with what I’ve explained over here about Plesk 8 and Redhat 4: http://www.usercore.com/zh/2007/08/29/coldfusion-8-and-plesk-8-on-red-hat-es-4/
The stuff in this post is just an addendum specific to Redhat Enterprise 5. I’m curious to know if you have troubles specific to Plesk 8.3 though. I’m still running 8.2.1 on both of my Redhat/CF machines.
on 29 Jan 2008 at %I:%M%p 5.David Evenson said …
I got 8.3 working on CentOS 5.1, so I’d imagine that 8.3 and RHEL 5 are going to be happy as well.
on 08 Jan 2009 at %I:%M%p 6.Andrew Rossi said …
Have you had any luck or experience installing CF8.01 (32-bit) on an RHEL5 (also 32-bit) box using Plesk 8.6? For the life of me, I cannot get the Apache Connector to run correctly. What’s strange is that the 64-bit version of CF8 installed so well on RHEL5×64. The whole process only took 5 minutes. This time, it has taken me 3 days.
Any thoughts or pointers would be awesome.
on 10 Jan 2009 at %I:%M%p 7.Matt said …
Yes I’m running ColdFusion 8.01 on psa v8.6.0_build86080822.19 os_RedHat el5.
This is the jrun module I’m loading: /opt/coldfusion8/runtime/lib/wsconfig/psa/mod_jrun22.so … the file size is 71649. I’ve got your email address so I’ll send you my compiled mod_jrun22 to try since we’ve got the same system.
In the httpd.include in the conf directory for each site I have enabled CF for, I have the following instructions for jrun that are automatically dropped in there by plesk in an IfModule mod_jrun22.c block:
JRunConfig Verbose false
JRunConfig Apialloc false
JRunConfig Ignoresuffixmap false
JRunConfig Serverstore /opt/coldfusion8/runtime/lib/wsconfig/psa/jrunserver.store
JRunConfig Bootstrap 127.0.0.1:51800
AddHandler jrun-handler .jsp .jws .cfm .cfml .cfc