Changes between Version 4 and Version 5 of internet_rights_workshop/setup
- Timestamp:
- Jan 18, 2009, 8:55:00 PM (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
internet_rights_workshop/setup
v4 v5 4 4 The [wiki:internet_rights_workshop collaborative democracy workshop] uses a web application to facilitate its process. That web application is under regular development, and we welcome contributions and collaboration from interested developers. This page describes how to set up a development environment. It often assumes you're running a debian-derived variant of the GNU/Linux operating system. If you have another development environment you'd like to see documented, feel free to add instructions for that environment here. 5 5 6 == setting up the dependencies == 6 == Debian GNU/Linux == 7 8 === setting up the dependencies === 7 9 8 10 Make sure you have installed subversion, php5, sqlite, and a web server of your choice (most folks use apache, but there are lots of other ways to go). On a debian-derived system, you could do: … … 12 14 }}} 13 15 14 == check out a working copy of the software==16 === check out a working copy of the software === 15 17 16 18 This example puts the software in `/srv/ir`, but you can put it wherever makes sense to you (remember that the web server should be able to get to it). … … 24 26 (note that the subversion repository's TLS certificate is currently signed by the [wiki:mfpl_certificate_authority May First/People Link certificate authority], and has an SHA1 fingerprint of `1D:88:9F:17:15:A1:B1:B6:11:FD:A5:67:08:D9:89:68:BD:C8:D0:DD`) 25 27 26 == setting up a name-based virtual host==28 === setting up a name-based virtual host === 27 29 28 30 pick a virtual host name where this software will run, and bind it to a local loopback IP address that your web server is listening on. I've chosen the name `ir.test`, and i'm binding to 127.0.2.1: … … 79 81 }}} 80 82 81 == Create the sqlite database==83 === Create the sqlite database === 82 84 83 85 The sqlite database needs to be in a directory writable by the web server. Here's a way to do that with debian: … … 89 91 }}} 90 92 91 == Setting up the configuration==93 === Setting up the configuration === 92 94 93 95 Now you need to configure the web application: … … 99 101 Edit the contents of `/srv/ir/conf.php` to point to the correct source directory, and the actual database you've set up. You'll need to set an end time for your workshop, and choose distinct group and monkey passwords for each room you've designated. 100 102 101 == Testing it out==103 === Testing it out === 102 104 103 105 Point your web browser at http://ir.test/ and run with it! 104 106 105 == Following the development==107 === Following the development === 106 108 107 109 As changes get pushed into the repository, you'll want to keep up with them. You can bring your local working copy up-to-date with: … … 111 113 }}} 112 114 113 == Committing changes==115 === Committing changes === 114 116 115 117 The above setup gives you the ability to follow the course of development and to make changes to your working copy. If you've made changes that you think should be part of the main development branch, you'll need a commit access to the svn repository. If you don't have that access already, [/newticket open a ticket] requesting access to the MF/PL SVN repo. You'll need an SSH key for this. Once you've been granted access, switch your local working copy over to access the repository via ssh instead of https: … … 127 129 }}} 128 130 svn will pop up an editor for you to write notes about the changes you're making. This helps everyone else (and yourself, two months from now!) understand the intent behind the changes. 131 132 == Microsoft Windows == 133 134 This is a start for the Windows documentation. The first step is to download [http://www.wampserver.com/ Wamp Server] (which provides Apache, PHP, and MySQL). You won't actually need MySQL, however, I still think this package is probably the easiest was to get Apache and PHP and it should come with Sqlite support built-in. 135 136 To use subversion, you can download [http://tortoisesvn.tigris.org/ Tortoise SVN]. 137 138 == Macintosh == 139 140 This is a start for the Macintosh documentation. The first step is to download [http://www.mamp.info Mamp Server] (which provides Apache, PHP, and MySQL). You won't actually need MySQL, however, I still think this package is probably the easiest was to get Apache and PHP and it should come with Sqlite support built-in.