EmptyJay/giftweb
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Repository files navigation
Description: ------------ GiftWeb is an online gift registry system. Items are entered into a wish list, and other users viewing the wish list can mark them as purchased. Web sites can easily be linked to if the item can be purchased online. Users can be members of multiple groups, and can only see the wish lists of other users that are members of the same groups. Quick steps to installation: (Postgres) ---------------------------- 0. Install ADOdb into the giftweb tree. It could also be installed elsewhere on the system, but you'll have to edit the main.inc file accordingly. Get ADOdb here: http://php.weblogs.com/adodb 1. install postgresql 2. Create a database named 'giftweb' using the command 'createdb giftweb'. 2. run createuser to add the user who will be accessing the database. I added 'apache' as that's what my web server runs as under Gentoo Linux. Specify that the user cannot create databases, and that the user cannot add other users. Edit the giftweb.sql to reflect this username. Change the '\connect - apache' line and all 'GRANT ALL on <table> to apache' lines to this username. 3. import the giftweb.sql file into the database defined in main.inc (giftweb) by running "psql giftweb < giftweb.sql" 4. make sure your web server is setup to serve up .php files properly. This could include (but is not limitted to) adding the line: AddType application/x-httpd-php3 .php to your httpd.conf 5. Download the ADOdb Database Abstraction library from http://php.weblogs.com/adodb#downloads and extract it into the giftweb directory. All paths will be referenced relative to the giftweb root dir. I am currently developing giftweb against ADOdb 3.00, your milage may vary with different versions. Quick steps to installation: (MySQL) ---------------------------- 1. install MySQL 2. Create a database named 'giftweb' using the command mysqladmin -u root -p create giftweb 2. run createuser to add the user who will be accessing the database. I added 'apache' as that's what my web server runs as under Gentoo Linux. You can use make a new user and there doesn't have to be an entry in the password file for this user. Make sure you set a password and also include the password in main.inc 3. import the giftweb-mysql.sql file into the database defined in main.inc (giftweb) by running mysql -u <your user> -p giftweb < giftweb-mysql.sql" 4. make sure your web server is setup to serve up .php files properly. This could include (but is not limitted to) adding the line: AddType application/x-httpd-php3 .php to your httpd.conf 5. Download the ADOdb Database Abstraction library from http://php.weblogs.com/adodb#downloads and extract it into the giftweb directory. All paths will be referenced relative to the giftweb root dir. I am currently developing giftweb against ADOdb 3.00, your milage may vary with different versions. 6. Edit main.inc and change dbtype to 'mysql' Notes: ------ The giftweb.sql file adds a default site admin user (UID 101) with a login name of 'admin' and password of 'password'. Please login as admin and change the password ASAP. I also suggest you also set the first and last names. giftweb.sql also creates a 'Main Group' group (GID 101). The admin user is a member if the group, and is the group admin.