[FM Discuss] setting up booki publisher for civicrm
Tomi Toivio
tomi.olavi.toivio at gmail.com
Fri Oct 28 10:53:37 PDT 2011
Now I was having Bookipublisher trouble. Tried to publish and got an error
message "Internal Server Misconfiguration". Something wrong with Objavi? We
haven't changed our settings or anything for a while.
2011/10/27 adam hyde <adam at flossmanuals.net>
> no i think you can write it without bookipublisher...the script i sent you
> was part of the worker.php script that is run by gearman...you can forget gm
> and just run the script by cron
>
> adam
>
> adam
>
>
> On 27/10/11 19:21, Michael McAndrew wrote:
>
>> Hey,
>>
>> Thanks for the guidance. That sounds fun and I am willing to do that.
>>
>> Correct me if I am wrong, but I'm thinking that I would need a local
>> bookipublisher install to develop this script effectively.
>>
>> If so, sounds like I should install that on ubuntu. So wrt
>> dependencies, they have a few gearman packages. any advice on which one
>> I need?
>>
>> PS. I will start publisher INSTALL readme as part of this.
>>
>> Michael
>>
>>
>> p gearman - A distributed job queue
>> p gearman-job-server - Job server for the Gearman distributed job queue
>> p gearman-server - Gearman distributed job server and Perl interface
>> p gearman-tools - Tools for the Gearman distributed job queue
>> v gearman-worker -
>> p libgearman-client-async-perl - Asynchronous client for gearman
>> distributed job system
>> p libgearman-client-perl - Client for gearman distributed job system
>> p libgearman-dbg - Debug symbols for the Gearman Client Library
>> p libgearman-dev - Development files for the Gearman Library
>> p libgearman-doc - API Documentation for the Gearman Library
>> p libgearman-server-dev - Development files for the Gearman Server
>> Library
>> p libgearman-server0 - Library providing Gearman server functions
>> p libgearman2 - Library providing Gearman client and worker functions
>>
>>
>>
>>
>> On 27 October 2011 12:51, adam hyde <adam at flossmanuals.net
>> <mailto:adam at flossmanuals.net>**> wrote:
>>
>> actually wget is good for epub and pdf but now i think of it, not
>> good for templated html...i need to write up how to use it as you
>> are the first but good timing as maybe sahana etc want to use it
>> too. , so :
>>
>> wgets for pdf and epub are:
>>
>> http://objavi.booki.cc?book=__**civicrm&server=booki.__**
>> flossmanuals.net&mode=web<http://objavi.booki.cc?book=__civicrm&server=booki.__flossmanuals.net&mode=web>
>> <http://objavi.booki.cc?book=**civicrm&server=booki.**
>> flossmanuals.net&mode=web<http://objavi.booki.cc?book=civicrm&server=booki.flossmanuals.net&mode=web>
>> >";
>>
>> http://objavi.booki.cc?book=__**civicrm&server=booki.__**
>> flossmanuals.net&mode=epub<http://objavi.booki.cc?book=__civicrm&server=booki.__flossmanuals.net&mode=epub>
>>
>> <http://objavi.booki.cc?book=**civicrm&server=booki.**
>> flossmanuals.net&mode=epub<http://objavi.booki.cc?book=civicrm&server=booki.flossmanuals.net&mode=epub>
>> >";
>>
>> for getting templated html you can look at this file in bookipublisher:
>> https://github.com/esetera/__**BookiPublisher/blob/master/__**
>> plugins/getbookgears/worker.__**php<https://github.com/esetera/__BookiPublisher/blob/master/__plugins/getbookgears/worker.__php>
>>
>> <https://github.com/esetera/**BookiPublisher/blob/master/**
>> plugins/getbookgears/worker.**php<https://github.com/esetera/BookiPublisher/blob/master/plugins/getbookgears/worker.php>
>> >
>>
>> specifcally my_getbook_function - look at this and if you have the
>> motivation, make this a standalone php script (just this function)
>> and use this then commit it to bookipublisher in the scripts dir so
>> others could use it
>>
>> §url in the code for civi it would be:
>>
>> "http://objavi.booki.cc?book=_**_civicrm&server=booki.__**
>> flossmanuals.net&mode=__**templated_html<http://objavi.booki.cc?book=__civicrm&server=booki.__flossmanuals.net&mode=__templated_html>
>>
>> <http://objavi.booki.cc?book=**civicrm&server=booki.**
>> flossmanuals.net&mode=**templated_html<http://objavi.booki.cc?book=civicrm&server=booki.flossmanuals.net&mode=templated_html>
>> >",
>>
>> to use your own template you must append :
>> &html_template=$template
>>
>> where $template is the url of a template file
>>
>> template file must be file with following in it:
>> <content-goes-here />
>> <menu-goes-here/>
>>
>> you can omit the template parameter when testing and you get the
>> default
>>
>> adam
>>
>>
>>
>>
>> On 27/10/11 18:30, Michael McAndrew wrote:
>>
>> hey there,
>>
>> cheers - is 'wget on a cron' documented somewhere?
>>
>> i'm on irc at the mo if that is easier
>>
>> On 27 October 2011 12:29, adam hyde <adam at flossmanuals.net
>> <mailto:adam at flossmanuals.net>
>> <mailto:adam at flossmanuals.net <mailto:adam at flossmanuals.net>**>__>
>>
>> wrote:
>>
>> actually...i would just use wget on a cron for one book...
>>
>> for bookipublisher you need php 5.3 and gearman the php que
>> mananger...
>>
>> adam
>>
>>
>> On 27/10/11 17:11, Michael McAndrew wrote:
>>
>> Hi there,
>>
>> Trying to get the civicrm book on book.civicrm.org
>> <http://book.civicrm.org>
>> <http://book.civicrm.org>
>> <http://book.civicrm.org> nicely formatted with our css etc.
>>
>>
>> I'm presuming bookipublisher is the tool to do this and I'm
>> trying to
>> install it. Happy to write INSTALL in the git repo.
>> Not sure
>> where to
>> start :)
>>
>> I looked in config.inc.php. looks pretty reasonable.
>>
>> I ran db_init.sh and db_import.sh and both said done,
>> though i
>> noticed
>> that booki.sqlite is zero bytes.
>>
>> Not sure what to do now?
>>
>> Michael
>>
>> --
>> Michael McAndrew
>>
>> tel: 020 7183 5828
>> mob: 07817 802299
>>
>> Third Sector Design Ltd.
>> http://thirdsectordesign.org
>>
>>
>>
>> ______________________________**_____________________
>>
>> Discuss mailing list
>> Discuss at lists.flossmanuals.net
>> <mailto:Discuss at lists.**flossmanuals.net<Discuss at lists.flossmanuals.net>
>> >
>> <mailto:Discuss at lists.__flossm**anuals.net<http://flossmanuals.net>
>> <mailto:Discuss at lists.**flossmanuals.net<Discuss at lists.flossmanuals.net>
>> >>
>> http://lists.flossmanuals.net/**____listinfo.cgi/discuss-____**
>> flossmanuals.net<http://lists.flossmanuals.net/____listinfo.cgi/discuss-____flossmanuals.net>
>> <http://lists.flossmanuals.**net/__listinfo.cgi/discuss-__**
>> flossmanuals.net<http://lists.flossmanuals.net/__listinfo.cgi/discuss-__flossmanuals.net>
>> >
>> <http://lists.flossmanuals.__**net/listinfo.cgi/discuss-__**
>> flossmanuals.net <http://discuss-__flossmanuals.net>
>> <http://lists.flossmanuals.**net/listinfo.cgi/discuss-**
>> flossmanuals.net<http://lists.flossmanuals.net/listinfo.cgi/discuss-flossmanuals.net>
>> >>
>>
>> ______________________________**_____________________
>>
>> Discuss mailing list
>> Discuss at lists.flossmanuals.net
>> <mailto:Discuss at lists.**flossmanuals.net<Discuss at lists.flossmanuals.net>
>> >
>> <mailto:Discuss at lists.__flossm**anuals.net<http://flossmanuals.net>
>> <mailto:Discuss at lists.**flossmanuals.net<Discuss at lists.flossmanuals.net>
>> >>
>> http://lists.flossmanuals.net/**____listinfo.cgi/discuss-____**
>> flossmanuals.net<http://lists.flossmanuals.net/____listinfo.cgi/discuss-____flossmanuals.net>
>> <http://lists.flossmanuals.**net/__listinfo.cgi/discuss-__**
>> flossmanuals.net<http://lists.flossmanuals.net/__listinfo.cgi/discuss-__flossmanuals.net>
>> >
>>
>> <http://lists.flossmanuals.__**net/listinfo.cgi/discuss-__**
>> flossmanuals.net <http://discuss-__flossmanuals.net>
>>
>> <http://lists.flossmanuals.**net/listinfo.cgi/discuss-**
>> flossmanuals.net<http://lists.flossmanuals.net/listinfo.cgi/discuss-flossmanuals.net>
>> >>
>>
>>
>>
>>
>> --
>> Michael McAndrew
>>
>> tel: 020 7183 5828
>> mob: 07817 802299
>>
>> Third Sector Design Ltd.
>> http://thirdsectordesign.org
>>
>>
>>
>> ______________________________**___________________
>> Discuss mailing list
>> Discuss at lists.flossmanuals.net
>> <mailto:Discuss at lists.**flossmanuals.net<Discuss at lists.flossmanuals.net>
>> >
>> http://lists.flossmanuals.net/**__listinfo.cgi/discuss-__**
>> flossmanuals.net<http://lists.flossmanuals.net/__listinfo.cgi/discuss-__flossmanuals.net>
>> <http://lists.flossmanuals.**net/listinfo.cgi/discuss-**
>> flossmanuals.net<http://lists.flossmanuals.net/listinfo.cgi/discuss-flossmanuals.net>
>> >
>>
>> ______________________________**___________________
>> Discuss mailing list
>> Discuss at lists.flossmanuals.net <mailto:Discuss at lists.**
>> flossmanuals.net <Discuss at lists.flossmanuals.net>>
>> http://lists.flossmanuals.net/**__listinfo.cgi/discuss-__**
>> flossmanuals.net<http://lists.flossmanuals.net/__listinfo.cgi/discuss-__flossmanuals.net>
>> <http://lists.flossmanuals.**net/listinfo.cgi/discuss-**
>> flossmanuals.net<http://lists.flossmanuals.net/listinfo.cgi/discuss-flossmanuals.net>
>> >
>>
>>
>>
>>
>> --
>> Michael McAndrew
>>
>> tel: 020 7183 5828
>> mob: 07817 802299
>>
>> Third Sector Design Ltd.
>> http://thirdsectordesign.org
>>
>>
>>
>> ______________________________**_________________
>> Discuss mailing list
>> Discuss at lists.flossmanuals.net
>> http://lists.flossmanuals.net/**listinfo.cgi/discuss-**flossmanuals.net<http://lists.flossmanuals.net/listinfo.cgi/discuss-flossmanuals.net>
>>
> ______________________________**_________________
> Discuss mailing list
> Discuss at lists.flossmanuals.net
> http://lists.flossmanuals.net/**listinfo.cgi/discuss-**flossmanuals.net<http://lists.flossmanuals.net/listinfo.cgi/discuss-flossmanuals.net>
>
--
Best Regards
Tomi Toivio
Open Source Coordinator
http://fi.flossmanuals.net/
tomi at flossmanuals.net
+358453536625
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.flossmanuals.net/pipermail/discuss-flossmanuals.net/attachments/20111028/7b00e785/attachment-0001.htm>
More information about the Discuss
mailing list