From 032e932d351e46b5a28acac325900025442996e1 Mon Sep 17 00:00:00 2001 From: "Bradley M. Kuhn" Date: Wed, 18 Dec 2013 15:42:29 -0500 Subject: [PATCH] First two steps of setting up one's own instance of just the voting part. --- README | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/README b/README index c036db3..65a3084 100644 --- a/README +++ b/README @@ -1,3 +1,22 @@ -This modules holds the web pages at http://foundation.gnome.org. +Setting up an election: + +0. vote/include/election-sql.php expects a secret config file that exists + only on the server and is included as PHP code. It's hard coded currently + to: /home/admin/secret/anonvoting currently. + + You at least need to set these variables in it: + $mysql_host + $mysql + $mysql_password + $mysql_db + +1. When I deploy, I create an account for the election, as the mysql root user: + mysql -u root -p + Password: + mysql> CREATE USER 'someusername' identified by 'somepassword'; + mysql> CREATE DATABASE somedbname; + + + + -Please read the HACKING file before making any changes.