2 Deployment instructions for my.gpodder.org
3 ------------------------------------------
8 * MySQL Server (>= 5.0)
17 It's recommended that you use the development version of the following
18 libraries, as we're living on the bleeding edge here:
21 svn co http://code.djangoproject.com/svn/django/trunk/ django
24 hg clone http://bitbucket.org/ubernostrum/django-registration/
27 git clone git://github.com/toastdriven/django-haystack.git
30 hg clone http://bitbucket.org/mchaput/whoosh/
32 You can set up the repositories in this source tree by creating a
33 "upstream" directory in which you checkout the above code bases.
35 Then, you create a "lib" folder and symlink the packages from the
36 "upstream" directory there:
39 ln -s ../upstream/django/django
40 ln -s ../upstream/whoosh/src/whoosh
41 ln -s ../upstream/django-haystack/haystack
42 ln -s ../upstream/django-registration/registration
45 1. Creating the database
47 In MySQL, do the following (the SUPER grant is needed for
48 triggers to work in MySQL 5.0):
50 CREATE DATABASE mygpo;
51 GRANT ALL ON mygpo.* TO mygpo@localhost WITH GRANT OPTION;
52 GRANT SUPER ON *.* TO mygpo@localhost;
53 GRANT ALL ON mygpo.* TO mygpo@'%' WITH GRANT OPTION;
54 GRANT SUPER ON *.* TO mygpo@'%';
57 Make sure that MySQL listens only on localhost, or if in
58 doubt, assign a password to the "mygpo" user!
60 2. Initialize the database
62 Run in the mygpo/ subdirectory (possibly after setting the
63 DB parameters in mygpo/settings.py):
65 python manage.py syncdb
67 When asked to create a superuser, you can say YES.
69 Now, run every SQL-Script in the install/ subdirectory, starting
70 with "create.sql" and working your way all the way through the
71 update scripts (these are split because we are doing incremental
72 schema updates on the production server).
74 If you are really doing an initial installation, you can also use
75 the "install.sh" script which runs all scripts on the local MySQL
76 server in the correct order. You should not use this script to
77 upgrade the database, as data loss may occur. You have been warned.
80 3. Setup the web server using lighttpd
82 There is a mygpo.lighttpd.conf file shipped with the source. Please
83 customize it to your needs, and then include it from your lighttpd
84 main configuration file, for example like this:
86 include "/srv/mygpo/mygpo.lighttpd.conf"
88 4. Enable lighttpd modules
90 The modules you need to enable are: rewrite, fastcgi. On Debian,
91 you can enable these using the "lighty-enable-mod" command:
93 lighty-enable-mod rewrite fastcgi
99 /etc/init.d/lighttpd restart