הוראות התקנה למשוב נוזלי 2014

מתוך שקוף באוהל
גרסה מתאריך 14:07, 6 באוגוסט 2014 מאת ברוך אורן (שיחה | תרומות)
(הבדל) → הגרסה הקודמת | הגרסה האחרונה (הבדל) | הגרסה הבאה ← (הבדל)
קפיצה אל: ניווט, חיפוש

זהו דף הקשור לדמוקרטיה ישירה. דפים נוספים הקשורים לנושא ניתן למצא כאן.

תוכן עניינים

התקנה ראשונית

ראה באתר המפתחים הגרמני - http://www.public-software-group.org/mercurial/liquid_feedback_frontend/raw-file/tip/INSTALL.html sudo bash apt-get install from list pip install --upgrade ??

su postgres createuser dd


wget lf_core make cp to /opt/lf_core

createdb -E UTF8 -T template0 liquid_feedback_opr8


member_ttl - זמן חיים לפני שמשתמש מוקפא. הגרמנים לקחו שנה, מוגדר אצלנו חודש

גבולות הצפה: הצעת משתמש/ת, שעה, 20 תגוביות, 6 הצעות הצעת משתמש/ת, יום, 80 תגוביות, 12 הצעות הצעת מנהל/ת אתר, שעה, 200 תגוביות, 60 הצעות הצעת מנהל/ת אתר, יום, 800 תגוביות, 120 הצעות

מדיניות תנאי הצבעה - בכולן מוגדר נכון לעכשיו קוורום עניין ציבורי בסוגיה 10%, קוורום עניין ציבורי בהצעה 10% לו"ז רגיל קוורום 10%:10%, 8 ימים לצבירת עניין ציבורי בסוגיה, 15 יום לשיח מתכנס, 8 יום לימוד הצעות חצי-קפואות, 15 יום הצבעה. לו"ז מזורז קוורום 10%:10%, 2 ימים לצבירת עניין ציבורי בסוגיה, 4 יום לשיח מתכנס, 2 יום לימוד הצעות חצי-קפואות, 4 יום הצבעה. לו"ז בהול קוורום 10%:10%, 12 שעות לצבירת עניין ציבורי, בסוגיה 24 שעות לשיח מתכנס, 12 שעות לימוד הצעות חצי-קפואות, 24 שעות הצבעה. לו"ז להתנסות קוורום 10%:10%, 5 דקות לצבירת עניין ציבורי בסוגיה, 10 דקות לשיח מתכנס, 5 דקות לימוד הצעות חצי-קפואות, 10 דקות הצבעה.

INSERT INTO system_setting (member_ttl) VALUES ('1 month'); INSERT INTO contingent (polling, time_frame, text_entry_limit, initiative_limit) VALUES (false, '1 hour', 20, 6); INSERT INTO contingent (polling, time_frame, text_entry_limit, initiative_limit) VALUES (false, '1 day', 80, 12); INSERT INTO contingent (polling, time_frame, text_entry_limit, initiative_limit) VALUES (true, '1 hour', 200, 60); INSERT INTO contingent (polling, time_frame, text_entry_limit, initiative_limit) VALUES (true, '1 day', 800, 120); INSERT INTO policy (index, name, admission_time, discussion_time, verification_time, voting_time, issue_quorum_num, issue_quorum_den, initiative_quorum_num, initiative_quorum_den) VALUES (1, 'לו"ז רגיל, קוורום 10%:10%', '8 days', '15 days', '8 days', '15 days', 10, 100, 10, 100); INSERT INTO policy (index, name, admission_time, discussion_time, verification_time, voting_time, issue_quorum_num, issue_quorum_den, initiative_quorum_num, initiative_quorum_den) VALUES (1, 'לו"ז מזורז, קוורום 10%:10%', '2 days', '4 days', '2 days', '4 days', 10, 100, 10, 100); INSERT INTO policy (index, name, admission_time, discussion_time, verification_time, voting_time, issue_quorum_num, issue_quorum_den, initiative_quorum_num, initiative_quorum_den) VALUES (1, 'לו"ז בהול, קוורום 10%:10%', '12 hours', '24 hours', '12 hours', '24 hours', 10, 100, 10, 100); INSERT INTO policy (index, name, admission_time, discussion_time, verification_time, voting_time, issue_quorum_num, issue_quorum_den, initiative_quorum_num, initiative_quorum_den) VALUES (1, 'לו"ז להתנסות, קוורום 10%:10%', '5 minutes', '10 minutes', '5 minutes', '10 minutes', 10, 100, 10, 100); INSERT INTO unit (name) VALUES ('דמוקרטיה אקטיביסטית'); INSERT INTO area (unit_id, name) VALUES (1, 'איזור ברירת המחדל'); INSERT INTO allowed_policy (area_id, policy_id, default_policy) VALUES (1, 1, TRUE);

WEB MCP documentation - http://www.public-software-group.org/pub/projects/webmcp/v1.2.6/documentation.html

SUEXEC

בגלל שאצלי בשרת virtualmin עובד בתצורה שגורמת לapache2 לעבוד עם suexec, הרי שהיה צריך להעתיק את הספריה webmcp מ/opt/webmcp לספרייה ~/cgi-bin שנמצאת בתוך ה document root שהוגדר לsuexec בזמן הקומפילציה שלה.

תיקונים ובגים נוספים

צריך עדיין לטפל - * RTL של הצקבוקס תנאי שימוש


httpd.conf

DocumentRoot /home/dd/public_html ErrorLog /var/log/virtualmin/dd.shakufbaohel.org.il_error_log CustomLog /var/log/virtualmin/dd.shakufbaohel.org.il_access_log combined

    1. for liquidfeedback ## ScriptAlias /cgi-bin/ /home/dd/cgi-bin/

ScriptAlias /awstats/ /home/dd/cgi-bin/ DirectoryIndex index.html index.htm index.php index.php4 index.php5

<Directory /home/dd/public_html> Options -Indexes +IncludesNOEXEC +SymLinksifOwnerMatch +ExecCGI allow from all AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch

  1. AllowOverride FileInfo Options

AddHandler fcgid-script .php AddHandler fcgid-script .php5 FCGIWrapper /home/dd/fcgi-bin/php5.fcgi .php FCGIWrapper /home/dd/fcgi-bin/php5.fcgi .php5

</Directory> <Directory /home/dd/cgi-bin> allow from all AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch </Directory> RewriteEngine on


        1. Begin LiquidFeedback settings 2014-08-06 ####

RewriteLog /var/log/apache2/rewrite.log

  1. debug rewrite rules

RewriteLogLevel 3


  1. Directly serve static files

Alias /lf/fastpath/ /opt/liquid_feedback_frontend/fastpath/ Alias /lf/static/ /opt/liquid_feedback_frontend/static/

  1. Connect extarnal path to the webmcp cgi interface

ScriptAlias /cgi-bin /home/dd/cgi-bin/webmcp/cgi-bin

<Directory /opt/liquid_feedback_frontend/fastpath > Order allow,deny Allow from all </Directory>

<Directory /opt/liquid_feedback_frontend/static > Order allow,deny Allow from all </Directory>

  1. Allow CGI execution for the webmcp CGI interface - // does not help since suexec...

<Directory "/opt/webmcp/cgi-bin"> AllowOverride None Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch Options ExecCGI -MultiViews Order allow,deny Allow from all </Directory>


  1. skip issues with ../index (baroch)

RewriteRule ^/index/(.*)$ /lf/index/$1 [R,QSA]

  1. do not rewrite static URLs

RewriteRule ^/lf/static/(.*)$ /lf/static/$1 [PT]

  1. do not rewrite fastpath URLs

RewriteRule ^/lf/fastpath/(.*)$ /lf/fastpath/$1 [PT]

  1. base URL

RewriteRule ^/lf/(\?(.*))?$ /cgi-bin/webmcp-wrapper.lua?_webmcp_urldepth=0&_webmcp_module=index&_webmcp_view=index&$2 [PT,QSA]

  1. module base URLs

RewriteRule ^/lf/([^/\?]+)/(\?(.*))?$ /cgi-bin/webmcp-wrapper.lua?_webmcp_urldepth=1&_webmcp_module=$1&_webmcp_view=index&$3 [PT,QSA]

  1. actions

RewriteRule ^/lf/([^/\?]+)/([^/\.\?]+)(\?(.*))?$ /cgi-bin/webmcp-wrapper.lua?_webmcp_urldepth=1&_webmcp_module=$1&_webmcp_action=$2&$4 [PT,QSA]

  1. views without numeric id or string ident

RewriteRule ^/lf/([^/\?]+)/([^/\.\?]+)\.([^/\?]+)(\?(.*))?$ /cgi-bin/webmcp-wrapper.lua?_webmcp_urldepth=1&_webmcp_module=$1&_webmcp_view=$2&_webmcp_suffix=$3&$5 [QSA,PT]

  1. views with numeric id or string ident

RewriteRule ^/lf/([^/\?]+)/([^/\?]+)/([^/\.\?]+)\.([^/\?]+)(\?(.*))?$ /cgi-bin/webmcp-wrapper.lua?_webmcp_urldepth=2&_webmcp_module=$1&_webmcp_view=$2&_webmcp_id=$3&_webmcp_suffix=$4&$6 [PT,QSA]


  1. Configure environment for demo application - moved to webmcp's wrapper since cannot be used here since suexec omits these. see http://httpd.apache.org/docs/2.2/env.html
  2. <Location />
  3. SetEnv LANG 'he_IL.UTF-8'
  4. SetEnv WEBMCP_APP_BASEPATH '/opt/liquid_feedback_frontend/'
  5. SetEnv WEBMCP_CONFIG_NAME 'myconfig'
  6. </Location>
        1. End LiquidFeedback settings 2014-08-06 ####
כלים אישיים
גרסאות שפה
מרחבי שם
פעולות
ניווט
תיבת כלים