(→Installation) |
|||
Line 22: | Line 22: | ||
$default_dbname = 'DBNAME';</pre> | $default_dbname = 'DBNAME';</pre> | ||
- | 3: Create your database and run the | + | 3: Create your database and run the [http://github.com/Burton/Analysis-of-Competing-Hypotheses/blob/master/db.sql MySQL script] to create the tables. |
====Server-level settings==== | ====Server-level settings==== |
Open Source ACH was developed on a Linux machine with an Apache server with PHP 5.2 and MySQL 5; it might work with earlier versions but has not been tested on them.
It has been successfully installed, with modifications, on a Windows server.
1: At the top of parts/includes.php, edit the following lines to reflect your environment, replacing SITEURL with your own domain. Do not include trailing slashes (eg. domain.com instead of domain.com/).
<base href="http://SITEURL"> <?php $base_URL="http://SITEURL"; $email_domain="SITEURL"?>
2: In code/common_db.php, add your database connection details:
$dbhost = 'HOST'; $dbusername = 'DBUSER'; $dbuserpassword = 'DBUSERPASSWORD'; $default_dbname = 'DBNAME';
3: Create your database and run the MySQL script to create the tables.
If pages do not load correctly after completing the above, the problem may be with your server settings. If possible, change your Apache vhost configuration file by altering the directory-level settings to the following (or add them if none exist):
<Directory /path/to/remote/root/> Options Indexes FollowSymLinks AllowOverride All Order allow,deny allow from all </Directory>
PHP should have the short_opentag setting turned on. You can verify this either with a phpinfo page, or by editing your php.ini file.