]>
Commit | Line | Data |
---|---|---|
a6ce62a7 SZ |
1 | Step-by-step setup instructions for PLD |
2 | ---------------------------------------------------- | |
3 | 1. Create a new table: | |
4 | ||
5 | $ echo "CREATE DATABASE sourceforge;" | mysql -p -u mysql mysql | |
6 | ||
7 | 2. Set up an mysql account | |
8 | ||
9 | $ echo "GRANT ALL PRIVILEGES ON sourceforge.* TO sourceforge@localhost IDENTIFIED BY 'mypass' WITH GRANT OPTION;" | mysql -p -u mysql mysql | |
10 | ||
11 | 3. Add /home/httpd/SourceForge/db/SourceForge.sql to your database: | |
12 | ||
13 | $ mysql -p -u sourceforge sourceforge < /home/httpd/SourceForge/db/SourceForge.sql | |
14 | ||
15 | 4. Set up DocumentRoot (for main server, or virtual host), in httpd.conf | |
16 | (or mod_vhost_alias.conf). DocumentRoot should point to | |
17 | /home/httpd/SourceForge/www. Remember about setting both unsecure and secure | |
902d3154 SZ |
18 | connections. You can find an example sourceforge.conf file in |
19 | documentation directory. | |
a6ce62a7 SZ |
20 | |
21 | 5. Edit php.ini and add /home/httpd/SourceForge/www/include to | |
22 | include_path variable | |
23 | ||
24 | 6. Edit /etc/SourceForge/local.inc to suit server configuration. | |
46ac6237 SZ |
25 | |
26 | 7. Log in, and add an 'admin' account via SSL | |
27 | ||
28 | 8. Execute following SQL commands: | |
29 | ||
30 | $ mysql -p -u sourceforge sourceforge << EOF | |
31 | > update user set user_id=2 where user_name='admin'; | |
32 | > insert into user_group (user_id, group_id, admin_flags) values (2, 1, 'A'); | |
33 | > insert into bug_category values (100, 100, 'None'); | |
34 | > insert into bug_group values (100, 100, 'None'); | |
35 | > EOF | |
36 | ||
37 | 9. Enjoy... |