Forum LAMS for Tech-Heads - General Forum: Re: mod_jk broken after upgrade to 2.4


 
Search: 

2: Re: mod_jk broken after upgrade to 2.4
In response to 1 12/17/12 02:43 PM
[ Reply | Forward ]
Hi Glen,

I think the error is that LAMS is bound to IP 210.48.33.60 and mod_jk is trying to connect to IP 127.0.0.1

For your server.log:


2012-12-17 14:28:04,692 INFO [org.apache.coyote.http11.Http11Protocol] (main) Starting Coyote HTTP/1.1 on http-210.48.33.60-8080
2012-12-17 14:28:04,897 INFO [org.apache.coyote.ajp.AjpProtocol] (main) Starting Coyote AJP/1.3 on ajp-210.48.33.60-8009

So LAMS has started as "run.sh -b 210.48.33.60", right?

And mod_jk is configured to talk to LAMS on port 127.0.0.1/localhost:


...
worker.ajp13.host=localhost
...

So you can either start LAMS as run.sh -b 127.0.0.1 and that will ensure that mod_jk can talk via ajp to LAMS and you can do your apache proxying.

Thanks

Ernie

Posted by Ernie Ghiglione

3: Re: Re: mod_jk broken after upgrade to 2.4
In response to 2 12/17/12 03:20 PM
[ Reply | Forward ]
Doh! - that is blindingly obvious! Must have been a long day yesterday - roll on xmas hols. Thanks Ernie, all sorted now.

Perhaps it could do with a line adding to the "Start Lams" section at http://wiki.lamsfoundation.org/display/lamsdocs/Upgrading+LAMS+2.3.5+to+2.4+Linux given that the -b option is shown here, eg.

"If you use the -b option to bind Lams to a specific IP address and you are using mod_jk then make sure you use the same address that mod_jk is set to listen to. For example mod_jk is usually set to connect to localhost (127.0.0.1) so use -b 127.0.0.1 when starting Lams" - just in case there are others as stupid as me :-)

Thanks for your help
Glen

Posted by Glen Davies

4: Re: Re: Re: mod_jk broken after upgrade to 2.4
In response to 3 12/17/12 04:09 PM
[ Reply | Forward ]
Hi Glen,

I've just added a "Start on boot" section that was probably what this document was missing.

In there there's a script on how to start/stop LAMS on linux as a service:

http://wiki.lamsfoundation.org/display/lamsdocs/Start+up+on+boot

Thanks,

Ernie

Posted by Ernie Ghiglione

Reply to first post on this page
Back to LAMS for Tech-Heads - General Forum