forked from Lainports/opnsense-ports
Taken from: https://github.com/freebsd/freebsd-ports.git Commit id: 5070672073b68be364139bc6b3a89100bd17d331
41 lines
1.2 KiB
Text
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
|
|
|