Add appdb/tables/create_tables script to run the sql necessary to create and
setup appdb tables. Add app_category.sql and session_list.sql from Jeremy, without these the database wasn't handling logins correctly and had no categories. README now has some instructions on how to setup a local appdb. Modified config.php.sample to point to apidb to match what is in the sql in appdb/tables. Sql for table creation to use "if exists" to prevent data base errors on trying to drop tables that don't exist.
This commit is contained in:
committed by
Jeremy Newman
parent
8eb8482819
commit
89e7284f34
13
README
13
README
@@ -3,3 +3,16 @@ WineHQ Application Database
|
||||
Authors:
|
||||
Jeremy Newman <jnewman@codeweavers.com>
|
||||
Charles Leop <charles@codeweavers.com>
|
||||
|
||||
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
|
||||
- cd tables, run ./create_tables to create the database tables
|
||||
- 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
|
||||
- Check your /etc/php/php.ini to ensure that 'register_globals = On' as the
|
||||
appdb uses globals and won't work correctly without this
|
||||
|
||||
Reference in New Issue
Block a user