Koozali.org: home of the SME Server

Obsolete Releases => SME 7.x Contribs => Topic started by: mophilly on December 29, 2007, 01:35:45 AM

Title: compile mod_webkit.so
Post by: mophilly on December 29, 2007, 01:35:45 AM
I am setting up Webware for Python on SME 7.2 to replace the SME 6 rendition. This effort could use an apache module to replace the CGI. A compiled .so is not available but the source code is; here is a link to the apache mod discussion in the Webware documentation:
http://www.webwareforpython.org/WebKit/Docs/InstallGuide.html#mod-webkit (http://www.webwareforpython.org/WebKit/Docs/InstallGuide.html#mod-webkit)

I would love to hear from anyone who has the time+setup to run the compile. I can send you the necessary files, although they are also freely available at the website.
Title: Re: compile mod_webkit.so
Post by: cactus on December 29, 2007, 11:27:16 AM
I would love to hear from anyone who has the time+setup to run the compile. I can send you the necessary files, although they are also freely available at the website.
I think you might have a bit of an issue here, according to the documentation in the package there are two modules, one for the apache 1.3 tree, the other for the apache 2.2 tree. Unfortunately SME Server 7.2 is running a 2.0 tree version.

I am not sure if the 2.2 module will work in a 2.0 tree, but I am pretty sure that the 1.3 module will not work in the 2.0/2.2 tree.
Title: Re: compile mod_webkit.so
Post by: cactus on December 29, 2007, 01:06:20 PM
Installing the module should be pretty straight forward according to the README, however that will probably not work on SME Server.

I have not tested this and there might be errors in my instructions (perhaps you'd better test this on a test machine first) but if you have a SME Server 7.2 configured you might try this:


Title: Re: compile mod_webkit.so
Post by: mophilly on December 29, 2007, 08:56:02 PM
Thank you for the very complete reply. I appreciate the effort!

Quote
I am not sure if the 2.2 module will work in a 2.0 tree, but I am pretty sure that the 1.3 module will not work in the 2.0/2.2 tree.

I also appreciate your comment regarding the versions of apache; perhaps the webware list will have some insight.
Title: Re: compile mod_webkit.so
Post by: mophilly on December 31, 2007, 02:47:53 AM
Quote
I am not sure if the 2.2 module will work in a 2.0 tree, but I am pretty sure that the 1.3 module will not work in the 2.0/2.2 tree.

For the record, you are quite right about the v1.3 module not working with apache 2.x. The API changed significantly in apache 2.x, and 1.x modules do not work with it.

Christoph Zwerschke, one of the maintainers of Webware, wrote that the v2.2 module with work with CentOS 4, and that only the make.bat and .dll files are dependent on apache 2.2.

Gary Perez, also from the Webware list, offer a "how to" he wrote for installing Webware on CentOS. http://eringary.com/webware/ (http://eringary.com/webware/)

Thanks to all; I think I am ready to dive into this.
Title: Re: compile mod_webkit.so
Post by: cactus on December 31, 2007, 10:25:56 AM
Gary Perez, also from the Webware list, offer a "how to" he wrote for installing Webware on CentOS. http://eringary.com/webware/ (http://eringary.com/webware/)

Thanks to all; I think I am ready to dive into this.
Not to be a pain in the arse, considering this howto, but starting services at boot time works a little different in SME Server than in CentOS, have a look at the relevant section of the (http://mirror.contribs.org/contribs/gordonr/devguide/html/x2105.htm) of the SME Server Developer's Guide.
Title: Re: compile mod_webkit.so
Post by: mophilly on December 31, 2007, 06:03:13 PM
You are not being a pain because you are quite right about the boot process in SME 7 being different from CentOS. FWIW, the boot set up is on the to-do list for my project.

Thanks for the link to the page in the developer's guide. I have been there before, when I set up this particular project on SME 6, but it is worthwhile to review it again.
Title: Re: compile mod_webkit.so
Post by: mophilly on December 31, 2007, 07:22:37 PM
I have compiled a "how-to" for this process, blending the advice from Cactus, Gary and Christoph.

  http://www.mophilly.com/wiki/Installing_%26_Configuring_Webware_on_SME_7.2 (http://www.mophilly.com/wiki/Installing_%26_Configuring_Webware_on_SME_7.2)

I will add the instructions for boot process, if there is anything not covered by the SME documentation.

Thanks to Cactus for all the help.