Mantis Logo
Mantis Manual
Manual
Configuration

Database
Path
Webserver
Version
Email
Language
Display
Time
JpGraph
Date
News
Default Preferences
Summary
Bugnote
File Upload
HTML
Authentication
Status Settings
Filters
Misc
Colors
Cookies
Database Tables
Speed Optimisation
Reminders
Bug History
Sponsorship
Source Control Integration
Custom Fields
My View Settings
Relationships
System Logging


Partner Links


Path
Last Modified: August 21, 2003 15:08PM
(Any)
Description

$g_path URL to your installation as seen from the web browser; this is what you type into the URL field. Requires trailing '/' character.

 eg. $g_path = 'http://www.example.com/mantis/'; 


In the following example https protocol is used:
 eg. $g_path = 'https://www.example.com/mantis/'; 


Mantis will default this to the correct value. However, in some cases you might need to override the default.
$g_icon_path This is the URL to the icons (images) directory as seen from the web browser. All Mantis images/icons are loaded from this URL. The default value for this URL is based on $g_path, hence, if you override $g_path, you will have to override this one as well.
$g_absolute_path This is the absolute path to your installation, it is defaulted to the directory where config_defaults_inc.php resides. This is the path that you see when you make a telnet or ssh connection to the server. You can type pwd to find out. Requires trailing '/' character.

 eg. $g_absolute_path = '/usr/apache/htdocs/mantis/'; 


Before Mantis 0.17.3 symbolic links were not allowed due to the way file downloads were handled. This has been fixed.
$g_core_path This is the path to the core directory of your installation. The default value is usually OK, unless you move the 'core' directory out of your webroot. Requires trailing '/' character.

$g_manual_url This is the url to the Mantis manual. It is defaulted to the Mantis Online manual. Mantis links to this URL for full documentation, it will also be used in the future to link for the [?] form hints. Requires trailing '/' character.

These path settings are important for proper linking within Mantis. In most scenarios the default values should work fine, and you should not need to override them.

User Contributed Notes
Path
Add Notes About Notes
guepi(at)free.fr
28-Jan-2004 5:45
#62
Hi !
I would like to know if the is a possibility to use dynamic path?
Like that :

$g_path=(!empty($_SERVER['HTTPS']) ? 'https' : 'http') . '://'
                       . $_SERVER['SERVER_NAME']
                       . (!empty($_SERVER['SERVER_PORT']) ? ':' . $_SERVER['SERVER_PORT'] : '')

Thanks for your answers.
Add Notes About Notes
Last updated: Mon, 28 Nov 2011 - 17:31:47

Mantis @ SourceForge