freebsd-ports/www/ach/files/pkg-message.in
Greg Larkin bb0b03257d A software companion to a 30+ year-old CIA research methodology,
Open Source Analysis of Competing Hypotheses (ACH) will help you
think objectively and logically about overwhelming amounts of data
and hypotheses. It can also guide research teams toward more
productive discussions by identifying the exact points of contention.

WWW: http://www.competinghypotheses.org/

PR:		ports/151225
Submitted by:	Carlo Strub <c-s at c-s.li>
2010-11-04 21:08:20 +00:00

41 lines
1.2 KiB
Text

You now need to create the DB where ACH is going to live.
MySQL:
mysqladmin -u dba_user -p create ach
mysql -u dba_user -p
GRANT ALL PRIVILEGES ON ach.* TO ach@localhost IDENTIFIED BY 'passwd';
mysql -u ach -p passwd ach < %%WWWDIR%%/db.sql
In %%WWWDIR%%/code/common_db.php, add your database connection
details:
$dbhost = '127.0.0.1';
$dbusername = 'ach';
$dbuserpassword = 'passwd';
$default_dbname = 'ach';
At the top of %%WWWDIR%%/parts/includes.php, edit the following
lines to reflect your environment, replacing SITEURL with your own domain
and application URL. Do not include a trailing slash (eg. domain.com
instead of domain.com/) in the PHP base_URL variable.
<base href="http://SITEURL/">
<?php $base_URL="http://SITEURL";
$email_domain="SITEURL"?>
You also need to add appropriate configuration directives to your webserver.
A typical configuration might read:
Alias /ach "%%WWWDIR%%"
<Directory "%%WWWDIR%%">
Options Indexes FollowSymlinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
Finally, change the RewriteBase URL in %%WWWDIR%%/.htaccess so it
matches the URL in the Alias directive above, e.g.:
RewriteBase /ach