{"id":6,"date":"2005-09-01T20:08:16","date_gmt":"2005-09-02T02:08:16","guid":{"rendered":"http:\/\/macblaze.ca\/?p=6"},"modified":"2005-10-24T20:19:12","modified_gmt":"2005-10-25T02:19:12","slug":"geek-post","status":"publish","type":"post","link":"https:\/\/macblaze.ca\/?p=6","title":{"rendered":"Geek Post"},"content":{"rendered":"<p>*************<\/p>\n<p>Trials of being an incompetent geek\n <\/p>\n<p>As you can see I installed Blojsom on the server and am now hosting my own blog. Currently running a Ruby g3 iMac with OS x Server 10.3.9 and hosting this website, some mysql stuff and now the blog.\n<\/p>\n<p>Installing the Blojsom was as easy as they say on one had and weird on the other. You are supposed to download the WAR file and install it in the Tomcat director and voila.\n<\/p>\n<p>Easy you say, and it is if that&#8217;s all there was to it. To start with the download kept giving me a .jar file which was new to me. Fix: download on the PC and then move the WAR file over to Ruby.\n<\/p>\n<p>Next you had to know to go to the Server admin and fire up Tomcat via Application Server. Then a bit of research revealed that the URL for OS x has a different port so macblaze.ca:8080\/blojsom\/blog\/default was in fact macblaze.ca:9006\/blojsom\/blog\/default  Why? I have no idea.\n<\/p>\n<p>The my internal dns was screwy and I couldn&#8217;t connect using the dynamic domain (macblaze.ca) but could with IP or the internal domain. This I tracked to the fact that port 9006 was blocked at the firewall and and the requests for macblaze were going out and then trying to get back in. I opened the port and that fixed that.\n<\/p>\n<p>But why did I have to state a port it the url at all? No one else did. A bit of research revealed that tomcat was a standalone  app and need to have request directed to it (sort of like php or asp). I activated the jkmodule (modjk.so) which is apparently the apache tomcat interface but that did no good. a brief search turned up an article on afp548.com with instructions on OD deployment using Blojsom on OS X Server Tiger  seemed good enough for me. Here are the relevant bits:\n<\/p>\n<p>Open up Server Admin for your server, and in the Web service, go to the Modules tab. Enable the  jk_module&acirc;&euro;&iuml;&iquest;&frac12; module.\n<\/p>\n<p>edit the file: \/etc\/httpd\/httpd.conf and change the section:\n<\/p>\n<p>JKWorkersFile \/etc\/httpd\/workers.properties JKLogFile \/var\/log\/httpd\/mod_jk.log JKLogLevel error JKMount \/.jsp JBoss1 JKMount \/servlet\/ JBoss1 JKMount \/examples\/* JBoss1\n<\/p>\n<p>to:\n<\/p>\n<p>JKWorkersFile \/etc\/httpd\/workers.properties JKLogFile \/var\/log\/httpd\/mod_jk.log JKLogLevel error JKMount \/.jsp JBoss1 JKMount \/servlet\/ JBoss1 JKMount \/examples\/* JBoss1 JKMount \/blojsom\/* blojsomworker\n<\/p>\n<p>edit the file: \/etc\/httpd\/workers.properties and make the following changes: Change the line: worker.list=JBoss1, JBoss2, loadbalancer\n<\/p>\n<p>to worker.list=JBoss1, JBoss2, loadbalancer, blojsomworker\n<\/p>\n<p>and after the line: <br \/>worker.loadbalancer.balanced_workers=JBoss1, JBoss2\n<\/p>\n<p>add:\n<\/p>\n<p>******\n<\/p>\n<p>Blojsom worker\n<\/p>\n<p>******\n<\/p>\n<p>worker.blojsomworker.port=9007 <br \/>worker.blojsomworker.host=127.0.0.1 <br \/>worker.blojsomworker.type=ajp13 <br \/>worker.blojsomworker.lbfactor=100\n<\/p>\n<p>Worked\n<\/p>\n<p> [posted originally with ecto]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>************* Trials of being an incompetent geek As you can see I installed Blojsom on the server and am now hosting my own blog. Currently running a Ruby g3 iMac with OS x Server 10.3.9 and hosting this website, some mysql stuff and now the blog. Installing the Blojsom was as easy as they say [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false},"categories":[1],"tags":[],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/macblaze.ca\/index.php?rest_route=\/wp\/v2\/posts\/6"}],"collection":[{"href":"https:\/\/macblaze.ca\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/macblaze.ca\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/macblaze.ca\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/macblaze.ca\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=6"}],"version-history":[{"count":0,"href":"https:\/\/macblaze.ca\/index.php?rest_route=\/wp\/v2\/posts\/6\/revisions"}],"wp:attachment":[{"href":"https:\/\/macblaze.ca\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/macblaze.ca\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=6"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/macblaze.ca\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=6"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}