2004-03-15 16:22:00 +00:00
|
|
|
WineHQ Application Database
|
2004-12-13 03:50:11 +00:00
|
|
|
#------------------------------------------------------------------------#
|
2004-03-15 16:22:00 +00:00
|
|
|
Authors:
|
|
|
|
|
Jeremy Newman <jnewman@codeweavers.com>
|
|
|
|
|
Charles Leop <charles@codeweavers.com>
|
2004-03-25 16:29:47 +00:00
|
|
|
|
|
|
|
|
Contributors:
|
2004-12-13 03:50:11 +00:00
|
|
|
Paul van Schayck <polleke@gmail.com>
|
2004-03-25 16:29:47 +00:00
|
|
|
Chris Morgan <cmorgan@alum.wpi.edu>
|
2004-12-13 03:50:11 +00:00
|
|
|
Tony Lambregts <tony_lambregts@telusplanet.net>
|
|
|
|
|
Jonathan Ernst <Jonathan@ErnstFamily.ch>
|
2004-03-24 15:51:49 +00:00
|
|
|
|
|
|
|
|
To install locally for testing/hacking:
|
2004-12-13 03:50:11 +00:00
|
|
|
#------------------------------------------------------------------------#
|
2004-03-25 16:29:47 +00:00
|
|
|
|
2004-12-13 03:50:11 +00:00
|
|
|
# Symlink from /var/www to the appdb directory
|
2004-03-25 16:29:47 +00:00
|
|
|
|
2004-12-13 03:50:11 +00:00
|
|
|
# Copy include/config.php.sample to include/config.php
|
2004-03-25 16:29:47 +00:00
|
|
|
|
2004-12-13 03:50:11 +00:00
|
|
|
# Edit include/config.php as you see fit, the default name of the database
|
2004-03-24 15:51:49 +00:00
|
|
|
used in the table creation step below is "apidb", you'll have to modify
|
|
|
|
|
these files if you change this in config.php
|
2007-05-26 16:32:45 +00:00
|
|
|
|
|
|
|
|
# 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.
|
2004-03-25 16:29:47 +00:00
|
|
|
|
2007-05-26 16:32:45 +00:00
|
|
|
# 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
|
2004-03-25 16:29:47 +00:00
|
|
|
|
2007-01-18 02:25:14 +00:00
|
|
|
# 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
|
|
|
|
|
|
2004-12-13 03:50:11 +00:00
|
|
|
# Try to open up localhost/appdb, if you get a directory listing
|
2004-03-24 15:51:49 +00:00
|
|
|
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
|
2004-03-25 16:29:47 +00:00
|
|
|
|
2005-01-10 22:17:01 +00:00
|
|
|
# Also ensure these options in /etc/apache/php.ini:
|
|
|
|
|
register_globals 0
|
|
|
|
|
short_open_tag 0
|
|
|
|
|
register_long_arrays 0
|
|
|
|
|
magic_quotes_gpc 0
|
2006-12-31 19:39:41 +00:00
|
|
|
Or ensure your appdb directory has AllowOverride' set to 'All' inside
|
2005-01-10 22:17:01 +00:00
|
|
|
httpd.conf to let .htaccess set these settings.
|
|
|
|
|
|
2004-12-25 19:50:57 +00:00
|
|
|
# An AppDB admin user has been automatically created while running
|
|
|
|
|
the create_tables script
|
2005-01-10 22:54:04 +00:00
|
|
|
email: admin@localhost
|
2004-12-25 19:50:57 +00:00
|
|
|
password: testing
|
|
|
|
|
You should change the password as soon as possible!
|
|
|
|
|
|
2004-12-13 03:50:11 +00:00
|
|
|
#------------------------------------------------------------------------#
|
2006-12-31 19:39:41 +00:00
|
|
|
You can either set up a real bugzilla database or a fake one
|
|
|
|
|
#
|
2004-12-13 03:50:11 +00:00
|
|
|
# cd tables, run ./create_bugzilla_tables to create the fake bugzilla tables
|
|
|
|
|
#------------------------------------------------------------------------#
|
|
|
|
|
# or installing a real bugzilla database (hope this helps)
|
2006-12-31 19:39:41 +00:00
|
|
|
#
|
2004-12-13 03:50:11 +00:00
|
|
|
# download buzilla (password for cvs is cvs)
|
|
|
|
|
|
|
|
|
|
cd /var/www/html
|
|
|
|
|
export CVSROOT=:pserver:cvs@cvs.winehq.org:/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>
|
|
|
|
|
|
2005-01-10 22:15:44 +00:00
|
|
|
# edit local config as necessary to allow access.
|