-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathREADME
109 lines (82 loc) · 3.9 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
Lightspark Application Database
#------------------------------------------------------------------------#
Authors:
Timon Van Overveldt <[email protected]>
This application is based on the original work on WineHQ's Application Database.
The main differences are accomodating limited features available in
SourceForge's Project Web:
- no sending of mail (see incl/queuemail.php)
- no memcached (see incl/session_db.php)
Besides these changes the branding is different and some features are omitted/replaced.
#==========================ORIGINAL README===============================#
WineHQ Application Database
#------------------------------------------------------------------------#
Authors:
Jeremy Newman <[email protected]>
Charles Leop <[email protected]>
Contributors:
Paul van Schayck <[email protected]>
Chris Morgan <[email protected]>
Tony Lambregts <[email protected]>
Jonathan Ernst <[email protected]>
To install locally for testing/hacking:
#------------------------------------------------------------------------#
# Symlink from /var/www to the appdb directory
# Copy include/config.php.sample to include/config.php
# Edit include/config.php as you see fit, the default name of the database
used in the table creation step below is "apidb", you'll have to modify
these files if you change this in config.php
# NOTE: You must update the APPDB_ROOT entry to be YOUR url to the application database
If this the APPDB_ROOT isn't correct your urls will point to the wrong pages.
# NOTE: if you've changed the name of the database by changing the define of
'APPS_DB' in include/config.php you'll have to modify the 'create database' and 'use'
entries in pretty much every file in the /tables/ directory. The recommendation is to
leave the default value of APPS_DB to keep things simple
# 'cd tables', run './create_tables' to create the database tables
# Look in include/config.php at the 'APPS_DBUSER' and 'APPS_DBPASS' defines.
Ensure that this user and password exist in your mysql users list and that this user
has been granted 'SELECT', 'INSERT', 'UPDATE' and 'DELETE' privileges on the database
defined by the value of 'APPS_DB' in include/config.php
# Try to open up localhost/appdb, if you get a directory listing
Edit your /etc/apache/httpd.conf "DirectoryIndex" to include index.php
so apache will open index.php after not finding index.html/index.htm etc
# Also ensure these options in /etc/apache/php.ini:
register_globals 0
short_open_tag 0
register_long_arrays 0
magic_quotes_gpc 0
Or ensure your appdb directory has AllowOverride' set to 'All' inside
httpd.conf to let .htaccess set these settings.
# An AppDB admin user has been automatically created while running
the create_tables script
email: admin@localhost
password: testing
You should change the password as soon as possible!
#------------------------------------------------------------------------#
You can either set up a real bugzilla database or a fake one
#
# cd tables, run ./create_bugzilla_tables to create the fake bugzilla tables
#------------------------------------------------------------------------#
# or installing a real bugzilla database (hope this helps)
#
# download buzilla (password for cvs is cvs)
cd /var/www/html
export CVSROOT=:pserver:[email protected]:/home/wine
cvs login
cvs -z 0 checkout bugzilla
# change directory to bugzilla and change the group ownership to apache.
cd bugzilla
chgrp -R apache .
chmod -R g+rX .
# change to su and run ./checksetup.pl and fix up what it finds wrong.
# this may take several runs
su
./checksetup.pl
# in the /etc/httpd/conf/hppt.conf file find "AddHandler cgi-script .cgi" and add the following.
<Directory "/var/www/html/bugzilla">
Options ExecCGI
AllowOverride Limit
Order allow,deny
Allow from all
</Directory>
# edit local config as necessary to allow access.