Unzip gz file to a known folder on your PC. Use a real FTP program like WS-FTP or CuteFTP (free) to transfer the folder and all subfolders and files to a folder on the AS/400. We suggest you place the contents in the default http documents folder in the root file system of the IFS:

/www/zendcore/htdocs/xxx

where xxx is either the default folder name mantis-1.0.6 (ugly to key in) or a more convenient name like mantis or bugtracker or issues. For this example we will use the folder mm standing for Mantis on MySQL.

Start the install process by using your browser to run the index.php in the root folder of the Mantis software:

http://your_system_ip_or_name:89/mm/index.php

Mantis will automatically detect that it is not yet installed, as this is the same file that is used to run the software also. Provide the userIDs and passwords you configured for MySQL in the previous steps.

Once that is complete, you should modify the default configuration by editing the config_inc.php file in the main folder of your Mantis installation. The Mantis system uses two configuration files. The default file config_defaults_inc.php is not to be modified. All modifications to the configuration go into config_inc.php, which is read AFTER config_defaults_inc.php, and therefore overrides it. Following are some setting that should be set in config_inc.php, most of them will need to be added:

[[DB2i5|Using native i5 DB2/400]]

A. install.php user error

NOTE: /www/zendcore/htdocs/md/config_inc.php should NOT exist prior to running install.php.

/www/zendcore/htdocs/md/admin/install.php will not work. When run with the following parms (fields only in order):

db2 (experimental)
## system database name from DSPRDBDIRE AS/400 command “Relational database” field
S1071FDD
PHP_IRA
p0okmju7yg
## I tested with incrementing numbers for xxx, got up to 024, use a new one each time you run install.php
MANTISxxx
## BOTH pw's are required, you cannot leave user blank
PHP_IRA
p0okmju7yg
## box below is unchecked
[ ] Print SQL…
## then click
[Install…]

The LIBRARY *IS* being created with the database collection and journal, but the tables and indexes are not. The database is created by the admin but the tables are made by the user. The diff in the code for the two operations is:

Makes no sense as the [] parms are correct. This does NOT appear to be an MD5 issue at all. (pw masked with 123123123) I removed the @ sign from the connect() and got no additional error info. In fact, the parens on the output screen are empty.

B. MD5 missing

Enabled mcrypt/mhash in the PHP extensions, and bounced. That did NOT eliminate the MD5 warning.

"Checking for MD5 Crypt() support POSSIBLE PROBLEM - password security may be lower than expected".

I had this with the MySQL install also!

C. db2_tables error

Install.php ERROR:
SYSTEM WARNING: db2_tables() expects parameter 1 to be resource, boolean given

comes from FILE:
/www/zendcore/htdocs/md/core/adodb/drivers/adodb-db2.inc.php and is complaining that the value of this→connection is null.

D. Creating SQL database manually

1. Run the install.php to generate the SQL by checking the box. Copy and paste into a PC file editor.

2. Removed formatting spaces to compact, as the SQL parser on the AS/400 has a length limit. I try to keep the lines below 88 bytes.

3. Split any lines that exceeded 88. There are just a few.

4. Add the required qualifier to tell DB2/400 WHERE to put the tables. Prefix all table and index names with xxxx/ where xxxx is the library name that you designate in the “Database name” field in the install.php input screen. “CREATE TABLE mantis_user_table” becomes “CREATE TABLE mantis011/mantis_user_table”, for instance.