# HG changeset patch # User jbe # Date 1427149063 -3600 # Node ID 08adef9f05b9f97dbda7f0f01bf8cc50de3e80d0 # Parent 91089defc3eac6ac300b821e63c7a652124078b5 Updated installation instructions for WebMCP 2.x diff -r 91089defc3ea -r 08adef9f05b9 INSTALL.html --- a/INSTALL.html Sun Mar 22 22:59:17 2015 +0100 +++ b/INSTALL.html Mon Mar 23 23:17:43 2015 +0100 @@ -14,14 +14,12 @@ installed:
Whichever useraccount is used by the webserver (usually www-data
) needs to
-have access to your PostgreSQL installation. This is done by executing
-PostgreSQL's shell command createuser
as database superuser (usually pgsql
,
-or postgres
for Debian installations):
The useraccount of the webserver (usually www-data
) or the Moonbridge server
+process needs to have access to your PostgreSQL installation. This is done by
+executing PostgreSQL's shell command createuser
as database superuser
+(usually pgsql
, or postgres
for Debian installations):
su - postgres
createuser
@@ -99,21 +97,31 @@
exit
-4. Install WebMCP
+4. Install Moonbridge (only for WebMCP 2.x)
-Note: Using Debian, it may be necessary to append -I /usr/include/lua5.1
at
+
# Download and unpack Moonbridge
+# from http://www.public-software-group.org/pub/projects/moonbridge/
+pmake MOONBR_LUA_PATH=/opt/moonbridge/?.lua
+mkdir /opt/moonbridge
+cp moonbridge /opt/moonbridge/
+cp moonbridge_http.lua /opt/moonbridge/
+
+
+5. Install WebMCP
+
+Note: Using Debian, it may be necessary to append -I /usr/include/lua5.2
at
the end of the CFLAGS line in Makefile.options
of the WebMCP source
distibution:
# Download and unpack WebMCP
# from http://www.public-software-group.org/pub/projects/webmcp/
-vi Makefile.options # Debian requires -I /usr/include/lua5.1 at end of CFLAGS line
+vi Makefile.options # Debian requires -I /usr/include/lua5.2 at end of CFLAGS line
make
mkdir /opt/webmcp
cp -RL framework/* /opt/webmcp/
-5. Install the LiquidFeedback-Frontend
+6. Install the LiquidFeedback-Frontend
Unpack source tree into appropriate directory, e.g. /opt/liquid_feedback_frontend
:
@@ -122,30 +130,24 @@
mv liquid_feedback_frontend-vX.X.X /opt/liquid_feedback_frontend
-Create HTML code for help texts:
- -cd /opt/liquid_feedback_frontend/locale
-PATH=/opt/rocketwiki-lqfb:$PATH make
-
-
Make tmp/
directory of LiquidFeedback-Frontend writable for webserver:
chown www-data /opt/liquid_feedback_frontend/tmp
-Compile binary for fast delivery of member images:
+Compile binary for fast delivery of member images (only necessary for WebMCP 1.2.x):
cd /opt/liquid_feedback_frontend/fastpath
vi getpic.c # check and modify #define commands as necessary
make
-It may be necessary to configure your server's mail system, e.g. running
dpkg-reconfigure exim4-config
on a Debian system.
A sample configuration for lighttpd
is given below (assuming mod_alias
has
been included elsewhere):
/etc/lighttpd/conf-available/60-liquidfeedback.conf
and create a softlink in
/etc/lighttpd/conf-enabled/
.
-cd /opt/liquid_feedback_frontend/config
cp example.lua myconfig.lua
@@ -196,14 +198,14 @@
Use the following option in your configuration file to enable fast image -loading:
+loading (only for WebMCP 1.2.x):config.fastpath_url_func = function(member_id, image_type)
return request.get_absolute_baseurl() .. "fastpath/getpic?" .. tostring(member_id) .. "+" .. tostring(image_type)
end
-lf_update
and related commands lf_update
and related commands The executables lf_update
, lf_update_issue_order
, and
lf_update_suggestion_order
must be executed regularly. This may be achieved
@@ -237,7 +239,7 @@
And this file should be started automatically at system boot.
-In addition to regular execution of lf_update
and
lf_update_suggestion_order
, the following commands should be executed in
@@ -248,10 +250,15 @@
echo "Event:send_notifications_loop()" | ../webmcp/bin/webmcp_shell myconfig
-
After lf_update
has been executed at least once, and the webserver has been
restarted (using the configuration above), you should be able to access your
LiquidFeedback system.
If you use WebMCP 2.x, the server is started by calling:
+ +/opt/moonbridge/moonbridge /opt/webmcp/bin/mcp.lua /opt/webmcp/ /opt/liquid_feedback_frontend/ main myconfig
+