[lqfb-main] setting up liquid feedback 2 beta5 for piratenpartei wien - pls help

Jan Behrens jbe at public-software-group.org
Sat May 26 19:24:48 UTC 2012


On 05/25/12 01:53, matthias behrens wrote:
> hi
>
> i am setting up a test instance for piratenpartei wien
>
> i have successfully compiled and installed the core
>
> i have also successfully compiled all components of the frontend
> however:
>
> trying to get it running with lighttpd seems difficult.
> the only page i can access is http://localhost:8182/webmcp-demo/
>
> i have tried adepting the config file in
>
> webmcp/doc/lighttpd.example.conf
> and http://dev.liquidfeedback.org/trac/lf/wiki/installation
>
> i dont quite understand what has to mapped to what.
>
> my installation is in /home/sol/liquid feedback/opt


Hi Matthias,

basically you have to replace the demo-application configuration by the 
LiquidFeedback configuration, i.e.:


replace

   "/webmcp-demo/static/" => 
"/__INSERT_LOCAL_FILE_PATH_TO_DEMO_APPLICATION_HERE__/static/",

by

   "/lf/static/" => "/home/sol/liquid_feedback/opt/static/",


replace

   "/webmcp-demo/"        => 
"/__INSERT_LOCAL_FILE_PATH_TO_WEBMCP_FRAMEWORK_HERE__/cgi-bin/" )

by

   "/webmcp-demo/"        => 
"/opt/webmcp_or_whatever_path_it_is_installed/cgi-bin/" )


replace

$HTTP["url"] =~ "^/webmcp-demo/" {

by

$HTTP["url"] =~ "^/lf/" {


replace

     "WEBMCP_APP_BASEPATH" => 
"/__INSERT_LOCAL_FILE_PATH_TO_DEMO_APPLICATION_HERE__",

by

     "WEBMCP_APP_BASEPATH" => "/home/sol/liquid feedback/opt",


replace

     "WEBMCP_CONFIG_NAME"  => "demo")

by

     "WEBMCP_CONFIG_NAME"  => "your_config_name")


replace

       "^/webmcp-demo/static/(.*)$" =>
       "/webmcp-demo/static/$1",

by

       "^/lf/static/(.*)$" =>
       "/lf/static/$1",


... and so on.


That way you should get it working. If not, let us know.


Regards
Jan Behrens


>
> here my last lighttpd config:
>
>
> server.document-root        = "/home/sol/liquid
> feedback/opt/webmcp/demo-app/static/"
>
> server.port               = 8182
>
> # Lighttpd modules needed by WebMCP
> server.modules += (
> "mod_cgi",
> "mod_alias",
> "mod_setenv",
> "mod_rewrite",
> "mod_redirect",
>   )
>
> # Enable CGI-Execution of *.lua files through lua binary
> cgi.assign += ( ".lua" => "/usr/bin/lua" )
>
> # Connect external URLs to server static files and the webmcp cgi interface
> alias.url += (
> "/webmcp-demo/static/" => "/home/sol/liquid
> feedback/opt/webmcp/demo-app/static/",
> "/lf/fastpath/" => "/home/sol/liquid
> feedback/opt/liquid_feedback_frontend/fastpath/",
> "/lf/static"    => "/home/sol/liquid
> feedback/opt/liquid_feedback_frontend/static",
> "/lf/"                 => "/home/sol/liquid
> feedback/opt/webmcp/framework/cgi-bin/" ,
> "/lx/"        => "/home/sol/liquid feedback/opt/webmcp/framework/cgi-bin/" ,
> "/webmcp-demo/"        => "/home/sol/liquid
> feedback/opt/webmcp/framework/cgi-bin/" )
>
>
>
> # Configure environment for demo application
> $HTTP["url"] =~ "^/webmcp-demo/" {
>    setenv.add-environment += (
> "WEBMCP_APP_BASEPATH" => "/home/sol/liquid feedback/opt/webmcp/demo-app",
> "WEBMCP_CONFIG_NAME"  => "demo")
> }
>
> # URL beautification
> url.rewrite-once += (
>
>    # do not rewrite static URLs
> "^/webmcp-demo/static/(.*)$" =>
> "/webmcp-demo/static/$1",
>
>    # base URL
> "^/webmcp-demo/(\?(.*))?$" =>
> "/webmcp-demo/webmcp-wrapper.lua?_webmcp_urldepth=0&_webmcp_module=index&_webmcp_view=index&$2",
>
>    # module base URLs
> "^/webmcp-demo/([^/\?]+)/(\?(.*))?$" =>
> "/webmcp-demo/webmcp-wrapper.lua?_webmcp_urldepth=1&_webmcp_module=$1&_webmcp_view=index&$3",
>
>    # actions
> "^/webmcp-demo/([^/\?]+)/([^/\.\?]+)(\?(.*))?$" =>
> "/webmcp-demo/webmcp-wrapper.lua?_webmcp_urldepth=1&_webmcp_module=$1&_webmcp_action=$2&$4",
>
>    # views without numeric id or string ident
> "^/webmcp-demo/([^/\?]+)/([^/\.\?]+)\.([^/\?]+)(\?(.*))?$" =>
> "/webmcp-demo/webmcp-wrapper.lua?_webmcp_urldepth=1&_webmcp_module=$1&_webmcp_view=$2&_webmcp_suffix=$3&$5",
>
>    # views with numeric id or string ident
> "^/webmcp-demo/([^/\?]+)/([^/\?]+)/([^/\.\?]+)\.([^/\?]+)(\?(.*))?$" =>
> "/webmcp-demo/webmcp-wrapper.lua?_webmcp_urldepth=2&_webmcp_module=$1&_webmcp_view=$2&_webmcp_id=$3&_webmcp_suffix=$4&$6",
>
> )
>
> # Redirects for URLs without trailing slashes
> url.redirect += (
>    # base URL without trailing slash
> "^/webmcp-demo$" => "/webmcp-demo/",
>    # module base URL without trailing slash
> "^/webmcp-demo/([^/\?]+)$" => "/webmcp-demo/$1/",
> )
>
>
> _______________________________________________
> Main mailing list
> Main at dev.liquidfeedback.org
> http://dev.liquidfeedback.org/cgi-bin/mailman/listinfo/main




More information about the Main mailing list