View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update | 
|---|---|---|---|---|---|
| 0033821 | mantisbt | installation | public | 2024-02-21 05:17 | 2025-01-29 11:15 | 
| Reporter | prashantt | Assigned To | atrol | ||
| Priority | high | Severity | major | Reproducibility | always | 
| Status | closed | Resolution | no change required | ||
| Product Version | 2.26.1 | ||||
| Summary | 0033821: Mantis 2.26.1 : Installation check throwing BAD Web page at 'http://{{URL}}/' does not appear to be a MantisBT site. | ||||
| Description | Hello, I was in the process of manual installation of Mantis BT version 2.26.1 . I followed the following steps i.e renamed config_inc.php.sample to config_inc.php, then filled in db details , Email Configuration, Branding and other details . Then hit the installation URL i.e : http://{{URL}}/{{TO}}/{{MANTIS-FOLDER}}/admin/install.php and hit install button However I do get the following error under 'Checking URL to installation' i.e : BAD What could be causing the issue ? . I checked under URL to your installation as well and the correct URL is shown. I have attached the error screenshot and config_inc.php file for your kind reference . Please check. I have masked details in config_inc.php file for security reasons. | ||||
| Steps To Reproduce | 
 | ||||
| Tags | No tags attached. | ||||
| Attached Files |  config_inc.php (3,576 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 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_username   = '{{DB_USER}}';
$g_db_password   = '{{DB_PASSWORD}}';
$g_database_name = '{{DB_NAME}}';
$g_db_type       = 'mysqli';
# --- Security ---
$g_crypto_master_salt = '{{SALT}}';	#  Random string of at least 16 chars, unique to the installation
# --- Anonymous Access / Signup ---
$g_allow_signup				= ON;
$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_webmaster_email      = '{{EMAIL}}';
$g_from_email           = '{{EMAIL}}';	# the "From: " field in emails
$g_return_path_email    = '{{EMAIL}}';	# the return address for bounced mail
$g_from_name			= '{{SITE_NAME}}';
# $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		= 5000000;	# 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			= '{{SITE_NAME}}';
# $g_logo_image			= 'images/mantis_logo.png';
# $g_favicon_image		= 'images/favicon.ico';
# --- 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_db_table_prefix	='prema_';
$g_db_table_plugin_prefix   = 'mantis';
$g_db_table_suffix          = 'mantis';
$g_default_timezone       = 'America/New_York';
$g_cookie_prefix		= '{{COOKIE_PREFIX}}';
$g_default_language = 'english'; | ||||
| related to | 0035261 | closed | dregad | Checking URL to installation: BAD Web page at 'https://www.foo.net/bar/mantisbt/' does not appear to be a MantisBT site. | 
| 
 Try again without this step. Do not create config_inc.php. Just follow the steps described  in the Admin Guide | |
| @dregad maybe we should remove  | |
| Hello @atrol , Thanks for your kind reply. 
 Yes it does . Following are the contents : <?php $g_db_table_prefix          = '{{DB_PREFIX}}'; $g_default_timezone = 'America/New_York'; $g_crypto_master_salt = '{{SALT}}'; $g_path = '{{URL}/{{TO}}/{{MANTIS2261}}/'; But want to use these details as well like $g_webmaster_email, $g_from_email, $g_return_path_email, $g_from_name, $g_window_title, $g_cookie_prefix and $g_default_language. | |
| prashantt, please start reading the Admin Guide. 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 to get support on customizing and using MantisBT (refer to https://www.mantisbt.org/support.php for links and further details). | |
| 
 Considering that the installer has been generating a minimal config_inc.php file, I agree that the sample file is somewhat redundant nowadays. I don't mind removing it, but if we do I think it it may be worth adding information about those basic configurations that are recommended to override. This could be done either in the config_inc.php file generated by the installer, and/or in the admin guide. And we also need remove the reference in Admin guide section 2.6 | |
