Changes between Initial Version and Version 1 of faq/setup-basebuilder


Ignore:
Timestamp:
Aug 23, 2007, 2:05:59 PM (18 years ago)
Author:
Jamie McClelland
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • faq/setup-basebuilder

    v1 v1  
     1== Setup Basebuilder ==
     2
     3Basebuilder is a database program well-suited for organization doing outreach and tracking donations. More information about the program is available [http://basebuilder.sf.net here].
     4
     5May First/People Link maintains a central installation of Basebuilder, so if you'd like to use the program, you can use our central installation and thereby will get all program updates automatically. The steps in this tutorial require the use of a secure shell program and some familiarity with Linux command lines.
     6
     7To get yourself started using our central basebuilder code, follow the steps below. All items in CAPS should be replaced with the values for your particular site.
     8
     9 * Request a database from May First/People Link. You can do that by submitting a [ticket:newticket ticket]. You should receive the name of the database, the database username, and the database password.
     10
     11 *  ssh into your server.
     12
     13 * Change into your web directory:
     14
     15{{{
     16cd /home/members/MEMBER-SHORT-NAME/sites/DOMAIN-NAME/
     17cd web
     18}}}
     19
     20 * Copy the basebuilder web directory to your web directory with the name
     21"db":
     22{{{
     23cp -r /usr/local/share/basebuilder/web db
     24}}}
     25
     26 * Edit the index.php file. Change the path of the config file to read:
     27
     28{{{
     29/home/members/MEMBER-SHORT-NAME/sites/DOMAIN-NAME/include/config.inc.php
     30}}}
     31
     32 * Copy the default config file to your include directory:
     33
     34{{{
     35cp /usr/local/share/basebuilder/docs/config.inc.php.sample
     36/home/members/[member-name]/sites/[domain-name]/include/config.inc.php
     37}}}
     38
     39 * Edit the config file. Change:
     40{{{
     41$mj_config['path'] = '/usr/local/share/basebuilder';
     42$mj_config['databases_path'] =
     43'/home/members/[member-name]/sites/[domain-name]/include/databases';
     44$mj_config['db_admin_url'] = 'https://[your-primary-host].mayfirst.org/phpmyadmin';
     45$mj_config['db_names']['NAME-OF-YOUR-DB'] = '[Friendly name of your organization]';
     46$mj_config['default_db'] = 'NAME-OF-YOUR-DB';
     47}}}
     48
     49 * Create the databases directory:
     50{{{
     51mkdir /home/members/MEMBER-SHORT-NAME/sites/DOMAIN-NAME/include/databases
     52}}}
     53 * Temporarily change the permissions, so the web server can write to it (for
     54layout wizards):
     55
     56{{{
     57chmod 777 /home/members/MEMBER-SHORT-NAME/sites/DOMAIN-NAME/include/databases
     58}}}
     59
     60 Don't forget to change it back when you are done with the Layouts Wizard!
     61{{{
     62chmod 755 /home/members/MEMBER-SHORT-NAME/sites/DOMAIN-NAME/include/databases
     63}}}
     64 * Go to:
     65
     66 !http://DOMAIN-NAME/db
     67
     68to complete the setup.