Can't see railo on port 80 only on 8888?

300 views
Skip to first unread message

Annie

unread,
Apr 26, 2012, 4:17:52 AM4/26/12
to ra...@googlegroups.com
Hi all. 

Something happened on one of my dev servers today.  The box has been up and running for about 3 months but with little to no traffic - the site it's hosting isn't live yet - and everything was running fine throughout that time..  Then today suddenly railo/colfusion isn't working.  As far as I know the only thing that happened is that some files were transferred to the server.  I restarted railo and eventually found that I could get to the server context if I tacked :8888 onto the url.  What does it mean when I run the page without the port in the url and get a 404 page not found?  At the same time, if I load one of the cfm pages, it doesn't process the code, it just displays the cfml in the browser.

CentOS, cPanel, Apache, Tomcat... let me know if you need any other info.

Thanks ahead of time!
Annie

Gert Franz

unread,
Apr 26, 2012, 5:15:13 AM4/26/12
to ra...@googlegroups.com

Annie,

 

It seems like your configuration of Apache must have been overwritten somehow. The connector doesn’t seem to be involved anymore, which means that Apache does not know what to do with the files. You should perhaps have a look at your Apache configuration files that define the module used when invoking .cf* files.

 

Have a look here (especially the Apache stuff)

http://jamesconstable.co.uk/web-development/installing-railo-3-on-tomcat-6-via-apache-2-on-ubuntu-804/

http://blog.stannard.net.au/2010/04/15/setting-up-a-railo-website-in-ubuntu-apache-tomcat/

This is for Windows but it still applies to Apache

http://web-rat.com/blog/post.cfm/installing-railo-on-tomcat-the-windows-edition

 

Question is: how have you set up Railo for this box?

 

Let us know whether something from the blogs worked for you. I am sure that Jordan will chime in here, but since he lives on the West Coast, it might be a while J

 

Greetings from Switzerland

Gert Franz

 

Railo Technologies      Professional Open Source

skype: gert.franz         ge...@getrailo.com

+41 76 5680 231           www.getrailo.com

Jordan Michaels

unread,
Apr 26, 2012, 1:47:05 PM4/26/12
to ra...@googlegroups.com
+1

Cpanel has the unfortunate habit of re-compiling Apache (and thus
resetting the Apache configs) whenever new modules are added to it. It
does this for the purpose of speed (good) but it borks custom configs
(bad). Creating a cPanel module for OSS CFML is on my to-do list.

For now, when this happens, place the following code in the
/etc/httpd/conf.d/mod_jk.conf file:

<IfModule !mod_jk.c>
LoadModule jk_module /usr/lib/httpd/modules/mod_jk.so
</IfModule>

<IfModule mod_jk.c>
JkMount /*.cfm ajp13
JkMount /*.cfc ajp13
JkMount /*.jsp ajp13
JkMount /*.cfchart ajp13
JkMount /*.cfm/* ajp13
JkMount /*.cfml/* ajp13
# Flex Gateway Mappings
# JkMount /flex2gateway/* ajp13
# JkMount /flashservices/gateway/* ajp13
# JkMount /messagebroker/* ajp13
JkMountCopy all
JkLogFile /var/log/httpd/mod_jk.log
</IfModule>

restart Apache and you should be all set.

Hope this helps.

Warm Regards,
Jordan Michaels

On 04/26/2012 02:15 AM, Gert Franz wrote:
> Annie,
>
> It seems like your configuration of Apache must have been overwritten
> somehow. The connector doesn’t seem to be involved anymore, which means
> that Apache does not know what to do with the files. You should perhaps
> have a look at your Apache configuration files that define the module
> used when invoking .cf* files.
>
> Have a look here (especially the Apache stuff)
>
> http://jamesconstable.co.uk/web-development/installing-railo-3-on-tomcat-6-via-apache-2-on-ubuntu-804/
>
> http://blog.stannard.net.au/2010/04/15/setting-up-a-railo-website-in-ubuntu-apache-tomcat/
>
> This is for Windows but it still applies to Apache
>
> http://web-rat.com/blog/post.cfm/installing-railo-on-tomcat-the-windows-edition
>
> Question is: how have you set up Railo for this box?
>
> Let us know whether something from the blogs worked for you. I am sure
> that Jordan will chime in here, but since he lives on the West Coast, it
> might be a while J
>
> Greetings from Switzerland
>
> Gert Franz
>
> Railo Technologies Professional Open Source
>
> skype: gert.franz ge...@getrailo.com <mailto:ge...@getrailo.com>
>
> +41 76 5680 231 www.getrailo.com <http://www.getrailo.com/>
>
> *Von:*ra...@googlegroups.com [mailto:ra...@googlegroups.com] *Im Auftrag
> von *Annie
> *Gesendet:* Donnerstag, 26. April 2012 10:18
> *An:* ra...@googlegroups.com
> *Betreff:* [railo] Can't see railo on port 80 only on 8888?

Annie

unread,
Apr 27, 2012, 1:08:20 AM4/27/12
to ra...@googlegroups.com
Thanks for the quick reply Gert!  And thank you as well Jordan.  It was in fact the apache connector.  I've had this problem before when EasyApache was run.  But I was told it wasn't run this time and I wasn't sure if the symptoms here were pointing to that same problem.

On the server in question it ended up being this file that need to be modified:
usr/local/apache/conf/httpd.conf

And having had this problem before I had saved a backup of the httpd.conf when I initially installed railo (via the fabulous installer from Viviotech)!

So I opened that one up and found the right code based on Jordan's post and copy/pasted it.  It looked slightly different than the version he posted so I used what was in the backup file I had.  Looks like just a few different file references:

<IfModule !mod_jk.c>
    LoadModule jk_module /usr/local/apache/modules/mod_jk.so
</IfModule>

<IfModule mod_jk.c>
    JkMount /*.cfm ajp13
    JkMount /*.cfc ajp13

    JkMount /*.do ajp13


    JkMount /*.jsp ajp13
    JkMount /*.cfchart ajp13

    JkMount /*.cfres ajp13


    JkMount /*.cfm/* ajp13
    JkMount /*.cfml/* ajp13
    # Flex Gateway Mappings
    # JkMount /flex2gateway/* ajp13
    # JkMount /flashservices/gateway/* ajp13
    # JkMount /messagebroker/* ajp13
    JkMountCopy all

    JkLogFile /usr/local/apache/logs/mod_jk.log
</IfModule>

Thanks for the help!

Annie

Jordan Michaels

unread,
Apr 27, 2012, 1:05:07 PM4/27/12
to ra...@googlegroups.com
Hi Annie,

No problem. The mapping I posted earlier just doesn't include the following:

JkMount /*.cfres ajp13

Railo doesn't use this one. It's a hold-over from the old, old linux BASH install scripts that the installers started out as.

JkMount /*.do ajp13

This one is for Java sites, but not used by anything included by default in a Railo install.

So... neither of those is very important. It won't hurt anything to have them in there, but they're not particularly needed. ;)

-Jordan
Reply all
Reply to author
Forward
0 new messages