I just installed mantis to Ubuntu 8.04. In order to get it working with vanilla 8.04 desktop, I had to first install LAMP as follows:
The password to be set for MySQL administration account was requested during LAMP installation. Note that it needs to be set before proceeding to mantis installation, as it is needed by mantis installation script. Now, I was ready to install mantis:
After installation finished, I opened a web browser and went to
http://127.0.0.1/mantis and logged in as "administrator" and "root". I tried to creat a new user for administration, as suggested by mantis installation script. However, mail feature did not work, and thus I could not receive the password required for logging in with the newly created user account.
Then I found out that I can check mantis configuration with web browser at
http://127.0.0.1/mantis/admin/check.php. However, in order to get pass "Permission denied" message when accessing this page, I had to temporarily change /etc/mantis/apache.conf: in the end of the file, I changed the line saying "deny from all" temporarily to "allow from all". Now I could access check.php and test mail function from there.
The error message I received was "Language string failed to load: instantiate". I was confused for awhile, but then learned that this is related to phpmail, and that there seems to be multiple methods in sending mail with phpmail. The default one probably did not work, because the vanilla 8.04 desktop did not have any mail sending features installed. However, one of the other options (method number 2) was to use an external SMTP server. As this is what I preferred to do, I modified /usr/share/mantis/www/config_local.php by adding a few new configuration lines:
Code: Select all
$g_phpMailer_method = 2;
$g_smtp_host = 'YOUR_SMTP_SERVER';
$g_stop_on_errors = ON;
$g_email_receive_own = ON;
Now, the error message changed to the one described in this discussion thread (and that's how I find my way here). The problem seems to be related to PHPMAILER_PATH, which is used in the code but not defined anywhere (at least I could not find it). In order to fix it, I edited /usr/share/mantis/www/core/email_api.php by adding a new line after line 19:
Code: Select all
define( 'PHPMAILER_PATH', 'libphp-phpmailer' . DIRECTORY_SEPARATOR );
After this I tested mail again with check.php, and it worked! No error messages, and the mail dropped to my mail box after a moment.
This should probable be fixed in mantis source code.