View Issue Details

IDProjectCategoryView StatusLast Update
0019957mantisbtbugtrackerpublic2015-08-09 09:04
ReporterMattMiddleton Assigned Toatrol  
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionno change required 
Product Version1.2.19 
Summary0019957: Extra layer in physical path
Description

Environment: Windows 2008 server, with MySQL 5.6.25, PHP 5.6.10, and IIS 7.5

The built-in images (such as the logo) appear broken. Upon navigating to the image's path, a 404 error is returned. The physical path shows up as C:\inetpub\wwwroot\mantis\mantis\images\mantis_logo.png. The actual path is C:\inetpub\wwwroot\mantis\images\mantis_logo.png. This issue also occurs if I try to navigate to the root directory (http://localhost/mantis), rather than a specific page.

TagsNo tags attached.
Attached Files
config-inc.php (3,509 bytes)   
<?php
# MantisBT - a php based bugtracking system

# MantisBT is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 2 of the License, or
# (at your option) any later version.
#
# MantisBT is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with MantisBT.  If not, see <http://www.gnu.org/licenses/>.

/**
 * @package MantisBT
 * @copyright Copyright (C) 2000 - 2002  Kenzaburo Ito - kenito@300baud.org
 * @copyright Copyright (C) 2002 - 2014  MantisBT Team - mantisbt-dev@lists.sourceforge.net
 * @link http://www.mantisbt.org
 */

# This sample file contains the essential files that you MUST
# configure to your specific settings.  You may override settings
# from config_defaults_inc.php by uncommenting the config option
# and setting its value in this file.

# Rename this file to config_inc.php after configuration.

# In general the value OFF means the feature is disabled and ON means the
# feature is enabled.  Any other cases will have an explanation.

# Look in http://www.mantisbt.org/docs/ or config_defaults_inc.php for more
# detailed comments.

# --- Database Configuration ---
$g_hostname = 'localhost';
$g_db_type = 'mysql';
$g_database_name = 'mantis';

# --- Anonymous Access / Signup ---
$g_allow_signup				= OFF;
$g_allow_anonymous_login	= OFF;
$g_anonymous_account		= '';

# --- Email Configuration ---
$g_phpMailer_method		= PHPMAILER_METHOD_MAIL; # or PHPMAILER_METHOD_SMTP, PHPMAILER_METHOD_SENDMAIL
$g_smtp_host			= 'localhost';			# used with PHPMAILER_METHOD_SMTP
$g_smtp_username		= '';					# used with PHPMAILER_METHOD_SMTP
$g_smtp_password		= '';					# used with PHPMAILER_METHOD_SMTP
$g_administrator_email  = 'administrator@example.com';
$g_webmaster_email      = 'webmaster@example.com';
$g_from_email           = 'noreply@example.com';	# the "From: " field in emails
$g_return_path_email    = 'admin@example.com';	# the return address for bounced mail
# $g_from_name			= 'Mantis Bug Tracker';
# $g_email_receive_own	= OFF;
# $g_email_send_using_cronjob = OFF;

# --- Attachments / File Uploads ---
$g_allow_file_upload	= ON;
$g_file_upload_method	= DATABASE; # or DISK
# $g_absolute_path_default_upload_folder = ''; # used with DISK, must contain trailing \ or /.
$g_max_file_size		= 2097152;	# in bytes
$g_preview_attachments_inline_max_size = 256 * 1024;
# $g_allowed_files		= '';		# extensions comma separated, e.g. 'php,html,java,exe,pl'
# $g_disallowed_files		= '';		# extensions comma separated

# --- Branding ---
$g_window_title			= 'MantisBT';
#$g_logo_image			= 'images/mantis_logo.png';
#$g_favicon_image		= 'images/favicon.ico';
#$g_icon_path			= 'images/';
# --- Real names ---
# $g_show_realname = OFF;
# $g_show_user_realname_threshold = NOBODY;	# Set to access level (e.g. VIEWER, REPORTER, DEVELOPER, MANAGER, etc)

# --- Others ---
# $g_default_home_page = 'my_view_page.php';	# Set to name of page to go to after login
$g_default_timezone		= 'UTC';	
$g_path 				= 'http://localhost/mantis';
$g_short_path			= 'mantis';
$g_absolute_path 		= 'C:/inetpub/wwwroot/mantis/';
$g_send_reset_password	= OFF;
config-inc.php (3,509 bytes)   

Activities

atrol

atrol

2015-07-22 06:38

developer   ~0051112

Is there a special reason that you set
$g_path = 'http://localhost/mantis';
$g_short_path = 'mantis';
$g_absolute_path = 'C:/inetpub/wwwroot/mantis/';

Is there any problem if you remove these 3 configuration options?

MattMiddleton

MattMiddleton

2015-07-22 07:36

reporter   ~0051113

I set these to try and address the problem. Removing them does not seem to have any effect. I still end up with an extra "mantis" in my physical path.

atrol

atrol

2015-07-24 03:42

developer   ~0051126

MattMiddleton,

I was not able to reproduce your problem with a fresh install of MantisBT release 1.2.19.

I used Windows 8.1, IIS that comes with OS, used Windows Webplattform Installer to install PHP 5.6.0 and MySQL 5.5.

This is not a bug or feature request for MantisBT (you are asking for help on how to configure the system). I am therefore resolving this issue as "no change required".

Please use the forums, the mantisbt-help mailing list or IRC to get support on customizing and using MantisBT (refer to http://www.mantisbt.org/support.php for links and further details).

MattMiddleton

MattMiddleton

2015-07-24 08:53

reporter   ~0051129

I posted this issue to the support forum 3 weeks ago, with zero response.

https://www.mantisbt.org/forums/viewtopic.php?f=2&amp;t=23229

Further, I would recommend testing again with the version of PHP I specified. Based on the troubleshooting I've attempted so far, I suspect the issue relates somehow to PHP.

atrol

atrol

2015-07-24 16:58

developer   ~0051132

Feel free to reopen the issue and to provide exact step by step instructions how to reproduce the issues from scratch, which means starting with a fresh Windows (8.1 preferred, as I don't have the time to setup a Windows 2008 Server)

As a side note: MantisBT 1.2 has been released early in 2010. At this time PHP 5.3.1 was the latest available PHP version.
Our automated tests are running on 5.3, 5.4 and 5.5.
I recommend to use 5.5 instead of 5.6

MattMiddleton

MattMiddleton

2015-07-29 09:42

reporter   ~0051146

As a heads-up, I gave up trying to get IIS to play nice with Mantis. I was able to get it working very quickly, by using the latest version of XAMPP, which includes PHP version 5.6.11, and MySQL 5.6.25.

atrol

atrol

2015-07-29 10:15

developer   ~0051147

I was astonished that I was able to setup Mantis with IIS quite easy (never did it before)
But I am quite sure that using Apache instead of IIS is a good decision, at least when using PHP and Mantis.

MattMiddleton, thanks for the feedback.